Replies: 1 comment 1 reply
-
public class User : EntyBase
{
public string UserName { get; set; }
public string PassWord { get; set; }
}
public class UserLite : EntyBase
{
public string UserName { get; set; }
}
public class Clock : EntyBase
{
public int UserId { get; set; }
public User User { get; set; }
public UserLite UserLite { get; set; }
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如题
下面这样查询 会把User里面的PassWord也给查询返回出来
除了再转换成Dto之外 还有其他方式直接查询的时候排除不需要的字段 只保留需要的
Beta Was this translation helpful? Give feedback.
All reactions