mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-04 15:30:53 +08:00
update
@@ -181,7 +181,11 @@ For example:
|
||||
|
||||
Suppose A, B, and C all have id. When the queried Dto structure is: `Dto {id, a1, a2, b1, b2 }`, `A.id` is mapped. You can also specify the `id = C.id` mapping.
|
||||
|
||||
> Reminder: You can directly map a navigation property in DTO
|
||||
Dto query only maps default fields (common attributes). For mapping objects, please use:
|
||||
|
||||
> Navigation object: ToList(a => new Dto { Catalog = a.Catalog })
|
||||
|
||||
> Multi table object: ToList((a, b) => new Dto { Catalog = b })
|
||||
|
||||
## API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user