DbExpressionBuilder.Like Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 static System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression Like (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument, System.Data.Entity.Core.Common.CommandTrees.DbExpression pattern);
static member Like : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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 static System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression Like (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument, System.Data.Entity.Core.Common.CommandTrees.DbExpression pattern, System.Data.Entity.Core.Common.CommandTrees.DbExpression escape);
static member Like : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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
Entity Framework