var result = dbContext.Clients.Select(c => c).ToList();
var result = from c in dbContext.Clients join s in db.Stores on c.StoreId equals s.Id into storeGroup select new Client{ Id = c.Id, Name = c.Name, Stores = storeGroup }; 这样写对吗?
LINQ TO SQL,容我来喷下,趁早弃坑,钻进这个里面将一发不可收拾,不但写不好程序,发展前途。
http://msdn.microsoft.com/zh-cn/library/bb311040.aspx