QueryOver is a strongly-typed fluent-like wrapper on top of NHibernate ICritieria, a database-agnostic query API that supports query composition.
Questions tagged [queryover]
740 questions
-1
votes
1 answer
Nhibernate Queryover, how to access nested proeprty
this is my model
public class A{
public int Id {get; set;}
public ICollection bs {get; set;}
}
public class B{
public int Id {get; set;}
public ICollection cs {get; set;}
}
public class C{
public int Id {get; set;}
}
now…

gt.guybrush
- 1,320
- 3
- 19
- 48
-1
votes
1 answer
Update. How to access values returned by native SQL NHibernate query?
I have this table (table name is price):
value productId ShopID Timestamp
1.30 1 5 2015-05-30 05:20:28.000
1.20 1 5 2015-05-29 16:09:34.000
1.00 1 5 2015-05-29 16:09:43.000
1.20 1 …

user3677314
- 43
- 1
- 7
-1
votes
1 answer
NHIbernate add OR Criteria Query to existing criterias
I know how to add OR restriction using Disjunction() but i need add to this group of criterias, and i alwasy require at least 2 criterias. Im wondering how can I add single OR to existing criterias.
Semi code…

Sheryf
- 71
- 2
- 13
-1
votes
1 answer
NHibernate QueryOver equivalent
I would appreciate some help on writing the NHibernate QueryOver equivalent for the below mentioned SQL:
select sum(s.StudentCount),sum(w.TotalEarningsAmount),
avg(w.TotalEarningsAmount),count(w.TotalEarningsAmount)
from School s inner join…

hegdesachin
- 285
- 1
- 2
- 9
-2
votes
2 answers
Updating a N-1 columns of a N columned table using QueryOver() method
I want to update only some columns say N-1 columns in a table containing N columns using NHibernate QueryOver syntax.
The query I tried is something like this.
public T UpdatePost(Object DateUpdated, object DateExpires, object Id)
{
…

navule
- 3,212
- 2
- 36
- 54