[已关闭问题]
关闭于 2008-03-21 14:08
<P><FONT face=Verdana>今天试验<FONT face=Verdana>Entity Framework 遇到问题,不知道向下面这些Lambda 表达式 为何会报错。<BR>又该如何修改。<BR><BR></FONT>NORTHWND.MDFModel.Entities ee = new NORTHWND.MDFModel.Entities();</FONT></P>
<P><FONT face=Verdana> var a = (from o in ee.Orders<BR> join c in ee.Customers on o.Customers equals c<BR> join s in ee.Shippers on o.Shippers equals s<BR> where c.CustomerID == "ALFKI"<BR> select new{c.CustomerID,c.CompanyName,o.OrderID,ShipperCompany = s.CompanyName}<BR> ).FirstOrDefault();</FONT></P>