db + migrations
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System.Reflection;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Microsoft.OpenApi.Models;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using TURN.Services.Chess.DBModel;
|
||||
|
||||
namespace TURN.Services.Chess
|
||||
{
|
||||
@@ -16,8 +18,8 @@ namespace TURN.Services.Chess
|
||||
{
|
||||
jsonOptions.SerializerSettings.Converters.Add(new StringEnumConverter());
|
||||
});
|
||||
//_ = services.AddDbContext<ModelBaseContext>(
|
||||
// options => options.UseSqlServer(Environment.GetEnvironmentVariable("DB")));
|
||||
_ = services.AddDbContext<ModelBaseContext>(
|
||||
options => options.UseNpgsql(Environment.GetEnvironmentVariable("DB")));
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app)
|
||||
|
||||
Reference in New Issue
Block a user