Export (0) Print
Expand All

ManyNavigationPropertyConfiguration<TEntityType, TTargetEntityType> Class

Entity Framework 5.0

Configures a many relationship from an entity type.

System.Object
  System.Data.Entity.ModelConfiguration.Configuration.ManyNavigationPropertyConfiguration<TEntityType, TTargetEntityType>

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

public class ManyNavigationPropertyConfiguration<TEntityType, TTargetEntityType>
where TEntityType : class 
where TTargetEntityType : class

Type Parameters

TEntityType

The entity type that the relationship originates from.

TTargetEntityType

The entity type that the relationship targets.

The ManyNavigationPropertyConfiguration<TEntityType, TTargetEntityType> 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 Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. This method is hidden from IntelliSense. (Overrides Object.ToString().)
Public methodWithMany() Configures the relationship to be many:many without a navigation property on the other side of the relationship.
Public methodWithMany(Expression<Func<TTargetEntityType, ICollection<TEntityType>>>) Configures the relationship to be many:many with a navigation property on the other side of the relationship.
Public methodWithOptional() Configures the relationship to be many:optional without a navigation property on the other side of the relationship.
Public methodWithOptional(Expression<Func<TTargetEntityType, TEntityType>>) Configures the relationship to be many:optional with a navigation property on the other side of the relationship.
Public methodWithRequired() Configures the relationship to be many:required without a navigation property on the other side of the relationship.
Public methodWithRequired(Expression<Func<TTargetEntityType, TEntityType>>) Configures the relationship to be many:required with a navigation property on the other side of the relationship.
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