Skip to content
Snippets Groups Projects
Commit d5f078fb authored by Nivethan1999's avatar Nivethan1999
Browse files

tetststst

parent f633b81f
No related branches found
Tags V.1.1.4
No related merge requests found
Pipeline #281773 passed
...@@ -23,11 +23,11 @@ builder.Services.AddControllers(); ...@@ -23,11 +23,11 @@ builder.Services.AddControllers();
builder.Services.AddDbContext<BookingCatalogDbContext>(options => builder.Services.AddDbContext<BookingCatalogDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection"))); options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));
var app = builder.Build(); var app = builder.Build();
// using (var scope = app.Services.CreateScope()) using (var scope = app.Services.CreateScope())
// { {
// var db = scope.ServiceProvider.GetRequiredService<BookingCatalogDbContext>(); var db = scope.ServiceProvider.GetRequiredService<BookingCatalogDbContext>();
// db.Database.Migrate(); db.Database.Migrate();
// } }
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
} }
}, },
"ConnectionStrings": { "ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=master;User=sa;Password=suchSecureVeryWordSoPassW0w;TrustServerCertificate=True" "DefaultConnection": "Server=booking-sql-service,1433;Database=master;User=sa;Password=suchSecureVeryWordSoPassW0w;TrustServerCertificate=True"
}, },
"AllowedHosts": "*" "AllowedHosts": "*"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment