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

test

parent 95e52661
No related branches found
Tags V.1.1.8
No related merge requests found
Pipeline #279040 passed
...@@ -2,12 +2,16 @@ using Microsoft.EntityFrameworkCore; ...@@ -2,12 +2,16 @@ using Microsoft.EntityFrameworkCore;
using BookingCatalog.Data; using BookingCatalog.Data;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection"); // var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
Console.WriteLine($"Connection string: {connectionString}"); // Console.WriteLine($"Connection string: {connectionString}");
// Add services to the container. // Add services to the container.
builder.Services.AddDbContext<BookingCatalogDbContext>( // builder.Services.AddDbContext<BookingCatalogDbContext>(
options => options.UseSqlServer(connectionString) // options => options.UseSqlServer(connectionString)
); // );
builder.Services.AddDbContext<BookingCatalogDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(); builder.Services.AddSwaggerGen();
......
...@@ -69,7 +69,7 @@ spec: ...@@ -69,7 +69,7 @@ spec:
spec: spec:
containers: containers:
- name: bookingapi - name: bookingapi
image: registry.gitlab.au.dk/wao56_travel_booking/bookingservice:V.1.0.8 image: registry.gitlab.au.dk/wao56_travel_booking/bookingservice:V.1.0.9
ports: ports:
- containerPort: 5173 - containerPort: 5173
env: env:
......
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