コード例 #1
0
 public void ConfigureContainer(IPluginServiceConfigurationContext context)
 {
     context.ContainerBuilder.AddEntityFrameworkCoreMySql();
     context.ContainerBuilder.AddDbContext <UserDatabaseDbContext>();
 }
コード例 #2
0
 public void ConfigureContainer(IPluginServiceConfigurationContext context)
 {
     context.ContainerBuilder.AddEntityFrameworkCoreMySql();
     context.ContainerBuilder.AddDbContext <GlobalBanDbContext>();
     context.ContainerBuilder.AddDbContext <PlayerInfoLibDbContext>();
 }
コード例 #3
0
 public void ConfigureContainer(IPluginServiceConfigurationContext context)
 {
     context.ContainerBuilder.AddMySqlDbContext <PlayerInfoLibDbContext>(ServiceLifetime.Transient);
 }
コード例 #4
0
 public void ConfigureContainer(IPluginServiceConfigurationContext context)
 {
     context.ContainerBuilder.AddMySqlDbContext <KitsDbContext>();
 }