Replies: 3 comments 5 replies
-
dto啊 |
Beta Was this translation helpful? Give feedback.
0 replies
-
.ToList<Dto>() |
Beta Was this translation helpful? Give feedback.
2 replies
-
不好意思我没有说清楚: public virtual IList<SomeEntity> QueryData(......)
{
......
} 即需要返回 IList<SomeEntity>,无 DTO 设计,而且查询时只排除某一个字段(比如该字段为 BLOB,列表不需要)。 当然可以有多种解决方案,FreeSql 也能解决,比如书写所有字段属性,或 ToList<DTO>() 后再 Convert,或改造 QueryData() 返回类型等等。 |
Beta Was this translation helpful? Give feedback.
3 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.
-
表中字段比较多时,若要 select 排除一两个字段,现在得把要查询的字段一一写出来:
要是有个 IgnoreColumns,就方便多了:
Beta Was this translation helpful? Give feedback.
All reactions