PropertyConventionConfiguration.Where 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
根據述詞來篩選套用此慣例的屬性。
命名空間: System.Data.Entity.ModelConfiguration.Configuration
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Function Where ( _
predicate As Func(Of PropertyInfo, Boolean) _
) As PropertyConventionConfiguration
'用途
Dim instance As PropertyConventionConfiguration
Dim predicate As Func(Of PropertyInfo, Boolean)
Dim returnValue As PropertyConventionConfiguration
returnValue = instance.Where(predicate)
public PropertyConventionConfiguration Where(
Func<PropertyInfo, bool> predicate
)
public:
PropertyConventionConfiguration^ Where(
Func<PropertyInfo^, bool>^ predicate
)
member Where :
predicate:Func<PropertyInfo, bool> -> PropertyConventionConfiguration
public function Where(
predicate : Func<PropertyInfo, boolean>
) : PropertyConventionConfiguration
參數
- predicate
類型:System.Func<PropertyInfo, Boolean>
用來測試每個屬性是否符合條件的函式。
傳回值
類型:System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration
PropertyConventionConfiguration 執行個體,以便鏈結多個呼叫。