Share via


DependentNavigationPropertyConfiguration<TDependentEntityType> Class

Definition

Configures a relationship that can support foreign key properties that are exposed in the object model. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.

public class DependentNavigationPropertyConfiguration<TDependentEntityType> : System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyNavigationPropertyConfiguration where TDependentEntityType : class
type DependentNavigationPropertyConfiguration<'DependentEntityType (requires 'DependentEntityType : null)> = class
    inherit ForeignKeyNavigationPropertyConfiguration
Public Class DependentNavigationPropertyConfiguration(Of TDependentEntityType)
Inherits ForeignKeyNavigationPropertyConfiguration

Type Parameters

TDependentEntityType

The dependent entity type.

Inheritance
DependentNavigationPropertyConfiguration<TDependentEntityType>

Methods

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.

HasForeignKey<TKey>(Expression<Func<TDependentEntityType,TKey>>)

Configures the relationship to use foreign key property(s) that are exposed in the object model. If the foreign key property(s) are not exposed in the object model then use the Map method.

Map(Action<ForeignKeyAssociationMappingConfiguration>)

Configures the relationship to use foreign key property(s) that are not exposed in the object model. The column(s) and table can be customized by specifying a configuration action. If an empty configuration action is specified then column name(s) will be generated by convention. If foreign key properties are exposed in the object model then use the HasForeignKey method. Not all relationships support exposing foreign key properties in the object model.

(Inherited from ForeignKeyNavigationPropertyConfiguration)
ToString()

Returns a string that represents the current object.

WillCascadeOnDelete()

Configures cascade delete to be on for the relationship.

(Inherited from CascadableNavigationPropertyConfiguration)
WillCascadeOnDelete(Boolean)

Configures whether or not cascade delete is on for the relationship.

(Inherited from CascadableNavigationPropertyConfiguration)

Applies to