public void Reload() { using (ISession session = UserContext.SessionFactory.OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { try { using (AppliactionContext.Log.LogTime(this, $"Reload proofsheet {Id}")) { DbProofsheet reloadeDbProofsheet = session.Load <DbProofsheet>(_dbProofSheet.Id); _dbProofSheet.Time = reloadeDbProofsheet.Time; _dbProofSheet.Passed = reloadeDbProofsheet.Passed; tx.Commit(); } } catch (Exception ex) { AppliactionContext.Log.Critical(this, ex.Message); tx.Rollback(); throw ex; } } } }
public Proofsheet(DbProofsheet dbProofsheet) { _dbProofSheet = dbProofsheet; }
public Proofsheet(DbProofsheet dbProofsheet) { _dbProofSheet = dbProofsheet; }