Thanks it's work.....But....
I have a little problem.
I get an error
Quote:
[NHibernate.MappingException] = {"Unknown entity class: NHibernate.User"}
When I try to run
Quote:
session.Save(newuser);
I will be grateful if you help me?
Thanks,
Ido
All Code
Code:
Configuration cfg = new Configuration();
cfg.AddAssembly("NHibernate");
ISessionFactory factory = cfg.BuildSessionFactory();
ISession session = factory.OpenSession();
ITransaction tran = session.BeginTransaction();
NHibernate.User newuser = new NHibernate.User();
newuser.Id = "joe_cool";
newuser.UserName = "Joseph Cool";
newuser.Password = "abc123";
newuser.EmailAddress = "joe@cool.com";
newuser.LastLogon = DateTime.Now;
session.Save(newuser);
tran.Commit();
session.Close();