ForeignKeyPrimitivePropertyAttributeConvention.Apply Method (PropertyInfo, ConventionTypeConfiguration, ForeignKeyAttribute)

 

Applies the configuration to the specified attribute.

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

public override void Apply(
	PropertyInfo memberInfo,
	ConventionTypeConfiguration configuration,
	ForeignKeyAttribute attribute
)

Parameters

memberInfo
Type: System.Reflection.PropertyInfo

The property information.

configuration
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration

The configuration to be performed for an entity type in a model.

attribute
Type: System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute

The property or class excluded from database mapping.