示例#1
0
 public void UpdateQuery(int queryId, string query)
 {
     using (var connection = ConnectionFactory.GetConnection())
     {
         var adminQ = new ResellerClub.DataAccess.AdminQuery(connection);
         adminQ.UpdateQuery(queryId, query);
     }
 }
示例#2
0
 public void SaveQuery(string query)
 {
     using (var connection = ConnectionFactory.GetConnection())
     {
         var adminQ = new ResellerClub.DataAccess.AdminQuery(connection);
         adminQ.SaveQuery(query);
     }
 }
示例#3
0
 public void DeleteQuery(int queryId)
 {
     using (var connection = ConnectionFactory.GetConnection())
     {
         var adminQ = new ResellerClub.DataAccess.AdminQuery(connection);
         adminQ.DeleteQuery(queryId);
     }
 }
示例#4
0
        public System.Data.DataTable GetAllQuery()
        {
            DataTable dt;

            using (var connection = ConnectionFactory.GetConnection())
            {
                var adminQ = new ResellerClub.DataAccess.AdminQuery(connection);
                dt = adminQ.GetAllQuery();
            }
            return(dt);
        }
示例#5
0
        public DataTable ExcueteQuery(string query, bool fillSchema)
        {
            DataTable dt;

            using (var connection = ConnectionFactory.GetConnection())
            {
                var adminQ = new ResellerClub.DataAccess.AdminQuery(connection);
                dt = adminQ.ExcueteQuery(query, fillSchema);
            }
            return(dt);
        }