What’s the best way to bulk database inserts from c#?

前端 未结 10 2164
盖世英雄少女心
盖世英雄少女心 2020-12-02 14:22

How do I/what’s the best way to do bulk database inserts?

In C#, I am iterating over a collection and calling an insert stored procedure for each item in the collect

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 15:11

    You can build a BLOB (image) and send it as a parameter to a stored procedure. Inside the stored procedure, you can fetch all the items using substring().

提交回复
热议问题