EdmFunctions.Concat(DbExpression, DbExpression) 方法

定义

创建一个 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。

例外

string1string2null.

string1string2 无效。

适用于