次の方法で共有


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

定義

オーバーロード

WithMany()

リレーションシップのもう一方の側のナビゲーション プロパティを使用せずに省略可能対多となるようにリレーションシップを構成します。

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

リレーションシップのもう一方の側のナビゲーション プロパティを使用して省略可能対多となるようにリレーションシップを構成します。

WithMany()

リレーションシップのもう一方の側のナビゲーション プロパティを使用せずに省略可能対多となるようにリレーションシップを構成します。

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>>>)

リレーションシップのもう一方の側のナビゲーション プロパティを使用して省略可能対多となるようにリレーションシップを構成します。

[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>>>

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

戻り値

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

属性

適用対象