コード例 #1
0
 public List <SyncAdapter> GetUserNewVersion(string tableName, long versionId, Guid userId)
 {
     try
     {
         var list = new SyncAdapterBO().GetUserNewVersion(this.ConnectionHandler, tableName, versionId, userId);
         return(list.ToList());
     }
     catch (KnownException ex)
     {
         Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
         throw new KnownException(ex.Message, ex);
     }
     catch (Exception ex)
     {
         Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
         throw new KnownException(ex.Message, ex);
     }
 }
コード例 #2
0
 public bool Exist(string tableName, string sourceId)
 {
     try
     {
         var exist = new SyncAdapterBO().Exist(this.ConnectionHandler, tableName, sourceId);
         return(exist);
     }
     catch (KnownException ex)
     {
         Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
         throw new KnownException(ex.Message, ex);
     }
     catch (Exception ex)
     {
         Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
         throw new KnownException(ex.Message, ex);
     }
 }