Example #1
0
 public void Insert(ActiveUp.Net.Common.DeltaExt.Folder folder)
 {
     using (FolderSQLDb dao = new FolderSQLDb())
     {
         dao.Insert(folder);
     }
 }
Example #2
0
 public void Update(ActiveUp.Net.Common.DeltaExt.Folder folder)
 {
     using (FolderSQLDb dao = new FolderSQLDb())
     {
         dao.Update(folder);
     }
 }
Example #3
0
 public Folder GetById(long id)
 {
     ActiveUp.Net.Common.DeltaExt.Folder folder = null;
     using (var dbcontext = new FAXPECContext())
     {
         try
         {
             FOLDERS a = dbcontext.FOLDERS.Where(x => x.ID == id).FirstOrDefault();
             folder = AutoMapperConfiguration.MapToFolder(a);
         }
         catch (Exception ex)
         {
             ManagedException mEx = new ManagedException(ex.Message, "FOL_ORA003", string.Empty, string.Empty, ex);
             ErrorLogInfo     er  = new ErrorLogInfo(mEx);
             log.Error(er);
             throw mEx;
         }
         return(folder);
     }
 }