TypeUsage.CreateDateTimeTypeUsage Method (PrimitiveType, Nullable<Byte>)
Creates a T:System.Data.Metadata.Edm.DateTimeTypeUsage object of the type that the parameters describe.
Assembly: EntityFramework (in EntityFramework.dll)
public static TypeUsage CreateDateTimeTypeUsage( PrimitiveType primitiveType, Nullable<byte> precision )
Parameters
- primitiveType
-
Type:
System.Data.Entity.Core.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.Entity.Core.Metadata.Edm.TypeUsageA T:System.Data.Metadata.Edm.DateTimeTypeUsage object.