Today I done it here: Get field from dynamically/programatically named column name with Entity Framework
I referrenced it because this question is very similiar to it.
I would like to get all int values from specific column and sum them and return the value... I how can I do it?
For Example:
string column_name = "Col1";
int meterID = 6;
As old method: "SELECT SUM(column_name) FROM table_name Where MeterID = meterID;"