Does your repository interface use a generic? A properly designed interface using a generic allows this easily.
John Davidson On Sat, Jun 4, 2011 at 6:52 PM, Gunnar Liljas <[email protected]>wrote: > What do you mean by "returns an IQueryable from a named entity"? > > > 2011/6/4 Kenneth Siewers Møller <[email protected]> > >> Hi, >> >> Is it possible to query named entities using Query or QueryOver (or is >> there a hack/workaround available)? >> I'd like to have a repository method that returns an IQueryable from a >> named entity, but I can't seem to find any overload that accepts an >> entity name. The only way I can get it, it through CreateCriteria, but >> I can't expose ICriteria in the repository interface. >> >> >> Thanks in advance. >> >> >> Kenneth >> >> -- >> 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. > -- 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.
