다음을 통해 공유


ManyNavigationPropertyConfiguration<TEntityType,TTargetEntityType>.WithMany 메서드

정의

오버로드

WithMany()

관계의 다른 쪽에 탐색 속성을 사용하지 않고 관계가 다 대 다 관계가 되도록 구성합니다.

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

관계의 다른 쪽에 탐색 속성을 사용하여 관계가 다 대 다 관계가 되도록 구성합니다.

WithMany()

관계의 다른 쪽에 탐색 속성을 사용하지 않고 관계가 다 대 다 관계가 되도록 구성합니다.

public System.Data.Entity.ModelConfiguration.Configuration.ManyToManyNavigationPropertyConfiguration WithMany();
member this.WithMany : unit -> System.Data.Entity.ModelConfiguration.Configuration.ManyToManyNavigationPropertyConfiguration
Public Function WithMany () As ManyToManyNavigationPropertyConfiguration

반환

관계의 추가 구성에 사용할 수 있는 구성 개체입니다.

적용 대상

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

관계의 다른 쪽에 탐색 속성을 사용하여 관계가 다 대 다 관계가 되도록 구성합니다.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.ManyToManyNavigationPropertyConfiguration WithMany(System.Linq.Expressions.Expression<Func<TTargetEntityType,System.Collections.Generic.ICollection<TEntityType>>> navigationPropertyExpression);
public System.Data.Entity.ModelConfiguration.Configuration.ManyToManyNavigationPropertyConfiguration WithMany(System.Linq.Expressions.Expression<Func<TTargetEntityType,System.Collections.Generic.ICollection<TEntityType>>> navigationPropertyExpression);
member this.WithMany : System.Linq.Expressions.Expression<Func<'argetEntityType, System.Collections.Generic.ICollection<'EntityType>>> -> System.Data.Entity.ModelConfiguration.Configuration.ManyToManyNavigationPropertyConfiguration
Public Function WithMany (navigationPropertyExpression As Expression(Of Func(Of TTargetEntityType, ICollection(Of TEntityType)))) As ManyToManyNavigationPropertyConfiguration

매개 변수

navigationPropertyExpression
Expression<Func<TTargetEntityType,ICollection<TEntityType>>>

관계의 다른 쪽 End에 대한 탐색 속성을 나타내는 람다 식입니다. C#: t => t.MyProperty
VB.Net: Function(t) t.MyProperty

반환

관계의 추가 구성에 사용할 수 있는 구성 개체입니다.

특성

적용 대상