v5.2.0
Enhancements
- Improve resource change tracking performance.
- Improve performance of response serialization for large number of included resources.
- Auto-feed includes from query string to the serializer when custom resource service is used.
- Refreshed examples: connection strings, API namespaces, seed with sample data, use
long
IDs, detailed logging.- NoEntityFrameworkExample now uses a hardcoded in-memory dataset, demonstrating how to implement a custom read-only resource service and resource repository, which compiles the produced LINQ query and executes it against the dataset.
- Harden Attr/Relationship attributes against invalid input.
- Updated Ember sample to use latest versions and include tests. Special thanks to @briarsweetbriar and @rtablada!
Bugfixes
- On secondary endpoint, the incoming filter from query string was not applied when determining total resource count via inverse relationship.
- A duplicate trailing slash was rendered in
Location
header when request path ended with a slash. - Minor corrections in documentation.
- Do not emit unused namespace import in controller source generator.
- Use deterministic culture when converting to string.
- Fixes for using
include
andfields
with EF Core owned entities.
Breaking changes
- Minor changes in the
QueryExpression
model shape, to make it easier to understand and consume. - Removed resource ID from error message, as the error is unrelated to any specific record.
- Disable EF Core Change Tracking on read-only requests (can be reverted by overriding a virtual method on the resource repository).
Merged PRs
- Fixed: incorrect meta:total on secondary endpoint with filter by @bart-vmware in #1259
- Query tweaks by @bkoelman in #1257
- Fix namespace imports in controller source generator by @bkoelman in #1261
- Improve serializer performance by @bkoelman in #1265
- Use deterministic culture when converting to string by @bkoelman in #1267
- Update examples by @bkoelman in #1269
- Harden Attr/Relationship attributes against invalid input by @bkoelman in #1268
- Fixes for EF Core owned entities by @bkoelman in #1272
Full Changelog: v5.1.2...v5.2.0