I am a little mystified(or stupid more likely) when it comes to QueryOver in NHibernate. I am trying something like this:
We are trying to use QueryOver and projects. Basically it works fine. But we are currently struggling with a projection which should contain multiple items. The problem is that we have pallets which c
Basically what I want to do is to write this piece of SQL: SELECT CASE WHEN t.ty开发者_StackOverflow社区pe = \'a\' THEN
Whilst SQL Server is perfectly comfortable doing: where Id like \'45%\' (id being an int), NH will complain as it will still try to send the compare value into sql as a SqlParameter of type int whe
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>()
My method has a parameter which will determine which column to perform a where filter on, so to make things generic I need to be able to perform some logic on which column I want to perform the where
How would you write t开发者_JAVA技巧he following using QueryOver (or CriteriaAPI for that matter)?
I have a QueryOver by JoinQueryOver In Nhibernate 3.1 The Person class has a association by Identity class (one-to-one)