TypeUsage.CreateBinaryTypeUsage Method

 

Creates a Binary TypeUsage object.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateBinaryTypeUsage(PrimitiveType, Boolean)

Creates a TypeUsage object to describe a binary type by using the specified facet values.

System_CAPS_pubmethodSystem_CAPS_staticCreateBinaryTypeUsage(PrimitiveType, Boolean, Int32)

Creates a TypeUsage object to describe a binary type by using the specified facet values.


TypeUsage.CreateBinaryTypeUsage Method (PrimitiveType, Boolean)

Creates a TypeUsage object to describe a binary type by using the specified facet values.

public static TypeUsage CreateBinaryTypeUsage(
	PrimitiveType primitiveType,
	bool isFixedLength
)

Parameters

primitiveType
Type: System.Data.Entity.Core.Metadata.Edm.PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

isFixedLength
Type: System.Boolean

true to set the length of the binary type to fixed; otherwise, false.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.TypeUsage

A TypeUsage object describing a binary type by using the specified facet values.


TypeUsage.CreateBinaryTypeUsage Method (PrimitiveType, Boolean, Int32)

Creates a TypeUsage object to describe a binary type by using the specified facet values.

public static TypeUsage CreateBinaryTypeUsage(
	PrimitiveType primitiveType,
	bool isFixedLength,
	int maxLength
)

Parameters

primitiveType
Type: System.Data.Entity.Core.Metadata.Edm.PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

isFixedLength
Type: System.Boolean

true to set the length of the binary type to fixed; otherwise, false.

maxLength
Type: System.Int32

The maximum length of the binary type.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.TypeUsage

A TypeUsage object describing a binary type by using the specified facet values.