TypeUsage.CreateStringTypeUsage Method

 

Creates a string TypeUsage object.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateStringTypeUsage(PrimitiveType, Boolean, Boolean)

Creates a TypeUsage object to describe a string type by using the specified facet values and unbounded MaxLength.

System_CAPS_pubmethodSystem_CAPS_staticCreateStringTypeUsage(PrimitiveType, Boolean, Boolean, Int32)

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


TypeUsage.CreateStringTypeUsage Method (PrimitiveType, Boolean, Boolean)

Creates a TypeUsage object to describe a string type by using the specified facet values and unbounded MaxLength.

public static TypeUsage CreateStringTypeUsage(
	PrimitiveType primitiveType,
	bool isUnicode,
	bool isFixedLength
)

Parameters

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

A PrimitiveType for which the TypeUsage object is created.

isUnicode
Type: System.Boolean

true to set the character-encoding standard of the string type to Unicode; otherwise, false.

isFixedLength
Type: System.Boolean

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

Return Value

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

A TypeUsage object describing a string type by using the specified facet values and unbounded MaxLength.


TypeUsage.CreateStringTypeUsage Method (PrimitiveType, Boolean, Boolean, Int32)

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

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

Parameters

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

A PrimitiveType for which the TypeUsage object is created.

isUnicode
Type: System.Boolean

true to set the character-encoding standard of the string type to Unicode; otherwise, false.

isFixedLength
Type: System.Boolean

true to set the character-encoding standard of the string type to Unicode; otherwise, false.

maxLength
Type: System.Int32

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

Return Value

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

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