I been reading nhibernate 3 for beginners and saw that I should not be using auto id\'s through MS Sql 2008 as this breaks the unit of work(what I am looking at implementing).
I\'m mapping a view using ActiveRecord, which means I need a primary key.I don\'t have one, so开发者_JS百科 I\'m using ROW_NUMBER() to create one in the view definition to placate the system. However,
I\'m having a hard time figuring out how to handle a mapping situation here: I have different objects (let\'s say news and posts) that can have multiple comments. I en开发者_如何学God up with the fol
I am playing around with making a nhibernate generic repo but I am unsure how to make a method to return an entity back by ID
I\'ve started learning NHibernate. I have the latest version installed and trying to run a very simple application. There\'s a class User:
I have a system in winforms C#.Net 2.0 with ActiveRecord + NHibernate communicating with a PostgreSQL 9 database.
I am writing a simple program using nhibernate Program.cs using System; using System.Collections.Generic;
I would like to map an Nhibernate many-to-one property to an interface like the following if that is possible:
I have set up my first project using FluentNHibernate. When I tried to get a list of records from a single table, I got an exception which says:
I\'m just looking for some documentation on how hibernate handles collisions using the ver column. understanding thus far: