in my nhibernate session helper class, I load my entities into the configuration like:
static NHibernateHelper()
{
try
{
Configuration cfg = new Configuration();
cfg.Configure();
cfg.AddAssembly(typeof (Category).Assembly);
cfg.AddAssembly(typeof (Product).Assembly);
SessionFactory = cfg.Configure().BuildSessionFactory();
}
catch (Exception ex)
{
}
}
It works fine if I only have 1 cfg.AddAssembly, but loading both Category and Product results in an error?