I\'m trying to establish a One-to-One relationship (Two-sided References relationship) between two classes. Both Properties should not be nullable. The problem is whe开发者_如何转开发n you try to save
I want to use nHibernate in a windows service. If the systems boots, it might start my service before the database. In that case, configuration of nHibernate fails and the service crashes. So now I\'m
The following line fails with a null reference, when testing: var awards = _session.Qu开发者_JAVA技巧eryOver<Body>().Where(x => x.BusinessId == (int)business).List();
I have two hbm.xml mappingfiles. They are identical except for the class table and class entity-name properties. They are supposed to populate the same Entity.
I have this nhibernate query var session = SessionFactory.GetCurrentSession(); var users = session.QueryOver<User>()
In NHibernate 1.2 is it possible to have the ID generated by a database trigger? Basically we need to change one of our tables to stop using a sequence and instead use a trigger to generate the primar
How can I map this SQL using NHibernate Criteria API?开发者_如何学编程 Sql: SELECT COUNT(*) FROM (
In my object graph, VendorServiceRateChange has a lazy loaded property IList<VendorService> VendorServiceList and the VendorService has a lazy loaded property IList<ClientService>.
I have a tests project that I am trying to test my nhibernate layer with using sql lite in-memory database.
I need to compare two DateTime properties in a linq query, similar to the one below - var patients = from c in session.Query<Patient>() where c.DateAdded.AddDays(1) < c.AdmitDate select c;