은 내 다음 코드 .. 를 매핑되지 않은 : - 나는 때 사용 자 NHibernate를 HQL 또는 SQL을 사용하지 않도록오류가 난이 오류 애완 동물을 가지고 실행 시간에
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();
}
나는 당신이 오류가 있다고 상상할 수 있지만 귀하의 질문은 무엇입니까? nhibernate를 올바르게 사용하지 않기 때문입니다. – Peter