0

I'm using EF 6.1.3 and installed EntityFramework.BulkInsert-ef6.

context.BulkSaveChanges();

gives me an error

context does not contain a definition for BulkSaveChanges

I'm forgetting a configuration? Reading https://entityframework-extensions.net/bulk-savechanges I cannot figure it out

Massimo Variolo
  • 4,669
  • 6
  • 38
  • 64

2 Answers2

1

You are using the wrong package.

See download link here: https://entityframework-extensions.net/download

You want to Z.EntityFramework.Extensions package: https://www.nuget.org/packages/Z.EntityFramework.Extensions/

Jonathan Magnan
  • 10,874
  • 2
  • 38
  • 60
  • BulkSaveChanges() remains not found. Is there any configuration to do? Do context have to extend/implement something? – Massimo Variolo Mar 17 '20 at 13:52
  • 1
    Nope, zero configuration, the method `BulkSaveChanges` should be available on your context as soon as you add the package in your reference. If you wish, send us a project here: info@zzzprojects.com and we will look at it (obviously, I'm the owner of this package). Perhaps your project still references the other package. – Jonathan Magnan Mar 18 '20 at 00:14
-1

You can get EFCore.BulkExtensions package then Use it to Bulk Crud with EF. Like This:

await _appDbContext.BulkDeleteAsync(List of Object); 
await _appDbContext.BulkUpdateAsync(List of Object); 
await _appDbContext.BulkInsertAsync(List of Object);