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 是無效。

適用於