EdmFunctions.Concat Method (DbExpression, DbExpression)
Creates a DbFunctionExpression that invokes the canonical 'Concat' function with the specified arguments, which must each have a string result type. The result type of the expression is string.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbFunctionExpression Concat( this DbExpression string1, DbExpression string2 )
Parameters
- string1
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the string that should appear first in the concatenated result string.
- string2
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the string that should appear second in the concatenated result string.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that produces the concatenated string.
Exception | Condition |
---|---|
ArgumentNullException | string1 or string2 is null. |
ArgumentException | No overload of the canonical 'Concat' function accepts arguments with the result type of string1 and string2. |