Hi @pkumbhar,
If you aren’t already, can you try defining a mapping class for the Student
entity type. For reference, this may be helpful.
Hi @pkumbhar,
If you aren’t already, can you try defining a mapping class for the Student
entity type. For reference, this may be helpful.
Hi @developernotes .
My Trial Version is expired now I am trying to use NHibernate but getting below exception while Save & Commit
“No persister for: SQLiteNHibernateDemo.Student”
using below code
ISessionFactory facory=SessionFactory.CreateSessionFactory(“FIGMD.db”, “”);
using(ISession session=facory.OpenSession())
{
using(ITransaction trans = session.BeginTransaction())
{
Student stud = new Student() { PRN = 1, Name = “Test”, Age = “32” };
session.Save(stud);
trans.Commit();
}
session.Close();
}
Hi @pkumbhar,
We have provided an extension to your trial via private support. With regard to the NHibernate error, I suspect the issue is related to how you are building the session factory, specifically around providing a mapping type for the Student
entity type you are attempting to save.