mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-22 01:12:24 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
17 lines
377 B
C#
Executable file
17 lines
377 B
C#
Executable file
namespace FSO.Server.Database.DA
|
|
{
|
|
public class MySqlDAFactory : IDAFactory
|
|
{
|
|
private DatabaseConfiguration Config;
|
|
|
|
public MySqlDAFactory(DatabaseConfiguration config)
|
|
{
|
|
this.Config = config;
|
|
}
|
|
|
|
public IDA Get()
|
|
{
|
|
return new SqlDA(new MySqlContext(Config.ConnectionString));
|
|
}
|
|
}
|
|
}
|