예제 #1
0
 public void Insert(ActiveUp.Net.Common.DeltaExt.Folder folder)
 {
     using (FolderSQLDb dao = new FolderSQLDb())
     {
         dao.Insert(folder);
     }
 }
예제 #2
0
 public void Update(ActiveUp.Net.Common.DeltaExt.Folder folder)
 {
     using (FolderSQLDb dao = new FolderSQLDb())
     {
         dao.Update(folder);
     }
 }
예제 #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);
     }
 }