Share via


DatabaseGeneratedAttributeConvention.Apply Method

Definition

Applies this convention to a property that has an attribute of type TAttribute applied.

public override void Apply (System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration configuration, System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute attribute);
override this.Apply : System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration * System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute -> unit
Public Overrides Sub Apply (configuration As ConventionPrimitivePropertyConfiguration, attribute As DatabaseGeneratedAttribute)

Parameters

configuration
ConventionPrimitivePropertyConfiguration

The configuration for the property that has the attribute.

attribute
DatabaseGeneratedAttribute

The attribute.

Applies to