Thanks for getting back to me. I think I've come up with a future 
enhancement which would solve this. It would be neat if you could specify 
the alias that a table uses when doing selects/joins. Currently if I say:


session.Query<ProductTransaction>()...


it's:


producttra0_1_


But if I say:


session.Query<Transaction>()...


it's:


transactio0_


If I could override the alias then I would know that it would use the same 
alias every time. If you think this will be a good idea I could possibly 
look into implementing it but I've never dived deep into the NHibernate 
source code before.


Regards

On Monday, 29 June 2015 15:33:11 UTC+1, Lee Timmins wrote:

> Hi, I have just published the following question on StackOverflow:
>
>
> http://stackoverflow.com/questions/31117960/nhibernate-formula-uses-wrong-prefix
>
> However after posting it, I think this is either a bug or a potential 
> feature request. It would be neat if you could say "base.Amount" within the 
> formula mapping to access the parent column.
>
> I'd appreciate it if someone could let me know if this is possible. If not 
> then I'll submit a ticket. Thanks
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhibernate-development+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to