DbExpressionBuilder.Like 方法

定義

建立新的 DbLikeExpression,這個運算式會比較指定的輸入字串與指定的模式。

多載

Like(DbExpression, DbExpression)

建立新的 DbLikeExpression,這個運算式會比較指定的輸入字串與指定的模式。

Like(DbExpression, DbExpression, DbExpression)

建立新的 DbLikeExpression,它會藉由使用選擇性的逸出字串,比較指定的輸入字串與給定的模式。

Like(DbExpression, DbExpression)

建立新的 DbLikeExpression,這個運算式會比較指定的輸入字串與指定的模式。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLikeExpression ^ Like(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Common::CommandTrees::DbExpression ^ pattern);
public static System.Data.Common.CommandTrees.DbLikeExpression Like (this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Common.CommandTrees.DbExpression pattern);
static member Like : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbLikeExpression
<Extension()>
Public Function Like (argument As DbExpression, pattern As DbExpression) As DbLikeExpression

參數

argument
DbExpression

指定輸入字串的運算式。

pattern
DbExpression

指定模式比對字串的運算式。

傳回

含有指定之輸入、模式及 Null 逸出的新 DbLikeExpression。

例外狀況

Argumentpattern 為 null。

Argumentpattern 沒有字串結果型別。

適用於

Like(DbExpression, DbExpression, DbExpression)

建立新的 DbLikeExpression,它會藉由使用選擇性的逸出字串,比較指定的輸入字串與給定的模式。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLikeExpression ^ Like(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Common::CommandTrees::DbExpression ^ pattern, System::Data::Common::CommandTrees::DbExpression ^ escape);
public static System.Data.Common.CommandTrees.DbLikeExpression Like (this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Common.CommandTrees.DbExpression pattern, System.Data.Common.CommandTrees.DbExpression escape);
static member Like : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbLikeExpression
<Extension()>
Public Function Like (argument As DbExpression, pattern As DbExpression, escape As DbExpression) As DbLikeExpression

參數

argument
DbExpression

指定輸入字串的運算式。

pattern
DbExpression

指定模式比對字串的運算式。

escape
DbExpression

指定逸出字串的選擇性運算式。

傳回

含有指定之輸入、模式及逸出的新 DbLikeExpression。

例外狀況

argumentpatternescape 為 null。

argumentpatternescape 沒有字串結果類型。

適用於