R
RR2705
Guest
Hi,
I have an array which changes and I have to add the select columns based on the values from array.
var selectArray = {"CustomerName", "Address", "LastUpdated"}
and based on the array the DBContext select query should be as follows
List<Customer> = dbContext.Select(s.CustomerName, s.Address, s.LastUpdated).Distinct().ToList();
Please let me know if there is a way I can accomplish that. Thanks.
Continue reading...
I have an array which changes and I have to add the select columns based on the values from array.
var selectArray = {"CustomerName", "Address", "LastUpdated"}
and based on the array the DBContext select query should be as follows
List<Customer> = dbContext.Select(s.CustomerName, s.Address, s.LastUpdated).Distinct().ToList();
Please let me know if there is a way I can accomplish that. Thanks.
Continue reading...