Hello!
When I run this show an error message:
Specified method is not supported. {Name =
"PolymorphicQuerySourceDetector" FullName =
"NHibernate.Hql.Ast.ANTLR.PolymorphicQuerySourceDetector"}
I have two entity employees and employeeTitles. I use QueryA in QueryB. I'm
suprised when see the error message. Can anyone help me? Do you have any
way to work arround this situation?
IQueryable QueryA (){
return from p in *employeeTitles*
group p by p.Employee.Id into grp
select grp.*OrderByDescending*(g => g.StartDate).First();
}
IQueryable QueryB () {
return employees.Join(*QueryA*, e => e.Id, et => et.Employee.Id, (e, et)
=> new { e, et })
.OrderBy(eet => eet.e.FirstName)
.Select(x => new EmployeeDto()
{
Id = x.e.Id,
FirstName = x.e.FirstName,
LastName = x.e.LastName,
MiddleName = x.e.MiddleName,
JoinedDate = x.e.JoinedDate,
});
}
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.