Top "Nhibernate" questions

NHibernate is an open source object-relational mapper (ORM) for the .NET framework.

Ensure NHibernate SessionFactory is only created once

I have written an NHibernateSessionFactory class which holds a static Nhibernate ISessionFactory. This is used to make sure we only …

c# nhibernate fluent-nhibernate sessionfactory
How to tell Fluent NHibernate not to map a class property

I have a class that is mapped in fluent nhibernate but I want one of the classes properties to be …

c# nhibernate fluent-nhibernate
Correct use of the NHibernate Unit Of Work pattern and Ninject

I have the following implementation and would like some feedback as to whether it makes correct use of NHibernate for …

nhibernate session transactions ninject unit-of-work
NHibernate -failed to lazily initialize a collection of role

I have the following seemingly simple scenario, however I'm still pretty new to NHibernate. When trying to load the following …

asp.net-mvc nhibernate fluent-nhibernate
How can I have NHibernate only generate the SQL without executing it?

I know how to log the SQL to log4net/NLog/trace window at runtime with the show_sql configuration …

sql nhibernate fluent-nhibernate
illegal access to loading collection error

I'm getting the error Illegal access to loading collection when I'm trying to get a list of variants belonging to …

nhibernate c#-3.0 nhibernate-mapping mapping collections
How to delete multiple db entities with Nhibernate?

What is the best practice for this problem? Is there any batching features built-in? Sample code: using (ITransaction transaction = _session.…

c# nhibernate hibernate batch-file batch-processing
Getting Fluent NHibernate to work with SQLite

I'm sure there is something simple I've not done but I'm trying to get Fluent NHibernate to work with Sqlite …

nhibernate sqlite fluent-nhibernate system.data.sqlite
Eagerly fetch multiple collection properties (using QueryOver/Linq)?

I found 2 similar questions: Multiple Fetches in linq to nhibernate Is this the right way of using ThenFetch() to load …

nhibernate linq-to-nhibernate queryover
NHibernate QueryOver Subquery

I've looked at the similar questions, but can't find a simple explanation. I could have missed it, but I promise …

nhibernate queryover