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

前端 未结 3 1611
别跟我提以往
别跟我提以往 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:50

    I don't think there's anything available right now - table-valued parameters were introduced in SQL Server 2008 - after LINQ and LINQ2SQL were out already.

    I haven't found any mention in any of the blog post about support for table-valued parameters in LINQ2SQL in .NET 4.0 so far.

    UPDATE:
    Here's a blog post by Damien Guard on the fixes and improvement for Linq-to-SQL in the .NET 4.0 time frame.

    UPDATE 2:
    Unfortunately, according to Damien, this feature isn't supported in .NET 3.5, and will not be supported in .NET 4.0 either :-(

    Can't be done in 3.5 or 4.0 right now
    :( [)amien

提交回复
热议问题