c# - SQL Simple Equation (2 columns as something) -


i'm new linq , having difficulties converting part of sql query linq...

the part in query there subtract 1 column other , set new column name... how do in linq?

the part of sql follows: -

'[columna] - [columnb] actual'

thanks in advance!

in linq query can project result of query existing class (not 1 generated entity framework or linq sql) or anonymous type like:

var query = t in yourlist             select new               {                actual = t.columna - t.columnb              }; 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -