This website works better with JavaScript.
Home
Explore
Help
Sign In
ayan.poddar
/
eShopOnContainers
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
19
Wiki
Activity
Browse Source
Setting ServiceLifetime.Scoped to OrderingContext so it is explicit instead of implicit (by default).
pull/49/merge
CESARDL
8 years ago
parent
8c6ee1003c
commit
bf5af56d32
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
src/Services/Ordering/Ordering.API/Startup.cs
+ 4
- 1
src/Services/Ordering/Ordering.API/Startup.cs
View File
@ -52,7 +52,10 @@
{
options
.
UseSqlServer
(
Configuration
[
"ConnectionString"
]
,
sqlop
=
>
sqlop
.
MigrationsAssembly
(
typeof
(
Startup
)
.
GetTypeInfo
(
)
.
Assembly
.
GetName
(
)
.
Name
)
)
;
}
)
;
}
,
ServiceLifetime
.
Scoped
)
;
services
.
AddSwaggerGen
(
)
;
services
.
ConfigureSwaggerGen
(
options
=
>
Write
Preview
Loading…
Cancel
Save