Update access

This commit is contained in:
sunkaixuan 2022-02-20 16:46:33 +08:00
parent 3fe74ad4ee
commit 8373241e6d
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ namespace OrmTest
/// Account have permission to create database
/// 用有建库权限的数据库账号
/// </summary>
public static string ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+GetCurrentProjectPath+"test.accdb";
public static string ConnectionString = "Provider=Microsoft.ACE.OleDB.15.0;Data Source="+GetCurrentProjectPath+"\\test.accdb";
/// <summary>
/// Account have permission to create database
/// 用有建库权限的数据库账号

View File

@ -57,7 +57,7 @@ namespace SqlSugar.Access
}
public override IDataAdapter GetAdapter()
{
return new SqlDataAdapter();
return new OleDbDataAdapter();
}
public override DbCommand GetCommand(string sql, SugarParameter[] parameters)
{