.net Linq到SQL执行非查询

.net Linq到SQL执行非查询,.net,linq-to-sql,stored-procedures,.net,Linq To Sql,Stored Procedures,是否可以使用Linq to Sql执行不返回输出的存储过程???在服务器资源管理器窗口中,浏览并查找存储过程。将其拖到Linq to Sql设计器中的“方法”区域 此存储过程现在可以作为DataContext对象中的方法使用 e、 g 存储过程名称为IncrementCustomerVisit,它接受一个int类型的参数 在您的应用程序代码中: using (DataContext db = new DataContext()) { db.IncrementCustomerVisit(so

是否可以使用Linq to Sql执行不返回输出的存储过程?

在服务器资源管理器窗口中,浏览并查找存储过程。将其拖到Linq to Sql设计器中的“方法”区域

此存储过程现在可以作为DataContext对象中的方法使用

e、 g

存储过程名称为IncrementCustomerVisit,它接受一个int类型的参数

在您的应用程序代码中:

using (DataContext db = new DataContext())
{
   db.IncrementCustomerVisit(someCustomerID);                 
}

在服务器资源管理器窗口中,浏览并查找存储过程。将其拖到Linq to Sql设计器中的“方法”区域

此存储过程现在可以作为DataContext对象中的方法使用

e、 g

存储过程名称为IncrementCustomerVisit,它接受一个int类型的参数

在您的应用程序代码中:

using (DataContext db = new DataContext())
{
   db.IncrementCustomerVisit(someCustomerID);                 
}