संपादित करें

इसके माध्यम से साझा किया गया


DbExpressionBuilder.Like Method

Definition

Creates a new DbLikeExpression that compares the specified input string to the given pattern.

Overloads

Like(DbExpression, DbExpression)

Creates a new DbLikeExpression that compares the specified input string to the given pattern.

Like(DbExpression, DbExpression, DbExpression)

Creates a new DbLikeExpression that compares the specified input string to the given pattern using the optional escape.

Like(DbExpression, DbExpression)

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

Parameters

argument
DbExpression

An expression that specifies the input string.

pattern
DbExpression

An expression that specifies the pattern string.

Returns

A new DbLikeExpression with the specified input, pattern and a null escape.

Exceptions

Argument or pattern is null.

Argument or pattern does not have a string result type.

Applies to

Like(DbExpression, DbExpression, DbExpression)

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

Parameters

argument
DbExpression

An expression that specifies the input string.

pattern
DbExpression

An expression that specifies the pattern string.

escape
DbExpression

An optional expression that specifies the escape string.

Returns

A new DbLikeExpression with the specified input, pattern and escape.

Exceptions

argument, pattern or escape is null.

argument, pattern or escape does not have a string result type.

Applies to