Exemplo n.º 1
0
 protected void PersistEntity(PersistentObject entity)
 {
     using (ISession session = GetSession())
     {
         session.SaveOrUpdate(entity);
         session.Flush();
     }
 }
 public DataSelfDeletingOnDisposalContext(DataCreationHelper creationHelper, PersistentObject[] entities)
 {
     this.creationHelper = creationHelper;
     this.entities = entities;
 }