Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
valdisiljuconoks committed Apr 26, 2020
1 parent 4b2df8f commit 5232b75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions tests/DbLocalizationProvider.Core.AspNetSample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
// template: "{controller=Home}/{action=Index}/{id?}");
// });

using (var scope = app.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope())
{
scope.ServiceProvider.GetService<ApplicationDbContext>().Database.Migrate();
}

app.UseEndpoints(endpoints =>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=.;Database=loc-admin-ui;Trusted_Connection=False;MultipleActiveResultSets=true;User ID=sample-user;Password=P@ssword$$"
"DefaultConnection": "Server=.;Database=loc-admin-ui;Trusted_Connection=False;MultipleActiveResultSets=true;User ID=sample-user;Password=P@ssword123$"
},
"Logging": {
"IncludeScopes": false,
Expand Down
4 changes: 2 additions & 2 deletions tests/DbLocalizationProvider.Core.AspNetSample/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="C:\~loc\netcore\tests\DbLocalizationProvider.Core.AspNetSample\bin\Debug\netcoreapp3.1\DbLocalizationProvider.Core.AspNetSample.exe" arguments="" stdoutLogEnabled="false" hostingModel="InProcess">
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" hostingModel="InProcess">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
<environmentVariable name="ASPNETCORE_HTTPS_PORT" value="443" />
<environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44331" />
</environmentVariables>
</aspNetCore>
</system.webServer>
Expand Down

0 comments on commit 5232b75

Please sign in to comment.