Export (0) Print
Expand All

DecimalPropertyConfiguration.HasDatabaseGeneratedOption Method

Entity Framework 5.0

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 remove the database generated pattern facet from the property. Setting 'null' will cause the same runtime behavior as specifying 'None'.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration
The same DecimalPropertyConfiguration instance so that multiple calls can be chained.
Show:
© 2014 Microsoft