I don't think you can do that easily. Maybe using interceptors?
RP
On Wednesday, July 16, 2014 12:07:57 PM UTC+1, Theeranit Pongtongmuang
wrote:
>
> My idea is that I want to know entity and mapping class from HQL query.
>
>
> For example if I have. User.cs for Entity and UserMap.cs for Mapping of
> User.cs
>
> Then I query with HQL like this>
>
>
> var hql = session.CreateQuery("FROM User");
>
>
> How can I know this query run against User.cs and UserMap.cs mapping.
> This is because I want to prevent user for query some of entity.
>
>
> Thank you so much.
>
--
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.
For more options, visit https://groups.google.com/d/optout.