Replies: 1 comment
-
.ToList<C>(); |
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
-
现有A, B两张表和对应的实体,现在手动创建了一个实体C(要返回给前端的), C继承自A,并增加了一些字段 是来自B的。
使用A Inner join B 查询,在ToList的时候,不想一个个地写来自A的字段,有没有什么方法实现。(类似ToDatatable(new{a,Property1=b.Field1,Property2=b.Field12})的写没)
Beta Was this translation helpful? Give feedback.
All reactions