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 ?
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
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
Обсуждают сегодня