ManyNavigationPropertyConfiguration<TEntityType,TTargetEntityType> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures a many relationship from an entity type.
public class ManyNavigationPropertyConfiguration<TEntityType,TTargetEntityType> where TEntityType : class where TTargetEntityType : class
type ManyNavigationPropertyConfiguration<'EntityType, 'argetEntityType (requires 'EntityType : null and 'argetEntityType : null)> = class
Public Class ManyNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType)
Type Parameters
- TEntityType
The entity type that the relationship originates from.
- TTargetEntityType
The entity type that the relationship targets.
- Inheritance
-
ManyNavigationPropertyConfiguration<TEntityType,TTargetEntityType>
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. |
ToString() | Returns a string that represents the current object. |
WithMany() |
Configures the relationship to be many:many without a navigation property on the other side of the relationship. |
WithMany(Expression<Func<TTargetEntityType,ICollection<TEntityType>>>) |
Configures the relationship to be many:many with a navigation property on the other side of the relationship. |
WithOptional() |
Configures the relationship to be many:optional without a navigation property on the other side of the relationship. |
WithOptional(Expression<Func<TTargetEntityType,TEntityType>>) |
Configures the relationship to be many:optional with a navigation property on the other side of the relationship. |
WithRequired() |
Configures the relationship to be many:required without a navigation property on the other side of the relationship. |
WithRequired(Expression<Func<TTargetEntityType,TEntityType>>) |
Configures the relationship to be many:required with a navigation property on the other side of the relationship. |
Applies to
Entity Framework