EdmFunctions.StartsWith(DbExpression, DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 DbFunctionExpression 调用规范“StartsWith”函数的指定参数,每个参数都必须具有字符串结果类型。 表达式的结果类型为布尔值。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ StartsWith(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ prefix);
public static System.Data.Common.CommandTrees.DbFunctionExpression StartsWith(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression prefix);
static member StartsWith : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function StartsWith (stringArgument As DbExpression, prefix As DbExpression) As DbFunctionExpression
参数
- stringArgument
- DbExpression
一个表达式,指定在字符串开头搜索的字符串 prefix。
- prefix
- DbExpression
一个表达式,指定在开头 stringArgument搜索的目标字符串。
返回
一个新的 DbFunctionExpression,它返回一个布尔值,该值指示是否 stringArgument 以 prefix.