日期:2014-05-20 浏览次数:20712 次
CREATE PROCEDURE TwoCustomerGroups AS BEGIN SELECT CustomerID, ContactName, CompanyName, City FROM Customers AS c WHERE c.City = 'London' SELECT CustomerID, CompanyName, City FROM Customers AS c WHERE c.City = 'Torino' END
------解决方案--------------------
兄弟不要一味的全部追求Linq To SQL,在Linq To SQL 中也可以做把DataContext的Connection抽出来
直接用Fill(DataSet)方式。我调用存储过程返回数据集时都这样做的。但是其他都是Linq