My class looks like:
public class User
{
public virtual int ID {get;set;}
public virtual string Username {get;set;}
}
Table:
User
-UserID INT NOT NULL,
-Username NVARCHAR(50) NOT NULL
UserID is the PK, IDENTITY.
How would I use nhibernate attribute mapping for my class?