다음을 통해 공유


ManyNavigationPropertyConfiguration<TEntityType,TTargetEntityType>.WithRequired 메서드

정의

오버로드

WithRequired()

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

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

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

WithRequired()

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

public System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<TTargetEntityType> WithRequired ();
member this.WithRequired : unit -> System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<'argetEntityType (requires 'argetEntityType : null)>
Public Function WithRequired () As DependentNavigationPropertyConfiguration(Of TTargetEntityType)

반환

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

적용 대상

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

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<TTargetEntityType> WithRequired (System.Linq.Expressions.Expression<Func<TTargetEntityType,TEntityType>> navigationPropertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<TTargetEntityType> WithRequired (System.Linq.Expressions.Expression<Func<TTargetEntityType,TEntityType>> navigationPropertyExpression);
member this.WithRequired : System.Linq.Expressions.Expression<Func<'argetEntityType, 'EntityType>> -> System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<'argetEntityType (requires 'argetEntityType : null)>
Public Function WithRequired (navigationPropertyExpression As Expression(Of Func(Of TTargetEntityType, TEntityType))) As DependentNavigationPropertyConfiguration(Of TTargetEntityType)

매개 변수

navigationPropertyExpression
Expression<Func<TTargetEntityType,TEntityType>>

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

반환

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

특성

적용 대상