ManyNavigationPropertyConfiguration<TEntityType,TTargetEntityType> 类

定义

通过实体类型配置多关系。

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)

类型参数

TEntityType

关系源自的实体类型。

TTargetEntityType

作为关系目标的实体类型。

继承
ManyNavigationPropertyConfiguration<TEntityType,TTargetEntityType>

方法

Equals(Object)

通过实体类型配置多关系。

GetHashCode()

通过实体类型配置多关系。

GetType()

获取当前实例的 Type

ToString()

通过实体类型配置多关系。

WithMany()

将关系配置为 many:many,且在关系的另一端无导航属性。

WithMany(Expression<Func<TTargetEntityType,ICollection<TEntityType>>>)

将关系配置为 many:many,且在关系的另一端有导航属性。

WithOptional()

将关系配置为 many:optional,且在关系的另一端无导航属性。

WithOptional(Expression<Func<TTargetEntityType,TEntityType>>)

将关系配置为 many:optional,且在关系的另一端有导航属性。

WithRequired()

将关系配置为 many:required,且在关系的另一端无导航属性。

WithRequired(Expression<Func<TTargetEntityType,TEntityType>>)

将关系配置为 many:required,且在关系的另一端有导航属性。

适用于