I am trying to access named sql queries from the configuration. They are
registered. when i call
session.GetNamedQuery("mysqlquery").List();
it works.
However if i try to access the query from the configuration
new Configuration().Configure().NamedSQLQueries["mysqlquery"]
I get key not found exception.
in fact NamedSQLQueries is empty, while NamedQueries contains all the hql
queries i defined.
The file containing the sql query is an embedded resource and it is
interpreted with the rest of the hbm files.
Am I missing something to access the named sql query from the configuration
or is this a bug?
the sql query is
select distinct a.column
from tableA a inner join other.database.tableB b on a.column = b.column
where b.date between :start and :stop
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/cHJ3Ym56Z01CRVFK.
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.