LINQ to SQL with stored procedures and user defined table type parameter

前端 未结 3 1615
别跟我提以往
别跟我提以往 2020-12-06 16:09

I am using LINQ to SQL with stored procedures in SQL Server 2008. Everything work well except one problem. L2S cannot generate the method for the stored procedure with user

3条回答
  •  一个人的身影
    2020-12-06 16:53

    I happened upon this post that provides a means of calling stored procedures with TVP parameters from Linq2Sql. It's a round about method that basically creates a partial class extension of your dataContext and passes a dataTable using an SqlCommand. I hope it helps.

提交回复
热议问题