+ (Add)


Adds two numbers.

expression + expression  

Any valid expression of any one of the numeric data 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.

For EDM.String types, addition is concatenation.

The following Entity SQL query uses the + arithmetic operator to add two numbers. The query is based on the AdventureWorks Sales Model. To compile and run this query, follow these steps:

  1. Follow the procedure in How to: Execute a Query that Returns StructuralType Results.

  2. Pass the following query as an argument to the ExecuteStructuralTypeQuery method:

[!CODE [DP EntityServices Concepts 2#ADD](../CodeSnippet/VS_Snippets_Data/dp entityservices concepts 2#add)]

Entity SQL Reference
Conceptual Model Types (CSDL)