queryover
How to project a list with QUeryOver in NHibernate
I am a little mystified(or stupid more likely) when it comes to QueryOver in NHibernate. I am trying something like this:[详细]
2023-04-09 00:50 分类:问答QueryOver and ProjectionLists
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[详细]
2023-04-07 20:04 分类:问答Fluent nHibernate QueryOver SQL 'CASE' equivalent
Basically what I want to do is to write this piece of SQL: SELECT CASE WHEN t.ty开发者_StackOverflow社区pe = \'a\' THEN[详细]
2023-04-07 06:17 分类:问答NHibernate 3 - How to perform a LIKE on an id/numeric/int
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[详细]
2023-04-06 16:17 分类:问答Mocking out nHibernate QueryOver with Moq
The following line fails with a null reference, when testing: var awards = _session.Qu开发者_JAVA技巧eryOver<Body>().Where(x => x.BusinessId == (int)business).List();[详细]
2023-04-06 12:12 分类:问答nHibernate: Using entity-name with QueryOver and CreateCriteria
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.[详细]
2023-04-06 11:17 分类:问答NHibernate 3 QueryOver one to many
I have this nhibernate query var session = SessionFactory.GetCurrentSession(); var users = session.QueryOver<User>()[详细]
2023-04-06 07:59 分类:问答How to attach a set of 'And' filters to a QueryOver query?
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[详细]
2023-04-05 23:27 分类:问答NHibernate QueryOver with nested select in FROM
How would you write t开发者_JAVA技巧he following using QueryOver (or CriteriaAPI for that matter)?[详细]
2023-04-05 18:07 分类:问答QueryOver by join and add conditions by Independent if
I have a QueryOver by JoinQueryOver In Nhibernate 3.1 The Person class has a association by Identity class (one-to-one)[详细]
2023-04-05 06:41 分类:问答