我有个问题。当我尝试时,我想从对象中获取集合
UserProfile user = _session.Query<UserProfile>()
.Where(x => x.Email == email)
.FirstOrDefault();
用户有一组角色,没关系。但是当我尝试这个时:
IList<UserRole> role = _session.Query<UserProfile>()
.Where(x => x.Email == email)
.Select(x => x.Roles).FirstOrDefault();
它不起作用我收到一个错误:
could not execute query[SQL: SQL not available]