EntityFramework-Plus icon indicating copy to clipboard operation
EntityFramework-Plus copied to clipboard

No support for "Owned Entity Types" ?

Open tdolgyras opened this issue 5 years ago • 2 comments

No support for "Owned Entity Types" ?

We get a strange error.

Value cannot be null. (Parameter 'property')

Code

dbContext.Parents.Where(p=> p.Child.CategoryId == 1)
                         .Update(p=> new Parent()
                         {
                             Child= new Child()
                             {
                                 CategoryId = 4
                             }
                         });

Version : Z.EntityFramework.Plus.EFCore 2.0.32

tdolgyras avatar Mar 11 '20 12:03 tdolgyras

Hello @tdolgyras ,

We will look at it.

We are currently reviewing how we handle the model to better support Owned and Owned Collections.

So we will check if we can make a quick fix for it or if we should wait we complete the code re-write for the model.

Best Regards,

Jon


Performance Libraries context.BulkInsert(list, options => options.BatchSize = 1000); Entity Framework ExtensionsEntity Framework ClassicBulk OperationsDapper Plus

Runtime Evaluation Eval.Execute("x + y", new {x = 1, y = 2}); // return 3 C# Eval FunctionSQL Eval Function

JonathanMagnan avatar Mar 11 '20 13:03 JonathanMagnan

Hello @tdolgyras ,

Just to let you know that no quick fix will be done as my developer didn't succeed to find a solution on time.

However, we are currently re-writing our code for the model at this moment. So we will certainly try to look at it as soon as we complete it since that will be part of our unit testing.

We cannot provide any estimate at this moment.

JonathanMagnan avatar Mar 17 '20 01:03 JonathanMagnan