Export (0) Print
Expand All

DependentNavigationPropertyConfiguration<TDependentEntityType> Class

Entity Framework 5.0

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

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

public class DependentNavigationPropertyConfiguration<TDependentEntityType> : ForeignKeyNavigationPropertyConfiguration 
where TDependentEntityType : class

Type Parameters

TDependentEntityType

The dependent entity type.

The DependentNavigationPropertyConfiguration<TDependentEntityType> type exposes the following members.

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides ForeignKeyNavigationPropertyConfiguration.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides ForeignKeyNavigationPropertyConfiguration.GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Public methodHasForeignKey<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.
Public methodMapConfigures 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.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. This method is hidden from IntelliSense. (Overrides ForeignKeyNavigationPropertyConfiguration.ToString().)
Public methodWillCascadeOnDelete() Configures cascade delete to be on for the relationship. (Inherited from CascadableNavigationPropertyConfiguration.)
Public methodWillCascadeOnDelete(Boolean) Configures whether or not cascade delete is on for the relationship. (Inherited from CascadableNavigationPropertyConfiguration.)
Top

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