PropertyConventionConfiguration.Having<T> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
篩選此慣例會根據述詞套用的屬性,同時擷取值以供稍後在設定期間使用。
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>實例,以便鏈結多個呼叫。