mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-02 06:10:45 +00:00
testref
This commit is contained in:
19
Database.cs
19
Database.cs
@@ -11,18 +11,11 @@ namespace WeaponPaints
|
||||
_dbConnectionString = dbConnectionString;
|
||||
}
|
||||
|
||||
public async Task<MySqlConnection> GetConnectionAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
var connection = new MySqlConnection(_dbConnectionString);
|
||||
await connection.OpenAsync();
|
||||
return connection;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
public async Task<MySqlConnection> GetConnectionAsync()
|
||||
{
|
||||
var connection = new MySqlConnection(_dbConnectionString);
|
||||
await connection.OpenAsync();
|
||||
return connection;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user