TypeUsage.CreateDateTimeTypeUsage Method (PrimitiveType, Nullable<Byte>)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a T:System.Data.Metadata.Edm.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


Type: System.Data.Metadata.Edm.PrimitiveType

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

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 T:System.Data.Metadata.Edm.DateTimeTypeUsage object.

.NET Framework
Available since 3.5
Return to top