DbExpressionBuilder.Like Método
Definição
Cria uma nova DbLikeExpression que compara a cadeia de caracteres de entrada especificada ao padrão fornecido.Creates a new DbLikeExpression that compares the specified input string to the given pattern.
Sobrecargas
| Like(DbExpression, DbExpression) |
Cria uma nova DbLikeExpression que compara a cadeia de caracteres de entrada especificada ao padrão fornecido.Creates a new DbLikeExpression that compares the specified input string to the given pattern. |
| Like(DbExpression, DbExpression, DbExpression) |
Cria uma nova DbLikeExpression que compara a cadeia de caracteres de entrada especificada usando o escape opcional.Creates a new DbLikeExpression that compares the specified input string to the given pattern using the optional escape. |
Like(DbExpression, DbExpression)
Cria uma nova DbLikeExpression que compara a cadeia de caracteres de entrada especificada ao padrão fornecido.Creates a new DbLikeExpression that compares the specified input string to the given pattern.
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
Parâmetros
- argument
- DbExpression
Uma expressão que especifica a cadeia de caracteres de entrada.An expression that specifies the input string.
- pattern
- DbExpression
Uma expressão que especifica a cadeia de caracteres de padrão.An expression that specifies the pattern string.
Retornos
Uma nova DbLikeExpression com a entrada, o padrão e um escape nulo especificados.A new DbLikeExpression with the specified input, pattern and a null escape.
Exceções
Argument ou pattern é nulo.Argument or pattern is null.
Argument ou pattern não tem um tipo de resultado de cadeia de caracteres.Argument or pattern does not have a string result type.
Aplica-se a
Like(DbExpression, DbExpression, DbExpression)
Cria uma nova DbLikeExpression que compara a cadeia de caracteres de entrada especificada usando o escape opcional.Creates a new DbLikeExpression that compares the specified input string to the given pattern using the optional escape.
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
Parâmetros
- argument
- DbExpression
Uma expressão que especifica a cadeia de caracteres de entrada.An expression that specifies the input string.
- pattern
- DbExpression
Uma expressão que especifica a cadeia de caracteres de padrão.An expression that specifies the pattern string.
- escape
- DbExpression
Uma expressão opcional que especifica a cadeia de caracteres de escape.An optional expression that specifies the escape string.
Retornos
Uma nova DbLikeExpression com a entrada, o padrão e o escape especificados.A new DbLikeExpression with the specified input, pattern and escape.
Exceções
argument, pattern ou escape é nulo.argument, pattern or escape is null.
argument, pattern ou escape não tem um tipo de resultado de cadeia de caracteres.argument, pattern or escape does not have a string result type.