frontend
This commit is contained in:
@ -19,16 +19,11 @@ namespace Yuna.Website.Server.Storage
|
||||
_configuration = null!;
|
||||
}
|
||||
|
||||
private IDbConnection? _dbConnection;
|
||||
public IDbConnection Connection
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
public IDbConnection Connection => new NpgsqlConnection(Settings.DbConnectionStr);
|
||||
|
||||
if (_dbConnection is null) _dbConnection = new NpgsqlConnection(Settings.DbConnectionStr);
|
||||
return _dbConnection;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user