Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BookingService
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WAO56_Travel_Booking
BookingService
Commits
d5f078fb
Commit
d5f078fb
authored
9 months ago
by
Nivethan1999
Browse files
Options
Downloads
Patches
Plain Diff
tetststst
parent
f633b81f
No related branches found
Branches containing commit
Tags
V.1.1.4
Tags containing commit
No related merge requests found
Pipeline
#281773
passed
9 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BookingCatalog/Program.cs
+5
-5
5 additions, 5 deletions
BookingCatalog/Program.cs
BookingCatalog/appsettings.json
+1
-1
1 addition, 1 deletion
BookingCatalog/appsettings.json
with
6 additions
and
6 deletions
BookingCatalog/Program.cs
+
5
−
5
View file @
d5f078fb
...
@@ -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
())
{
{
...
...
This diff is collapsed.
Click to expand it.
BookingCatalog/appsettings.json
+
1
−
1
View file @
d5f078fb
...
@@ -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"
:
"*"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment