OptionalNavigationPropertyConfiguration<TEntityType,TTargetEntityType>.WithMany メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 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
戻り値
関係をさらに構成するために使用できる構成オブジェクト。
- 属性