I was wondering how to do the following in QueryOver (NHibernate 4.0.4) Say I have this set of classes How would I go about getting all students a ...
I was wondering how to do the following in QueryOver (NHibernate 4.0.4) Say I have this set of classes How would I go about getting all students a ...
I'm wrapping QueryOver with the interface IQueryOver. Thanks UnderlyingCriteria I can access to the criteria. I'd like to use the IQueryOver methods ...
I want to check if there is a person in the database who has exactly two specific addresses. My proper SQL query: I am trying to create (C# and Qu ...
given this table i want to select into custom DTO projection with is dto is not a problem but i'am looking a way to add the count to my query ...
I have two lists. And I have two database tables Account and AccountDescriptionHistory. Tables have a relation with accountId. Account Table Desig ...
We use Vs2019 with an older version of Nhibernate 3.2. We recently upgraded to VS2019. This code worked correctly in VS2010. We are getting this error ...
I am trying to filter a query based on the values of all the objects on the left join. My objects are defined as such: And they are mapped like thi ...
I have stucked in executing NHibernate query several times with changing only one parameter. Here is my code Thanks for help in advance! ...
I ran into an issue where the following code results in an exception. When I comment the first part of the method (Session.QueryOver WerkSchema...) ...
I have two queries based in session.QueryOver. The queries are different, but returns a IList the same type object. The number of result of the two qu ...
I have multiple queries against one table. As not all columns/properties are needed I specify the columns with the help of select list. Take the follo ...
I am trying to use NHibernate QueryOver to return results where a column (DoNotDisplay) with a comma separated string does not contain a specific stri ...
Since we have migrated our solutions from VS2010 to VS2017 a lambda expression of NHibernate QueryOver is not working properly. After various tests I' ...
I would like to select rows for which the property Items which is an IList has rows itself. In SQL its easy count >= 1 but in NHibernate it eludes ...
I have classes Foo and Bar I have an input q and I want to write an NHibernate query that returns a list of Foo objects if Foo.Name contains q or a ...
All, I have a query as such: In the above QueryOver I call _AddOrderBy() method which adds an order by clause. The challenge I face is how do I cr ...
I have a following working SQL query: I'd like to write this in NHibernate. With multiple trips to DB for each entity it works, of course, but I'd ...
My requirement is to fetch the SiteItemOnHand records, group by Businessunitid,inventoryitemid and get the whole SiteItemOnHand record in each group w ...
given is the table A with columns EntityType (Enum that specifies either Entity/Table of type B or Entity/Table of type C) and EntityID (ID of an entr ...
I have two entities A and B where A has one-to-many relationship with B. I would like to create an NHibernate query that fetches all A entities with a ...