redarrowlabs / Argo

:squirrel: c# object => json.api relational mapping
MIT License
7 stars 3 forks source link

Convert Meta to JObject. Merge API responses into model instances #77

Closed zeitlerc closed 6 years ago

zeitlerc commented 6 years ago

76 Convert Meta from Dictionary to JObject to make the Patch object consistent and allow more flexible Meta pathing.

zeitlerc commented 6 years ago

The 84a776b commit fixes #75 if the HasManyIds property is accessed after a create or update. 84a776b also merges the API response into the model instance passed into the Update/Create method, which allows the consumer of the Update method to access updated eTag, timestamp, or relationship information. This also eliminates possible consumer bugs where the consumer accesses properties on the unmanaged entity after a Create

zeitlerc commented 6 years ago

84a776b might also fix #36 in a way. Creates/updates will replace the resource inside the model, essentially the method being described is the new argogenerated_Initialize method. That implementation might not be complete for includes in the Update