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 };