DbExpressionBuilder.Like Metoda

Definice

Vytvoří nový DbLikeExpression , který porovná zadaný vstupní řetězec s daným vzorem.

Přetížení

Name Description
Like(DbExpression, DbExpression)

Vytvoří nový DbLikeExpression , který porovná zadaný vstupní řetězec s daným vzorem.

Like(DbExpression, DbExpression, DbExpression)

Vytvoří novou DbLikeExpression , která porovná zadaný vstupní řetězec s daným vzorem pomocí volitelného řídicího znaku.

Like(DbExpression, DbExpression)

Vytvoří nový DbLikeExpression , který porovná zadaný vstupní řetězec s daným vzorem.

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

Parametry

argument
DbExpression

Výraz, který určuje vstupní řetězec.

pattern
DbExpression

Výraz, který určuje řetězec vzoru.

Návraty

Nový DbLikeExpression se zadaným vstupem, vzorem a řídicím znakem null.

Výjimky

argument nebo pattern má hodnotu null.

argument nebo pattern nemá typ výsledku řetězce.

Platí pro

Like(DbExpression, DbExpression, DbExpression)

Vytvoří novou DbLikeExpression , která porovná zadaný vstupní řetězec s daným vzorem pomocí volitelného řídicího znaku.

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

Parametry

argument
DbExpression

Výraz, který určuje vstupní řetězec.

pattern
DbExpression

Výraz, který určuje řetězec vzoru.

escape
DbExpression

Volitelný výraz, který určuje řídicí řetězec.

Návraty

Nový DbLikeExpression se zadaným vstupem, vzorem a řídicím znakem.

Výjimky

argument pattern nebo escape má hodnotu null.

argument pattern nebo escape nemá typ výsledku řetězce.

Platí pro