Dapper-Extensions
Dapper-Extensions copied to clipboard
Having Exception while inserting List of objects
Hi, I'm having exception while inserting list of object. Exception is:
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: Must declare the scalar variable "@Capacity".
I had a similar issue. Show us your code. I might be able to help.
have this same problem when inserting a list of objects and found no documentation on the wiki. it would be cool if this works.
You can try to specify the generic parameter like db.Insert<Animal>(animalList)
.
Same here, in my case de mensage is: Must declare the scalar variable "@IsReadOnly".
Can someone send some code so I can try to reproduce and include this on unit testing?