zzzprojects / EntityFramework-Extensions

Entity Framework Bulk Operations | Improve Entity Framework performance with Bulk SaveChanges, Insert, update, delete and merge for SQL Server, SQL Azure, SQL Compact, MySQL and SQLite.
https://entityframework-extensions.net
346 stars 57 forks source link

BulkUpdate - Object reference not set to an instance of an object. #90

Closed Raphael-Saldanha closed 6 years ago

Raphael-Saldanha commented 6 years ago

Any ideas to overcome the following issue? at (Object , String , StringComparison ) at StringExtensions.(String , String ) at ..(ComplexPropertyMapping , Schema ) at Z.Internal.EntityFramework.Extensions.BLL.GetModel..(ComplexPropertyMapping ) at System.Collections.Generic.List1.ForEach(Action1 action) at Z.Internal.EntityFramework.Extensions.BLL.GetModel..(EntityTypeMapping ) at System.Collections.Generic.List1.ForEach(Action1 action) at Z.Internal.EntityFramework.Extensions.BLL.GetModel..(EntitySetMapping ) at System.Collections.Generic.List1.ForEach(Action1 action) at ..(Schema , Schema , SchemaMapping ) at ..(Schema , SchemaMapping , Schema ) at ..(String , String , String , String ) at ..(DbContext ) at DbContextExtensions.GetModel(DbContext this) at Z.EntityFramework.Extensions.BulkSaveChanges.(DbContext , List1 , Action1 ) at DbContextExtensions.(DbContext , Boolean , Action`1 , Boolean )

JonathanMagnan commented 6 years ago

Hello @Raphael-Saldanha ,

We are not sure but it appears to happen when we read the model.

To fix it, we will need your EDMX file

Please see instruction here for Code First: http://entityframework-extensions.net/edmx

You can send it directly to us: info@zzzprojects.com

Best Regards,

Jonathan

Raphael-Saldanha commented 6 years ago

It is related to complex type property, DayPrice, as show below

`

`

JonathanMagnan commented 6 years ago

Is it possible to have the full file?

It will make the investigation of this issue easier/faster and make sure to provide you a fix that will fully work.

As said, you can send it in private here: info@zzzprojects.com

Best Regards,

Jonathan

JonathanMagnan commented 6 years ago

Hello @Raphael-Saldanha ,

The v3.14.14 has been released

Let me know if your model can now be read correctly.

Best Regards,

Jonathan

JonathanMagnan commented 6 years ago

Hello @Raphael-Saldanha ,

This issue will be closed since it has been resolved.

Feel free to reopen it if you feel otherwise.

Best Regards,

Jonathan