Replies: 1 comment
-
IsIgnore 不支持表达式内使用 返回数据可以用导航属性 Include/IncludeMany, 或者 fsql.Select<t1,t2>().ToList((a,b) => new { a, b}) 或者 .ToList<dto>() 具体看文档,《返回数据》 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
对象定义:
ToList() 及 First() 能否有满足以下查询业务数据 MyBiz 需求的重载:
第1种情况:带上 MyBiz.UserName。
目前 ToList() 我是后边加了 ConvertAll 来转换了一下(First() 还没找到方案):
似乎有下边一种方法,但得一个一个属性写,这样不行:
第2种情况:带上 MyBiz.User 中的指定几个属性(比如 LoginId、Name、UserCol1)。
导航属性查询时,ToList() 及 First() 能直接返回只填充 导航属性的某几个属性 的 MyBiz列表、MyBiz对象吗。
Beta Was this translation helpful? Give feedback.
All reactions