Posted on: 1/30/2014 6:34:42 AM | Views : 651

Hello 
I have to execute below query using linq 
string query = "select CustomerName,CustomerAddress,CustomerPhone from CustomerTab";
Then after i have to create a list of cutomer for that i have created Entity Class.
I was tring below code, it is show right cout of fetched record from database but i am not able to create its list correctly.
MyDataContext tdc = new MyDataContext();string query = "select CustomerName,CustomerAddress,CustomerPhone from CustomerTab"; IEnumerable<dynamic> dyna = tdc.ExecuteQuery<dynamic>(query) .ToList(); foreach (var d in dyna) { // create list here } Can any one help me to do this using linq ?

Go to the complete details ...