数据库管理组件增加查看数据库是否能连接的属性
This commit is contained in:
parent
821afa2aa8
commit
449548e515
|
@ -23,5 +23,9 @@ namespace Falcon.SugarApi.DatabaseManager
|
|||
this.Logger = service.GetService(typeof(ILogger<>).MakeGenericType(GetType())) as ILogger ?? throw new NullReferenceException("ILogger");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否能连接到数据库
|
||||
/// </summary>
|
||||
public bool CanConnection => this.Ado.IsValidConnection();
|
||||
}
|
||||
}
|
||||
|
|
1
Falcon.SugarApi/DatabaseManager/Readme.md
Normal file
1
Falcon.SugarApi/DatabaseManager/Readme.md
Normal file
|
@ -0,0 +1 @@
|
|||
## 数据库管理组件
|
Loading…
Reference in New Issue
Block a user