var list = tempTable.Select(s=>new { s.ID, s.Name }).ToList();
var lists = from l in db.TempTables select new tempTable{ ID= l.ID, Name= S.Name, }; lists= lists.ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)