コード例 #1
0
 public SendMail.Model.BackEndRefCode Load(decimal id)
 {
     using (IBackEndCodeDao dao = getDaoContext().DaoImpl.BackEndCodeDao)
     {
         return(dao.GetById(id));
     }
 }
コード例 #2
0
        public IList <SendMail.Model.BackEndRefCode> GetAll(bool refresh)
        {
            if (refresh)
            {
                using (IBackEndCodeDao dao = getDaoContext().DaoImpl.BackEndCodeDao)
                {
                    CacheManager <List <BackEndRefCode> > .set(CacheKeys.DATI_MEMO, (List <BackEndRefCode>) dao.GetAll());

                    return(CacheManager <List <BackEndRefCode> > .get(CacheKeys.DATI_MEMO, Com.Delta.Web.Cache.VincoloType.NONE));
                }
            }
            else
            {
                if (CacheManager <List <SendMail.Model.BackEndRefCode> > .get(CacheKeys.DATI_MEMO, Com.Delta.Web.Cache.VincoloType.NONE) != null)
                {
                    return(CacheManager <List <SendMail.Model.BackEndRefCode> > .get(CacheKeys.DATI_MEMO, Com.Delta.Web.Cache.VincoloType.NONE));
                }
                else
                {
                    return(GetAll(true));
                }
            }
        }
コード例 #3
0
 public void Delete(decimal id)
 {
     using (IBackEndCodeDao dao = this.getDaoContext().DaoImpl.BackEndCodeDao)
         dao.Delete(id);
 }
コード例 #4
0
 public void Insert(BackEndRefCode entity)
 {
     using (IBackEndCodeDao dao = this.getDaoContext().DaoImpl.BackEndCodeDao)
         dao.Insert(entity);
 }
コード例 #5
0
 public List <BackEndRefCode> GetByDescr(string descrBackEnd)
 {
     using (IBackEndCodeDao dao = this.getDaoContext().DaoImpl.BackEndCodeDao)
         return(dao.GetByDescr(descrBackEnd));
 }
コード例 #6
0
 public BackEndRefCode GetByCode(string idCodeBackEnd)
 {
     using (IBackEndCodeDao dao = this.getDaoContext().DaoImpl.BackEndCodeDao)
         return(dao.GetByCode(idCodeBackEnd));
 }