EdmFunctions.Contains(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立會使用指定引數叫用標準 'Contains' 函式的 DbFunctionExpression,其中的引數都必須具有字串結果型別。 運算式的結果型別為布林值。
public static System.Data.Entity.Core.Common.CommandTrees.DbExpression Contains(this System.Data.Entity.Core.Common.CommandTrees.DbExpression searchedString, System.Data.Entity.Core.Common.CommandTrees.DbExpression searchedForString);
static member Contains : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbExpression
<Extension()>
Public Function Contains (searchedString As DbExpression, searchedForString As DbExpression) As DbExpression
參數
- searchedString
- DbExpression
運算式,指定要搜尋任何 searchedForString 的字串。
- searchedForString
- DbExpression
運算式,指定要在 searchedString 中搜尋的字串。
傳回
傳回指出 searchedForString 是否在 searchedString 內出現之布林值的新 DbFunctionExpression。