[Quote=引用 6 楼 skyeygarden 的回复:]
var q = from p in db.Products
where p.ProductName == "Pen"
select p.ProductID;
我一般不让我下面的人写这种语法,而是像NHibernate一样的写法,类访问属性的.如:
ctx.Where(o => o.....) 而这样的写法在很多开源的架构中都报错.
我像知道微软是否有对这方面的支持(多……
[/Quote]
var q = from p in db.Products
where p.ProductName == "Pen"
select p.ProductID;
我一般不让我下面的人写这种语法,而是像NHibernate一样的写法,类访问属性的.如:
ctx.Where(o => o.....) 而这样的写法在很多开源的架构中都报错.
我像知道微软是否有对这方面的支持(多数据库).