public virtual void Save(iSabayaContext context) { bankAccount.SaveOrUpdate(context); this.UpdatedTS = DateTime.Now; context.PersistencySession.SaveOrUpdate(this); }
public virtual bool UpdateEvent(iSabayaContext context) { try { context.PersistencySession.Update(this); } catch (Exception ex) { throw ex; } return(true); }
public virtual void Delete(iSabayaContext context) { context.PersistencySession.Delete(this); }
public static DepositBankAccount GetEvent(iSabayaContext context, int id) { return((DepositBankAccount)context.PersistencySession.Get(typeof(DepositBankAccount), id)); }
public virtual bool DeleteEvent(iSabayaContext context) { throw new Exception("The method or operation is not implemented."); }
public static IList <DepositBankAccount> List(iSabayaContext context) { ICriteria crit = context.PersistencySession.CreateCriteria(typeof(DepositBankAccount)); return(crit.List <DepositBankAccount>()); }
public static DepositBankAccount Find(iSabayaContext context, int bankAccountID) { return((DepositBankAccount)context.PersistencySession.Get(typeof(DepositBankAccount), bankAccountID)); }