0
我班的樣子:幫助屬性映射班裏
public class User
{
public virtual int ID {get;set;}
public virtual string Username {get;set;}
}
表:
User
-UserID INT NOT NULL,
-Username NVARCHAR(50) NOT NULL
UserID is the PK, IDENTITY.
我將如何使用NHibernate的屬性映射爲我的課?