DecimalPropertyConfiguration.HasDatabaseGeneratedOption Method (Nullable<DatabaseGeneratedOption>)

 

Configures how values for the property are generated by the database.

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

public DecimalPropertyConfiguration HasDatabaseGeneratedOption(
	Nullable<DatabaseGeneratedOption> databaseGeneratedOption
)

Parameters

databaseGeneratedOption
Type: System.Nullable<DatabaseGeneratedOption>

The pattern used to generate values for the property in the database. Setting 'null' will cause the default option to be used, which may be 'None', 'Identity', or 'Computed' depending on the type of the property, its semantics in the model (e.g. primary keys are treated differently), and which set of conventions are being used.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration

The same DecimalPropertyConfiguration instance so that multiple calls can be chained.