Language

OptionalNavigationPropertyConfiguration<TEntityType,TTargetEntityType>.WithMany メソッド

定義

オーバーロード

Name 説明
WithMany()

リレーションシップのもう一方の側にナビゲーション プロパティを指定せずに、リレーションシップを optional:many に構成します。

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

リレーションシップの反対側のナビゲーション プロパティを使用して、リレーションシップを optional:many に構成します。

WithMany()

リレーションシップのもう一方の側にナビゲーション プロパティを指定せずに、リレーションシップを optional:many に構成します。

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

戻り値

その関係をさらに設定するために使用できる構成オブジェクト。

適用対象

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

リレーションシップの反対側のナビゲーション プロパティを使用して、リレーションシップを optional:many に構成します。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<TEntityType> WithMany(System.Linq.Expressions.Expression<Func<TTargetEntityType,System.Collections.Generic.ICollection<TEntityType>>> navigationPropertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<TEntityType> 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.DependentNavigationPropertyConfiguration<'EntityType (requires 'EntityType : null)>
Public Function WithMany (navigationPropertyExpression As Expression(Of Func(Of TTargetEntityType, ICollection(Of TEntityType)))) As DependentNavigationPropertyConfiguration(Of TEntityType)

パラメーター

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

リレーションシップのもう一方の端にあるナビゲーション プロパティを表すラムダ式。 C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

戻り値

その関係をさらに設定するために使用できる構成オブジェクト。

属性

適用対象