sql server 2008 table valued parameters linq2sql

╄→尐↘猪︶ㄣ 提交于 2019-12-04 11:50:54

Table Value parameters aren't supported yet in LINQ to SQL. There's a few posts about this on Microsoft's MSDN forums:

DbType.Structured not available

SQL Server 2k8.User Defined Table Type. Mapping between DbType 'Structured' and Type 'System.Object'

The second link refers to Entity Framework, but the underlying issue is the same.

I actually had to try this myself. :0

It does not seem to be supported. I get this error when adding a stored procedure using a tvp parameter into the dbml file

DBML1005: Mapping between DbType 'Structured' and Type 'System.Object' in Parameter 'TVP' of Function 'dbo.spTestTableTypeParm' is not supported

Sad but true, I thought this could be a killer feature of sql 2008 and linq2sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!