Похожие чаты

What’s the best way to insert a bulk number of

rows into ms sql server using ef core
I have like 28k rows need to be inserted and it should go in a transaction with other operation there are other computation as well
Should I need to loop through that 28k data and call insert operation directly ?

4 ответов

17 просмотров

you have two options: 1. loop all 25k and do what you want and add it one by one. 2. or using this premium package for do what you want https://entityframework-extensions.net/bulk-insert

Mr Thieves
you have two options: 1. loop all 25k and do what ...

bulk update/insert was a builtin ext in ef 7|8 iirc

https://learn.microsoft.com/en-us/ef/core/saving/execute-insert-update-delete

Похожие вопросы

Обсуждают сегодня

Карта сайта