1

NHibernate provides us with ORM capabilities. Part of NHibernate generates queries based on mappings and HQL (or ICriteria). I'm wondering if it is possible to use NHibernate for generating queries against databases without using its ORM capabilities.

I'm trying to provide customers with custom access to their database. Since the schema of such database is unknown at design time queries need to be generated based on the configuration of a customer (including filtering through WHERE clauses).

Does anyone have experience with using NHibernate's (or other ORM) querying ability for custom SQL generation?

1 Answer 1

1

Look at the tools around hibernate that generate hibernate classes from ddl, or the reverse, like hbm2ddl.

Sign up to request clarification or add additional context in comments.

1 Comment

Any sample code about those tools and hbm2ddl, ddl, misters ??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.