资 源 简 介
通用数据库访问Helper 支持Oracle、SqlServer、MySQL、Access数据库访问方便简洁
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace PromotionDB.Interface
{
public interface IDataSource
{
bool Open();
int ExecuteNonQuery(string _ConStr);
DataTable ExecuteQuery(string _ConStr);
bool Close();
}
}
using System;
using System.Collections.Generic;
using System.Text;
using PromotionDB.Interface;
using MySql.Data.MySqlClient;
using System.Data;
namespace PromotionDB.Util.DataAccess
{
///
/// 连接MySql数据库
///