Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateDecimalTypeUsage Method (PrimitiveType, Byte, Byte)

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

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft