hello,
I'm using Nhibernate version 2.2 for mapping classes to tables in my project. following is my class file and mapping file
public abstract class BasicUser
{
public virtual int RowID { get; set; }
public virtual string DisplayName { get; set; }
public BasicUser()
{
}
}
<class name="BasicUser" table="UserAccounts" >
<id column="RowID" type="Int32">
<generator class="native" />
</id>
<property name="DisplayName" type="String" length="25" />
<!-- More mapping members -->
</class>
the issue Im having now is, whenever I save an object it saves with an automatically generated RowID for the object. But when I query the object from the database in a later time (using some other property in the IQuery) I get the object with RowID always set to 0. Could you guyz please tell me how to retrive an object with its current RowID. Thank you.