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

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -