Breeze / breeze-client

Breeze for JavaScript clients
MIT License
38 stars 16 forks source link

entityAspect.setProperty on navigation property rejects entity value of type from TPH inheritance on the server #49

Closed lvasiliou closed 3 years ago

lvasiliou commented 3 years ago

Hi I have a set of entities that use TPH on the server. Trying to assign such entity to a navigation property via entity Aspect.setProperty, the value is cleared with no error. Not sure if this is a side effect of my workaround of issue #44

steveschmitt commented 3 years ago

There was a bug in the metadata generation in Breeze.Persistence.EFCore - it was duplicating properties between classes in a TPH hierarchy. Please try updating your Breeze server library to version 3.1.4 for .NETCore 3.1, or to version 5.0.4 for .NET5.

Let me know if that fixes the problem. Thanks!

steveschmitt commented 3 years ago

@lvasiliou Can we close this issue?