TypeUsage.CreateDecimalTypeUsage Method
Creates a Decimal TypeUsage object.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | CreateDecimalTypeUsage(PrimitiveType) | Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values. |
![]() ![]() | CreateDecimalTypeUsage(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.
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.TypeUsageA 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.TypeUsageA TypeUsage object describing a decimal type by using the specified facet values.