karlchu wrote:
Upon a second look, I think you are missing a call to this:
Code:
cfg.AddAssembly("NHibernate.Examples");
I can't recall whether you need to call that before cfg.Configure() or after; try both.
Most of the forum that I read also said something like that.
ok this is what I have experienced in regards to your suggestion:
first attempt:
Configuration cfg = new Configuration().AddAssembly("NHibernate.Examples");
result:
Exception: something related to setting up the hibernate dialect
second attempt:
Configuration cfg = new Configuration().AddAssembly("NHibernate.Examples");
cfg.Configure();
result:
Same as the previous one
third attempt:
Configuration cfg = new Configuration().AddClass("NHibernate.Examples.Quickstart.User")
.AddAssembly("NHibernate.Examples");
result:
Same as the previous one
I've dealt most of my time with that configuration and the only one working is the one that I am using right now new Configuration().Configure();
I don't know why the guide given by most of the Nhibernate programmers' on the web doesn't seems to get my program's running:(
I am totally stuck at the moment, I have been dealing with this problem for 2 days in :( and I really have to get it done within the next 5 hours, thus it's really urgent.