ManyToManyAssociationMappingConfiguration Class

Definition

Configures the table and column mapping of a many:many relationship. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.

public sealed class ManyToManyAssociationMappingConfiguration : System.Data.Entity.ModelConfiguration.Configuration.AssociationMappingConfiguration
type ManyToManyAssociationMappingConfiguration = class
    inherit AssociationMappingConfiguration
Public NotInheritable Class ManyToManyAssociationMappingConfiguration
Inherits AssociationMappingConfiguration
Inheritance
ManyToManyAssociationMappingConfiguration

Methods

Equals(ManyToManyAssociationMappingConfiguration)

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

Equals(Object)

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

GetHashCode()

Serves as the default hash function.

GetType()

Gets the Type of the current instance.

HasTableAnnotation(String, Object)

Sets an annotation in the model for the join table. The annotation value can later be used when processing the table such as when creating migrations.

MapLeftKey(String[])

Configures the name of the column(s) for the left foreign key. The left foreign key points to the parent entity of the navigation property specified in the HasMany call.

MapRightKey(String[])

Configures the name of the column(s) for the right foreign key. The right foreign key points to the parent entity of the the navigation property specified in the WithMany call.

ToString()

Returns a string that represents the current object.

ToTable(String)

Configures the join table name for the relationship.

ToTable(String, String)

Configures the join table name and schema for the relationship.

Applies to