I am using https://github.com/borisdj/EFCore.BulkExtensions for bulk inserting data into database for better performance. Now I want to do the same while adding users in AspNetUsers table via userManager.CreateAsync()
method, Any suggestions?
Asked
Active
Viewed 878 times
3

Rushi Soni
- 1,088
- 1
- 13
- 21
-
Did you got any answer regarding this or solved it on your own? – mgsdew Dec 24 '19 at 10:30
-
@mgsdew, haven't got any answer yet, for now, I am turning off change detection before bulk inserting users via user manager. That has improved a little speed. – Rushi Soni Dec 24 '19 at 11:51
-
how do you turn off change detection for `usermanager`? – Hamza Khanzada Jan 27 '20 at 14:09
-
1@HamzaKhanzada you need to turn off AutoSaveChanges property of UserStore – Rushi Soni Jan 31 '20 at 10:54