次の方法で共有


TypeConventionConfiguration<T>.Having<TValue> メソッド

定義

後で構成中に使用する値をキャプチャするときに、述語に基づいて、この規則が適用されるエンティティ型をフィルター処理します。

public System.Data.Entity.ModelConfiguration.Configuration.TypeConventionWithHavingConfiguration<T,TValue> Having<TValue> (Func<Type,TValue> capturingPredicate) where TValue : class;
member this.Having : Func<Type, 'Value (requires 'Value : null)> -> System.Data.Entity.ModelConfiguration.Configuration.TypeConventionWithHavingConfiguration<'T, 'Value (requires 'T : null and 'Value : null)> (requires 'Value : null)
Public Function Having(Of TValue As Class) (capturingPredicate As Func(Of Type, TValue)) As TypeConventionWithHavingConfiguration(Of T, TValue)

型パラメーター

TValue

キャプチャされた値の型。

パラメーター

capturingPredicate
Func<Type,TValue>

各エンティティ型の値をキャプチャする関数。 値が null の場合、エンティティ型はフィルター処理されます。

戻り値

複数の TypeConventionWithHavingConfiguration<T,TValue> 呼び出しをチェーンできるようにするインスタンス。

適用対象