DateTimePropertyConfiguration Class
Entity Framework 5.0
Used to configure a DateTime property of an entity type or complex type. This configuration functionality is exposed by the Code First fluent API. For more information, see DbModelBuilder.
System.Object
System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Namespace: System.Data.Entity.ModelConfiguration.Configuration
Assembly: EntityFramework (in EntityFramework.dll)
The DateTimePropertyConfiguration type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides PrimitivePropertyConfiguration.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides PrimitivePropertyConfiguration.GetHashCode.) |
![]() | GetType | Gets the type of the current instance. This method is hidden from IntelliSense. |
![]() | HasColumnName | Configures the name of the database column used to store the property. |
![]() | HasColumnOrder | Configures the order of the database column used to store the property. This method is also used to specify key ordering when an entity type has a composite key. |
![]() | HasColumnType | Configures the data type of the database column used to store the property. |
![]() | HasDatabaseGeneratedOption | Configures how values for the property are generated by the database. |
![]() | HasPrecision | Configures the precision of the property. If the database provider does not support precision for the data type of the column, the value is ignored. |
![]() | IsConcurrencyToken | Configures the property to be used as an optimistic concurrency token. |
![]() | IsConcurrencyToken(Nullable(Of Boolean)) | Configures whether or not the property is to be used as an optimistic concurrency token. |
![]() | IsOptional | Configures the property to be optional. The database column used to store this property will be nullable. |
![]() | IsRequired | Configures the property to be required. The database column used to store this property will be non-nullable. DateTime properties are required by default. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. This method is hidden from IntelliSense. (Overrides PrimitivePropertyConfiguration.ToString.) |
Show:
