共用方式為


PropertyConventionConfiguration.Having<T> 方法

定義

篩選此慣例會根據述詞套用的屬性,同時擷取值以供稍後在設定期間使用。

public System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionWithHavingConfiguration<T> Having<T> (Func<System.Reflection.PropertyInfo,T> capturingPredicate) where T : class;
member this.Having : Func<System.Reflection.PropertyInfo, 'T (requires 'T : null)> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionWithHavingConfiguration<'T (requires 'T : null)> (requires 'T : null)
Public Function Having(Of T As Class) (capturingPredicate As Func(Of PropertyInfo, T)) As PropertyConventionWithHavingConfiguration(Of T)

類型參數

T

擷取值的型別。

參數

capturingPredicate
Func<PropertyInfo,T>

用來擷取每個屬性值的函式。 如果值為 null,則會篩選掉 屬性。

傳回

PropertyConventionWithHavingConfiguration<T>實例,以便鏈結多個呼叫。

適用於