tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Database
Design
MySqlDesignTimeDbContextFactory.cs
Go to the documentation of this file.
1
using
Microsoft.EntityFrameworkCore.Design;
2
3
using
Tgstation.Server.Host.Configuration
;
4
5
namespace
Tgstation.Server.Host.Database.Design
6
{
10
sealed
class
MySqlDesignTimeDbContextFactory
:
IDesignTimeDbContextFactory
<MySqlDatabaseContext>
11
{
13
public
MySqlDatabaseContext
CreateDbContext
(
string
[] args)
14
=>
new
MySqlDatabaseContext
(
15
DesignTimeDbContextFactoryHelpers
.CreateDatabaseContextOptions<
MySqlDatabaseContext
>(
16
DatabaseType
.MariaDB,
17
"Server=127.0.0.1;User Id=root;Password=zdxfOOTlQFnklwzytzCj;Database=TGS_Design"
));
18
}
19
}
IDesignTimeDbContextFactory
Tgstation.Server.Host.Database.Design.DesignTimeDbContextFactoryHelpers
Contains helpers for creating design time DatabaseContexts.
Definition
DesignTimeDbContextFactoryHelpers.cs:12
Tgstation.Server.Host.Database.Design.MySqlDesignTimeDbContextFactory
IDesignTimeDbContextFactory<TContext> for creating MySqlDatabaseContexts.
Definition
MySqlDesignTimeDbContextFactory.cs:11
Tgstation.Server.Host.Database.Design.MySqlDesignTimeDbContextFactory.CreateDbContext
MySqlDatabaseContext CreateDbContext(string[] args)
Tgstation.Server.Host.Database.MySqlDatabaseContext
DatabaseContext for MySQL.
Definition
MySqlDatabaseContext.cs:17
Tgstation.Server.Host.Configuration
Definition
ControlPanelConfiguration.cs:4
Tgstation.Server.Host.Configuration.DatabaseType
DatabaseType
Type of database to user.
Definition
DatabaseType.cs:7
Tgstation.Server.Host.Database.Design
Definition
DesignTimeDbContextFactoryHelpers.cs:7
Generated by
1.9.8