mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Synchronization code
This commit is contained in:
@@ -122,6 +122,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
CheckConnection();
|
CheckConnection();
|
||||||
}
|
}
|
||||||
|
public virtual async Task OpenAsync()
|
||||||
|
{
|
||||||
|
await CheckConnectionAsync();
|
||||||
|
}
|
||||||
public SugarConnection OpenAlways()
|
public SugarConnection OpenAlways()
|
||||||
{
|
{
|
||||||
SugarConnection result = new SugarConnection();
|
SugarConnection result = new SugarConnection();
|
||||||
|
|||||||
@@ -174,7 +174,9 @@ namespace SqlSugar
|
|||||||
|
|
||||||
void Dispose();
|
void Dispose();
|
||||||
void Close();
|
void Close();
|
||||||
|
Task CloseAsync();
|
||||||
void Open();
|
void Open();
|
||||||
|
Task OpenAsync();
|
||||||
SugarConnection OpenAlways();
|
SugarConnection OpenAlways();
|
||||||
bool IsValidConnection();
|
bool IsValidConnection();
|
||||||
bool IsValidConnectionNoClose();
|
bool IsValidConnectionNoClose();
|
||||||
|
|||||||
Reference in New Issue
Block a user