Open XxSu opened 8 months ago
The problem is that .Include is not supported using Get<T>.
Its a huge gotcha.
The author expects you to use some way to convert dynamic back into an object from the Get(q) in your example, typically via serialized json.
I use mapster for converting.
var test = pagedResult.Adapt<List<Test>>();
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