TypeUsage.CreateDecimalTypeUsage Method (PrimitiveType, Byte, Byte)

 

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

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

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

Parameters

primitiveType
Type: System.Data.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.Metadata.Edm.TypeUsage

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

For more information about the decimal types, see Decimal(EDM).

.NET Framework
Available since 3.5
Return to top
Show: