mtanneryd / ef-bulk-operations

Bulk operations for Entity Framework 6
Apache License 2.0
80 stars 30 forks source link

BulkUpdateAll error with use proxy type. #8

Closed simai4 closed 6 years ago

simai4 commented 6 years ago

Hi @mtanneryd.

I'm get entities from entity fremwork, modify and BulkUpdateAll(). I have exception in runtime. The problem is that entity fremwork returns a collection of proxy types.

Solution: add stringin DbContextExtensions in GetMappings method on 1794 row "t = ObjectContext.GetObjectType(t);"

mtanneryd commented 6 years ago

Thanks!

I have reproduced the problem and corrected it with your suggested fix. I have committed the fix as well as some other recent bug fixes. A new nuget release will be available shortly.

mtanneryd commented 6 years ago

This has been fixed and will be included in the upcoming 1.2.2 release.