How can i get List along with child list where child list having some condition in NHibernate

Posted by Kasani007 under C# on 12/26/2016 | Points: 10 | Views : 176 | Status : [Member] | Replies : 0
I Had Written a Query iN NHibernate as

var queryResult = CurrentSession.QueryOver().Where(r => r.StatusId == 1).JoinQueryOver(a => a.ActorList).Where(s=>s.IsActor==1).List().Distinct().ToList();


It Is Getting Records
Where(s=>s.IsActor==0)
also...

How can i get only IsActor==1 records...

Thanks in Advance




Responses

(No response found.)

Login to post response