EdmFunctions.Concat(DbExpression, DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 DbFunctionExpression ,它使用指定的参数调用规范“Concat”函数,每个参数必须具有字符串结果类型。 表达式的结果类型为字符串。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ Concat(System::Data::Common::CommandTrees::DbExpression ^ string1, System::Data::Common::CommandTrees::DbExpression ^ string2);
public static System.Data.Common.CommandTrees.DbFunctionExpression Concat(this System.Data.Common.CommandTrees.DbExpression string1, System.Data.Common.CommandTrees.DbExpression string2);
static member Concat : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Concat (string1 As DbExpression, string2 As DbExpression) As DbFunctionExpression
参数
- string1
- DbExpression
一个表达式,指定应首先出现在串联的结果字符串中的字符串。
- string2
- DbExpression
一个表达式,指定应出现在串联结果字符串中的第二个字符串。
返回
生成串联字符串的新 DbFunctionExpression。
例外
string1 或 string2 为 null.
string1 或 string2 无效。