You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var q = db.Query().From("SysUser");
//db.Statement
q.IncludeMany("UserRoles", db.Query("SysUserRole"),"Uid","Id");
var d1= db.Get<SysUser>(q).ToList();
the table SysUserRole has one record ,but the d1 don't hava any list in the UserRoles propety
but if I use db.Get(q).ToList(); the result is right
The text was updated successfully, but these errors were encountered:
how to use include.
I use code example :
the table SysUserRole has one record ,but the d1 don't hava any list in the UserRoles propety
but if I use db.Get(q).ToList(); the result is right
The text was updated successfully, but these errors were encountered: