Error!
Success!

C# – Batch identity inserts

0
kicks

C# – Batch identity inserts  (Unpublished)

I’m currently building support for identity inserts in SisoDb where I need to let the database generate the ids and then assign them to the entities. To get better performance I want to batch up the inserts and sending them in a large chunk to the Sql-server and I want to make use of parameters to be protected from sql-injection attacks. You can of course use SqlBulkCopy but it will not let you get the generated identities so that you can assign them to your entities.


Kicked By:
Drop Kicked By: