+ (String Concatenation) (Entity SQL)
Concatenates two strings.
Syntax
expression + expression
Arguments
expression
Any valid expression of the EDM.String data types. Both expressions must be of the same data type, or one expression must be able to be implicitly converted to the data type of the other expression.
Result Types
The data type that results from the implicit type promotion of the two arguments. For more information about implicit type promotion, see Type System.
Example
The following Entity SQL query uses the + operator to concatenates two strings. The query is based on the AdventureWorks Sales Model. To compile and run this query, follow these steps:
Follow the procedure in How to: Execute a Query that Returns PrimitiveType Results.
Pass the following query as an argument to the
ExecutePrimitiveTypeQuery
method:
SELECT VALUE 'Name=[' + e.Name + ']' FROM
AdventureWorksEntities.Products AS e