Hi,
I have a repository object that knows the Type of the mapped hibernate class. But it doesn't have a generic <T>
type but instead a reference to a Type object Type TheMappedType
. So I cannot do something like:
session.QueryOver<typeof(TheMappedType)>()...
.
Usually what I can do with hibernate is:
session.Get(typeof(TheMappedType), someId)
.
So what's the big picture: My repository is a generic class with a generic interface type. I want to pass some lambda functions on this interface (for instance some where restrictions in a get method) and I want it to be translated to the actually mapped type... is there some way to do it?
Thank you Max