EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) 方法

定义

创建一个 DbFunctionExpression,它使用指定的参数(这些参数必须具有字符串和整数值结果类型)调用规范“Substring”函数。 该表达式的结果类型为字符串。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Substring (this System.Data.Entity.Core.Common.CommandTrees.DbExpression stringArgument, System.Data.Entity.Core.Common.CommandTrees.DbExpression start, System.Data.Entity.Core.Common.CommandTrees.DbExpression length);
static member Substring : 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.DbFunctionExpression
<Extension()>
Public Function Substring (stringArgument As DbExpression, start As DbExpression, length As DbExpression) As DbFunctionExpression

参数

stringArgument
DbExpression

一个表达式,指定要从中提取子字符串的字符串。

start
DbExpression

一个表达式,指定要获取的子字符串的起始索引。

length
DbExpression

一个表达式,指定子字符串的长度。

返回

一个新的 DbFunctionExpression,从开始开始返回 stringArgument 中长度的子字符串。

适用于