Update IoC and the "GET" function in the repository (lock issue)

This commit is contained in:
Sébastien André
2019-11-10 20:03:03 +01:00
parent f3f9b91a15
commit 2e6ec6ec85
9 changed files with 40 additions and 34 deletions

View File

@@ -35,7 +35,7 @@ namespace skydiveLogs_api
});
// IoC
var iocService = new IocService(services);
var iocService = new IocService(services, Configuration);
iocService.Configure();
services.AddAutoMapper(typeof(Mapper.ModelProfile));

View File

@@ -6,6 +6,6 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"JumpsDatabase": "Filename=./Data/JumpsDb.db"
"DefaultConnection": "Filename=./Data/JumpsDb.db"
}
}

View File

@@ -8,11 +8,11 @@
</PropertyGroup>
<ItemGroup>
<None Remove="Data\MyData.db" />
<None Remove="Data\JumpsDb.db" />
</ItemGroup>
<ItemGroup>
<Content Include="Data\MyData.db">
<Content Include="Data\JumpsDb.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>