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

 

Creates a T:System.Data.Metadata.Edm.DateTimeOffsetTypeUsage 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 CreateDateTimeOffsetTypeUsage(
	PrimitiveType primitiveType,
	Nullable<byte> precision
)

Parameters

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

The simple type that defines the units of measurement of the offset.

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

.NET Framework
Available since 3.5
Return to top
Show: