mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Update gitignore and dispose DbConnected context
This commit is contained in:
parent
07769e0349
commit
bd9a789fc3
2 changed files with 3 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,6 +28,7 @@ png/
|
||||||
lighthouse.config.json
|
lighthouse.config.json
|
||||||
lighthouse.yml
|
lighthouse.yml
|
||||||
lighthouse.yml.configme
|
lighthouse.yml.configme
|
||||||
|
censor.yml
|
||||||
gitBranch.txt
|
gitBranch.txt
|
||||||
gitVersion.txt
|
gitVersion.txt
|
||||||
gitRemotes.txt
|
gitRemotes.txt
|
||||||
|
|
|
@ -14,7 +14,8 @@ public static class ServerStatics
|
||||||
get {
|
get {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return new Database().Database.CanConnect();
|
using Database db = new();
|
||||||
|
return db.Database.CanConnect();
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue