1.首先引用dll文件
2. //DBAccess.dll引用一個dll文件
private IDBAccess _access;
private static readonly string mySqlConnectionString = System.Configuration.ConfigurationManager.AppSettings["MySqlConnectionString"].ToString();
protected void Page_Load(object sender, EventArgs e)
{
_access = DBFactory.getDBAccess(DBType.MySql, mySqlConnectionString);
//0k可以增刪崇改查了
}
如下图片
时间: 2024-10-08 09:26:51