Top "Nhibernate" questions

NHibernate is an open source object-relational mapper (ORM) for the .NET framework.

hibernate - createCriteria or createAlias?

If I want to search those students who take class "Math" and "John" is his group: shoud I use createCriteria …

nhibernate hibernate createcriteria
How to solve "Batch update returned unexpected row count from update; actual row count: 0; expected: 1" problem?

Getting this everytime I attempt to CREATE a particular entity ... just want to know how I should go about figuring …

nhibernate fluent-nhibernate automapping
Criteria.DISTINCT_ROOT_ENTITY vs Projections.distinct

I am pretty new to Hibernate. I found out that we can get distinct result using following two different ways. …

hibernate nhibernate distinct hibernate-criteria
How to make a method generic when "type 'T' must be a reference type"?

Possible Duplicate: Why do I get “error: … must be a reference type” in my C# generic method? I have 2 Repository …

c# nhibernate generics
List vs Set vs Bag in NHibernate

What's the difference between a list, set and bag in the NHibernate mapping file? How does each relate to .NET …

nhibernate
How can you do paging with NHibernate?

For example, I want to populate a gridview control in an ASP.NET web page with only the data necessary …

.net nhibernate orm pagination
NHibernate using QueryOver with WHERE IN

I would create a QueryOver like this SELECT * FROM Table WHERE Field IN (1,2,3,4,5) I've tried with Contains method but I've …

c# nhibernate queryover where-in
SaveOrUpdate Vs Update and Save in NHibernate

What is the difference between SaveOrUpdate and Save/Update in NHibernate. Why wouldnt you just always use SaveOrUpdate? Also, what …

nhibernate
Get Distinct result set from NHibernate using Criteria API?

I'm trying to get distinct results using the Criteria API in NHibernate. I know this is possible using HQL, but …

nhibernate
NHibernate - not-null property reference a null or transient value

I'm getting this exception (Full exception at the bottom): NHibernate.PropertyValueException was unhandled by user code Message="not-null property references …

c# nhibernate exception fluent-nhibernate nhibernate-mapping