Skip to content

Commit 88502bb

Browse files
docs: 📜 Update Claude.md
1 parent b744b8e commit 88502bb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎CLAUDE.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Documentation is built using DocFX and deployed to GitHub Pages. The documentati
8080
- **Async-first**: Main controller method `JsonApiOkAsync()` is async and works with `IQueryable<T>`
8181
- **Entity Framework integration**: Uses EF Core's `Include()` and query building capabilities
8282
- **Filter expressions**: Complex filtering with operators (eq, ne, gt, lt, contains, etc.), logical grouping, and enum support
83+
- **JSON column detection**: Collections and complex objects without ID properties are automatically mapped as JSON attributes instead of relationships (useful for EF Core owned entities stored as JSON columns)
84+
- **Pagination safety**: Invalid page numbers are automatically clamped to valid ranges (page 1 for negative/zero, last page for overflow)
8385

8486
### Service Registration
8587

@@ -122,7 +124,7 @@ Tests are organized by component:
122124

123125
1. **Query Operations**: Extend `FilterExpressionBuilder` and add corresponding operators to `FilterOperator` enum
124126
2. **New Controllers**: Inherit from `JsonApiController` and use provided helper methods
125-
3. **Entity Mapping**: Use `EntityMapper` for custom mapping rules or `IncludeAsAttributeAttribute` for special cases
127+
3. **Entity Mapping**: Use `EntityMapper` for custom mapping rules and automatic detection of relationships vs attributes
126128
4. **Testing**: Follow existing patterns with xUnit and Moq, test both success and error scenarios
127129

128130
### Common Patterns

0 commit comments

Comments
 (0)