我在Linq to Sql教程中找到了以下代码,Northwnd类是从哪里来的?它是自动生成的吗
Northwnd db = new Northwnd(@"c:\northwnd.mdf");
// Query for customers in London.
IQueryable<Customer> custQuery =
from cust in db.Customers
where cust.City == "London"
select cust;发布于 2011-10-23 16:51:48
它是使用Visual Studio中的向导通过将新的Linq to Sql元素添加到项目中生成的。我会向你推荐following blog post。和another one。
https://stackoverflow.com/questions/7865207
复制相似问题