I want to reformat the data without going back to the database and in a dynamic way So that the user can specify what columns he wants to collect
how I can Write an sql string and execute it like EXECUTE IMMEDIAT in Oracle Inside C# Linq want to do a lock like combining two or more fields (multiply - merge...) ToTable It only allows me to specify the names of existing fields
FillDataSorce(params P)
{
// p It is a variable containing the field to be queried
//Like
//field1 = d["field1"] ,
//field2 = d["field2"] ,
//field sum = d["field1"] +d["field2"]
BSo.DataSource = from d in dt.AsEnumerable()
select new
{
P.Select(p => p) //col3col2 = d["col1"] + d["col2"] Dynamic field example
};
}