At Run Time I got This Error pet is not mapped..
In My Following Code :-
using (ITransaction transaction = session.BeginTransaction())
{
IQuery query = session.CreateQuery("from pet where PetName='S.J.'");
pet pets = query.List<pet>()[0];
session.Delete(pets);
transaction.Commit();
}
Change your “pet” to “Pet” in your query . I hope it fixes the problem.