I have read your answer regarding on the use of TVP in Dapper, I also have implemented your solution but when I execute the code, Dapper returns to me an "Unspecified Error" message. I have reviewed all of the components involved:
- TVP in SQL Server
- Datatable Structure in code behind is same as TVP
- Executing Stored Proc do not have an error
Here is the sample code for Dapper, I hope it help in analyzing my problem;
return _oledbconn.Query<int>(@"exec tvpdapper_sample ?", new {
otstatus = _dtTVP.AsTableValuedParameter()
}).SingleOrDefault();