I'm trying to use calculated properties that I use with Query<T>() inside
of a QueryOver<T>(). When using a LINQ query, I can register custom
generators with a customDefaultLinqToHqlGeneratorsRegistry. This works
great for calculated properties from an
expression<http://hendryluk.wordpress.com/2011/09/06/nhibernate-linq-ing-calculated-properties/>
so
the code isn't duplicated.
I can't seem to find the extension point for registering custom generators
for the QueryOver API. Does it exist?
I'd really like to *not* have to duplicate the calculated property logic
inside of a raw SQL string (Map(x =>
x.Prop).Formula("query").LazyLoad().Access.ReadOnly()). This means twice
the logic and twice the number of tests.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.