ConventionPrimitivePropertyConfiguration.HasDatabaseGeneratedOption Method (DatabaseGeneratedOption)

 

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

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
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.

Calling this will have no effect once it has been configured.