Hi Stefano,

I don't see anything wrong with what you have there. I'm guessing we'd need to see the class definition for Anagrafica and possible the mapping file too.

Cheers,
   Richard

-----Original Message----- From: Stefano Paparesta
Sent: Thursday, December 09, 2010 2:19 PM
To: nhusers
Subject: [nhusers] Query Over

Hello, in my repository i'm  write

var ret = Session.CreateQuery("from Anagrafica A");
return ret.List<Anagrafica>();


and work fine.
But when replace with this code (query over)


var list = Session.QueryOver<Anagrafica>()
.OrderBy(m => m.RagioneSociale).Asc
.List();
return list;


i get this error


"Late bound operations cannot be performed on types or methods for
which ContainsGenericParameters is true."


What did I do wrong?


regards


Stefano Paparesta


--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to