Export (0) Print
Expand All

TypeUsage.CreateDateTimeTypeUsage Method

Creates a DateTimeTypeUsage object of the type that the parameters describe.

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

public static TypeUsage CreateDateTimeTypeUsage(
	PrimitiveType primitiveType,
	Nullable<byte> precision
)

Parameters

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

The simple type that defines the units of measurement of the [T:System.]DateTime object.

precision
Type: System.Nullable<Byte>

The degree of granularity of the [T:System.]DateTimeOffset in fractions of a second, based on the number of decimal places supported. For example a precision of 3 means the granularity supported is milliseconds.

Return Value

Type: System.Data.Metadata.Edm.TypeUsage
A DateTimeTypeUsage object.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft