TypeUsage.CreateDecimalTypeUsage Method

 

Creates a Decimal TypeUsage object.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateDecimalTypeUsage(PrimitiveType)

Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values.

System_CAPS_pubmethodSystem_CAPS_staticCreateDecimalTypeUsage(PrimitiveType, Byte, Byte)

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


TypeUsage.CreateDecimalTypeUsage Method (PrimitiveType)

Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values.

public static TypeUsage CreateDecimalTypeUsage(
	PrimitiveType primitiveType
)

Parameters

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

A PrimitiveType for which the TypeUsage object is created.

Return Value

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

A TypeUsage object describing a decimal type with unbounded precision and scale facet values.


TypeUsage.CreateDecimalTypeUsage Method (PrimitiveType, Byte, Byte)

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

public static TypeUsage CreateDecimalTypeUsage(
	PrimitiveType primitiveType,
	byte precision,
	byte scale
)

Parameters

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

A PrimitiveType for which the TypeUsage object is created.

precision
Type: System.Byte

The precision of the decimal type as type Byte.

scale
Type: System.Byte

The scale of the decimal type as type Byte.

Return Value

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

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