That should do the trick. Thanks for your help Richard. On 28 feb, 13:56, "Richard Brown \(gmail\)" <[email protected]> wrote: > Don't know if that's the same kind of thing that was asked about > here:http://stackoverflow.com/questions/4829303/nhibernate-queryover-using... > > But there are statically typed overloads that can be used in the ICriteria > API too if that helps? > > > > -----Original Message----- > From: Jorge Ramos Eguinoa > Sent: Monday, February 28, 2011 3:02 PM > To: nhusers > Subject: [nhusers] Re: QueryOver And EntityName > > I get your point Richard and you are right. > I've asked because I have 1 single class mapped to 3 database views > wich returns the same columns. > In this scenario I could use QueryOver because the only thing that I > need is that NH knows wich view has to query as they have the same > columns. > But this is a particular case where the only thing that I'm > determining at runtime is wich view does NH has to query. > Thanks! > > On 26 feb, 19:33, "Richard Brown \(gmail\)" <[email protected]> > wrote: > > QueryOver doesn't provide any feature over ICriteria other than static > > type-safety ... and if you're determining your class at runtime, I don't > > think QueryOver will help? > > > -----Original Message----- > > From: Jorge Ramos Eguinoa > > Sent: Thursday, February 24, 2011 7:55 PM > > To: nhusers > > Subject: [nhusers] QueryOver And EntityName > > > Hi, I would like to know if there is any way to use QueryOver with > > "entity-name". > > I have one class mapped to two database views using the "entity-name" > > attribute in mapping file. > > Currently I'm using CreateCriteria(string entityName) in order to > > query the database and it's working fine but I would like to replace > > this with QueryOver. Is there any way to do that? > > Thanks in advance. > > > Jorge Ramos Eguinoa > > > -- > > 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 > > athttp://groups.google.com/group/nhusers?hl=en.-Ocultar texto de la > > cita - > > > - Mostrar texto de la cita - > > -- > 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 > athttp://groups.google.com/group/nhusers?hl=en.- Ocultar texto de la cita - > > - Mostrar texto de la cita -
-- 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.
