mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 13:09:33 +08:00
Synchronization code
This commit is contained in:
parent
d24f9be8a0
commit
001471dc57
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user