Пример #1
0
        public virtual void Save(iSabayaContext context)
        {
            bankAccount.SaveOrUpdate(context);

            this.UpdatedTS = DateTime.Now;
            context.PersistencySession.SaveOrUpdate(this);
        }
Пример #2
0
 public virtual bool UpdateEvent(iSabayaContext context)
 {
     try
     {
         context.PersistencySession.Update(this);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }
Пример #3
0
 public virtual void Delete(iSabayaContext context)
 {
     context.PersistencySession.Delete(this);
 }
Пример #4
0
 public static DepositBankAccount GetEvent(iSabayaContext context, int id)
 {
     return((DepositBankAccount)context.PersistencySession.Get(typeof(DepositBankAccount), id));
 }
Пример #5
0
 public virtual bool DeleteEvent(iSabayaContext context)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Пример #6
0
        public static IList <DepositBankAccount> List(iSabayaContext context)
        {
            ICriteria crit = context.PersistencySession.CreateCriteria(typeof(DepositBankAccount));

            return(crit.List <DepositBankAccount>());
        }
Пример #7
0
 public static DepositBankAccount Find(iSabayaContext context, int bankAccountID)
 {
     return((DepositBankAccount)context.PersistencySession.Get(typeof(DepositBankAccount), bankAccountID));
 }