There is a Delete overload that accepts EntityName and Id. But was is
this EntityName? Is it name of the class or what? I am asking because
if I do Session.Delete("MetaProject", id) i get an error

NHibernate.MappingException: No persister for: MetaProject
at NHibernate.Impl.SessionFactoryImpl.GetEntityPersister(String
entityName)
at NHibernate.Impl.SessionImpl.GetEntityPersister(String entityName,
Object obj)
at NHibernate.Event.Default.DefaultDeleteEventListener.OnDelete
(DeleteEvent event, ISet transientEntities)
at NHibernate.Event.Default.DefaultDeleteEventListener.OnDelete
(DeleteEvent event)
at NHibernate.Impl.SessionImpl.FireDelete(DeleteEvent event)
at NHibernate.Impl.SessionImpl.Delete(String entityName, Object obj)
at
dnnSphere.MetaTests.PersistenceSpecificationTests.MetaProjectTest.TearDown
() in MetaProjectTest.cs: line 127

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=.


Reply via email to