mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Add db.Ado.OpenAlways()
This commit is contained in:
@@ -77,6 +77,11 @@ namespace SqlSugar
|
||||
{
|
||||
CheckConnection();
|
||||
}
|
||||
public virtual void OpenAlways()
|
||||
{
|
||||
this.Context.CurrentConnectionConfig.IsAutoCloseConnection = false;
|
||||
this.Open();
|
||||
}
|
||||
public virtual void Close()
|
||||
{
|
||||
if (this.Transaction != null)
|
||||
|
@@ -163,6 +163,7 @@ namespace SqlSugar
|
||||
void Dispose();
|
||||
void Close();
|
||||
void Open();
|
||||
void OpenAlways();
|
||||
void CheckConnection();
|
||||
|
||||
void BeginTran();
|
||||
|
Reference in New Issue
Block a user