ForeignKeyAssociationMappingConfiguration Class

 

Configures the table and column mapping of a relationship that does not expose foreign key properties in the object model. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.

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

System.Object
  System.Data.Entity.ModelConfiguration.Configuration.AssociationMappingConfiguration
    System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfiguration

public sealed class ForeignKeyAssociationMappingConfiguration : AssociationMappingConfiguration

NameDescription
System_CAPS_pubmethodEquals(ForeignKeyAssociationMappingConfiguration)

Determines whether the specified object is equal to the current object.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for a particular type.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the type of the current instance.

System_CAPS_pubmethodHasColumnAnnotation(String, String, Object)

Sets an annotation in the model for a database column that has been configured with MapKey. The annotation value can later be used when processing the column such as when creating migrations.

System_CAPS_pubmethodMapKey(String[])

Configures the name of the column(s) for the foreign key.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Overrides Object.ToString().)

System_CAPS_pubmethodToTable(String)

Configures the table name that the foreign key column(s) reside in. The table that is specified must already be mapped for the entity type. If you want the foreign key(s) to reside in their own table then use the Map method on T:System.Data.Entity.ModelConfiguration.EntityTypeConfiguration to perform entity splitting to create the table with just the primary key property. Foreign keys can then be added to the table via this method.

System_CAPS_pubmethodToTable(String, String)

Configures the table name and schema that the foreign key column(s) reside in. The table that is specified must already be mapped for the entity type. If you want the foreign key(s) to reside in their own table then use the Map method on T:System.Data.Entity.ModelConfiguration.EntityTypeConfiguration to perform entity splitting to create the table with just the primary key property. Foreign keys can then be added to the table via this method.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.