From 5c30ab960b0f54fb9ae198d8b997cf1f0d3f2dc8 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Mon, 25 Jul 2022 17:53:47 +0800 Subject: [PATCH] update --- Return-Data.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Return-Data.md b/Return-Data.md index 8b11b76..c565071 100644 --- a/Return-Data.md +++ b/Return-Data.md @@ -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