DbExpressionBuilder.Like 方法

定义

重载

Like(DbExpression, DbExpression)

创建一个新的 DbLikeExpression,它将指定的输入字符串与给定的模式进行比较。

Like(DbExpression, DbExpression, DbExpression)

创建一个新的 DbLikeExpression,它使用可选转义字符串将指定的输入字符串与给定的模式进行比较。

Like(DbExpression, DbExpression)

创建一个新的 DbLikeExpression,它将指定的输入字符串与给定的模式进行比较。

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

参数

argument
DbExpression

指定输入字符串的表达式。

pattern
DbExpression

指定模式字符串的表达式。

返回

使用指定输入、模式和 null 转义的新 DbLikeExpression。

例外

参数或模式为 null。

参数或模式没有字符串结果类型。

适用于

Like(DbExpression, DbExpression, DbExpression)

创建一个新的 DbLikeExpression,它使用可选转义字符串将指定的输入字符串与给定的模式进行比较。

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

参数

argument
DbExpression

指定输入字符串的表达式。

pattern
DbExpression

指定模式字符串的表达式。

escape
DbExpression

指定转义字符串的可选表达式。

返回

使用指定输入、模式和转义的新 DbLikeExpression。

例外

参数、模式或转义为 null。

参数、模式或转义没有字符串结果类型。

适用于