You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question about using these entities with breeze. The entities generated have a property with the correct array type for a navigation property. If I do a query where I include an expand clause, I can see in the query results that the associated objects are loaded, and I can also see that the root entity is loaded, and that the array property has been "attacked" by breeze (it's added a bunch of custom properties and functions to the array object).
However the contents of the array is empty. So although the correct entities have been loaded, they are not associated with the root entity correctly.
Any idea how to overcome this?
Thanks!
The text was updated successfully, but these errors were encountered:
Backend is EF6, metadata is created with "standard" api endpoint...
[HttpGet]
public string Metadata()
{
return _contextProvider.Metadata();
}
Is there perhaps a tip you can give me on where in breeze it would be looking to attach the entities? Happy to debug and try and work it out, just quicker if you can give me a pointer as to where :)
Ok, something is not right with your EF model then. Breeze uses the metadata to associate entities and populate their navigation properties. The tooling just generates TypeScript classes to give you type information around the entites and allow you to extend your entities with custom code. You should see the same issue if you omit the call to the RegistrationHelper.register method and just let Breeze materialize untyped objects.
Hi guys,
I have a question about using these entities with breeze. The entities generated have a property with the correct array type for a navigation property. If I do a query where I include an expand clause, I can see in the query results that the associated objects are loaded, and I can also see that the root entity is loaded, and that the array property has been "attacked" by breeze (it's added a bunch of custom properties and functions to the array object).
However the contents of the array is empty. So although the correct entities have been loaded, they are not associated with the root entity correctly.
Any idea how to overcome this?
Thanks!
The text was updated successfully, but these errors were encountered: