SubSonic 2.x StoredProcedure parameter data types?

别说谁变了你拦得住时间么 提交于 2019-12-12 01:30:34

问题


From what I can see, SubSonic 2.x stored procedure parameter data types can only be of type System.Data.DbType.

Is there a quick way to add System.Data.SqlDbType so we can use System.Data.SqlDbType.Structured to pass tables - ultimately to TVP's?

In this particular project, all data caller functions are accessed through StoredProcedures.cs. If we switched to 3.x, does it support SqlDbType.Structured, and if so, is it a seamless integration to retain the current StoredProcedures.cs methods?


回答1:


You should take a look here. Some guy with the same username and an identical avatar image just implemented that ;)




回答2:


So, I created my own solution for this - SubSonic 2.x now supports TVP's - SqlDbType.Structure / DataTables for SQL Server 2008

I'm somewhat surprised at the lack of response to TVP's, and seemingly low traction TVP's have in online communities.



来源:https://stackoverflow.com/questions/2970719/subsonic-2-x-storedprocedure-parameter-data-types

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