ConventionPrimitivePropertyConfiguration.HasDatabaseGeneratedOption Method (DatabaseGeneratedOption)
Configures how values for the property are generated by the database.
Assembly: EntityFramework (in EntityFramework.dll)
public virtual ConventionPrimitivePropertyConfiguration HasDatabaseGeneratedOption( DatabaseGeneratedOption databaseGeneratedOption )
Parameters
- databaseGeneratedOption
-
Type:
System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption
The pattern used to generate values for the property in the database.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfigurationThe same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.
Calling this will have no effect once it has been configured.