mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update AccessCore
This commit is contained in:
parent
68be1d540a
commit
40a52d94d0
@ -341,7 +341,7 @@ namespace SqlSugar.Access
|
||||
|
||||
private void Close(bool isOpen)
|
||||
{
|
||||
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection = true && isOpen)
|
||||
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection&& isOpen)
|
||||
{
|
||||
this.Context.Ado.Connection.Close();
|
||||
}
|
||||
@ -350,7 +350,7 @@ namespace SqlSugar.Access
|
||||
private bool Open()
|
||||
{
|
||||
var isOpen = false;
|
||||
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection = true && this.Context.Ado.Connection.State == ConnectionState.Closed)
|
||||
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection&& this.Context.Ado.Connection.State == ConnectionState.Closed)
|
||||
{
|
||||
this.Context.Ado.Connection.Open();
|
||||
isOpen = true;
|
||||
|
@ -8,6 +8,7 @@ namespace SqlSugar.Access
|
||||
{
|
||||
public class AccessInsertBuilder : InsertBuilder
|
||||
{
|
||||
public override bool IsOleDb { get; set; } = true;
|
||||
public override string SqlTemplate
|
||||
{
|
||||
get
|
||||
@ -17,7 +18,7 @@ namespace SqlSugar.Access
|
||||
return @"INSERT INTO {0}
|
||||
({1})
|
||||
VALUES
|
||||
({2}) ;";
|
||||
({2}) ;select @@identity";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user