mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +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.yml
|
||||
lighthouse.yml.configme
|
||||
censor.yml
|
||||
gitBranch.txt
|
||||
gitVersion.txt
|
||||
gitRemotes.txt
|
||||
|
|
|
@ -14,7 +14,8 @@ public static class ServerStatics
|
|||
get {
|
||||
try
|
||||
{
|
||||
return new Database().Database.CanConnect();
|
||||
using Database db = new();
|
||||
return db.Database.CanConnect();
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue