TypeUsage.CreateBinaryTypeUsage Method
Creates a Binary TypeUsage object.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | CreateBinaryTypeUsage(PrimitiveType, Boolean) | Creates a TypeUsage object to describe a binary type by using the specified facet values. |
![]() ![]() | CreateBinaryTypeUsage(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.TypeUsageA 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.TypeUsageA TypeUsage object describing a binary type by using the specified facet values.