예제 #1
0
 public static bool UpdateFetchCount(int fetchCount, int requestCount, int id)
 {
     try
     {
         IUpdateDataSourceFace query = new UpdateSQL(TableName.FetchRecord);
         query.DataBaseAlias = Const.LogConnection;
         query.AddWhere("Id", id);
         query.AddFieldValue("FetchCount", fetchCount);
         query.AddFieldValue("RequestCount", requestCount);
         return(query.ExecuteNonQuery() > 0);
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         return(false);
     }
 }
예제 #2
0
 public static bool UpdateRecordOver(int blogId)
 {
     try
     {
         IUpdateDataSourceFace query = new UpdateSQL(TableName.ResourceRecord);
         query.DataBaseAlias = Const.LogConnection;
         query.AddWhere("BlogId", blogId);
         query.AddFieldValue("Continued", false);
         return(query.ExecuteNonQuery() > 0);
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         return(false);
     }
 }