diff --git a/BuecherwurmAPI.csproj b/BuecherwurmAPI.csproj index 00d099f..b932e06 100644 --- a/BuecherwurmAPI.csproj +++ b/BuecherwurmAPI.csproj @@ -6,6 +6,7 @@ + diff --git a/Startup.cs b/Startup.cs index 1bdfe77..ba2c6fb 100644 --- a/Startup.cs +++ b/Startup.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using BuecherwurmAPI.Data; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; @@ -10,6 +11,7 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; +using AutoMapper; namespace BuecherwurmAPI { @@ -26,6 +28,8 @@ namespace BuecherwurmAPI public void ConfigureServices(IServiceCollection services) { services.AddControllers(); + + services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies()); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. diff --git a/bin/Debug/netcoreapp3.1/AutoMapper.Extensions.Microsoft.DependencyInjection.dll b/bin/Debug/netcoreapp3.1/AutoMapper.Extensions.Microsoft.DependencyInjection.dll new file mode 100644 index 0000000..a9c023b Binary files /dev/null and b/bin/Debug/netcoreapp3.1/AutoMapper.Extensions.Microsoft.DependencyInjection.dll differ diff --git a/bin/Debug/netcoreapp3.1/AutoMapper.dll b/bin/Debug/netcoreapp3.1/AutoMapper.dll new file mode 100644 index 0000000..e0d84fc Binary files /dev/null and b/bin/Debug/netcoreapp3.1/AutoMapper.dll differ diff --git a/bin/Debug/netcoreapp3.1/BuecherwurmAPI.deps.json b/bin/Debug/netcoreapp3.1/BuecherwurmAPI.deps.json index 7d1141f..d3713ab 100644 --- a/bin/Debug/netcoreapp3.1/BuecherwurmAPI.deps.json +++ b/bin/Debug/netcoreapp3.1/BuecherwurmAPI.deps.json @@ -24,6 +24,7 @@ ".NETCoreApp,Version=v3.1": { "BuecherwurmAPI/1.0.0": { "dependencies": { + "AutoMapper.Extensions.Microsoft.DependencyInjection": "7.0.0", "Microsoft.EntityFrameworkCore.SqlServer": "3.1.4", "Microsoft.AspNetCore.Antiforgery": "3.1.0.0", "Microsoft.AspNetCore.Authentication.Abstractions": "3.1.0.0", @@ -293,6 +294,36 @@ "BuecherwurmAPI.dll": {} } }, + "AutoMapper/9.0.0": { + "dependencies": { + "Microsoft.CSharp": "4.5.0", + "System.Reflection.Emit": "4.3.0" + }, + "runtime": { + "lib/netstandard2.0/AutoMapper.dll": { + "assemblyVersion": "9.0.0.0", + "fileVersion": "9.0.0.0" + } + }, + "compile": { + "lib/netstandard2.0/AutoMapper.dll": {} + } + }, + "AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": { + "dependencies": { + "AutoMapper": "9.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.4" + }, + "runtime": { + "lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": { + "assemblyVersion": "0.0.0.0", + "fileVersion": "7.0.0.0" + } + }, + "compile": { + "lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {} + } + }, "Microsoft.Bcl.AsyncInterfaces/1.1.1": { "runtime": { "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll": { @@ -2753,6 +2784,20 @@ "serviceable": false, "sha512": "" }, + "AutoMapper/9.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-xCqvoxT4HIrNY/xlXG9W+BA/awdrhWvMTKTK/igkGSRbhOhpl3Q8O8Gxlhzjc9JsYqE7sS6AxgyuUUvZ6R5/Bw==", + "path": "automapper/9.0.0", + "hashPath": "automapper.9.0.0.nupkg.sha512" + }, + "AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-szI4yeRIM7GWe9JyekW0dKYehPB0t6M+I55fPeCebN6PhS7zQZa0eG3bgOnOx+eP3caSNoE7KEJs2rk7MLsh8w==", + "path": "automapper.extensions.microsoft.dependencyinjection/7.0.0", + "hashPath": "automapper.extensions.microsoft.dependencyinjection.7.0.0.nupkg.sha512" + }, "Microsoft.Bcl.AsyncInterfaces/1.1.1": { "type": "package", "serviceable": true, diff --git a/bin/Debug/netcoreapp3.1/BuecherwurmAPI.dll b/bin/Debug/netcoreapp3.1/BuecherwurmAPI.dll index a66b026..bb465b7 100644 Binary files a/bin/Debug/netcoreapp3.1/BuecherwurmAPI.dll and b/bin/Debug/netcoreapp3.1/BuecherwurmAPI.dll differ diff --git a/bin/Debug/netcoreapp3.1/BuecherwurmAPI.pdb b/bin/Debug/netcoreapp3.1/BuecherwurmAPI.pdb index a3c22e4..c533a56 100644 Binary files a/bin/Debug/netcoreapp3.1/BuecherwurmAPI.pdb and b/bin/Debug/netcoreapp3.1/BuecherwurmAPI.pdb differ diff --git a/obj/BuecherwurmAPI.csproj.nuget.dgspec.json b/obj/BuecherwurmAPI.csproj.nuget.dgspec.json index ed27b28..5d21e43 100644 --- a/obj/BuecherwurmAPI.csproj.nuget.dgspec.json +++ b/obj/BuecherwurmAPI.csproj.nuget.dgspec.json @@ -43,6 +43,10 @@ "frameworks": { "netcoreapp3.1": { "dependencies": { + "AutoMapper.Extensions.Microsoft.DependencyInjection": { + "target": "Package", + "version": "[7.0.0, )" + }, "Microsoft.EntityFrameworkCore.SqlServer": { "target": "Package", "version": "[3.1.4, )" diff --git a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.assets.cache b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.assets.cache index 9afbf89..9620d21 100644 Binary files a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.assets.cache and b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.assets.cache differ diff --git a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.CoreCompileInputs.cache b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.CoreCompileInputs.cache index 57a845d..5076334 100644 --- a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.CoreCompileInputs.cache +++ b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -4d290d0ca17fbd21953f82fd21ecd2e0e16f437d +76f0f952fb5a762f5d130f45426b5cd8a13ece15 diff --git a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.FileListAbsolute.txt b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.FileListAbsolute.txt index fdaa7f0..01ae57a 100644 --- a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.FileListAbsolute.txt +++ b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csproj.FileListAbsolute.txt @@ -51,3 +51,5 @@ H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\stati H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\BuecherwurmAPI.dll H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\BuecherwurmAPI.pdb H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\BuecherwurmAPI.genruntimeconfig.cache +H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\bin\Debug\netcoreapp3.1\AutoMapper.dll +H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\bin\Debug\netcoreapp3.1\AutoMapper.Extensions.Microsoft.DependencyInjection.dll diff --git a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csprojAssemblyReference.cache b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csprojAssemblyReference.cache index 79c2354..ca961ba 100644 Binary files a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csprojAssemblyReference.cache and b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.csprojAssemblyReference.cache differ diff --git a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.dll b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.dll index a66b026..bb465b7 100644 Binary files a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.dll and b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.dll differ diff --git a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.pdb b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.pdb index a3c22e4..c533a56 100644 Binary files a/obj/Debug/netcoreapp3.1/BuecherwurmAPI.pdb and b/obj/Debug/netcoreapp3.1/BuecherwurmAPI.pdb differ diff --git a/obj/project.assets.json b/obj/project.assets.json index abcd44f..2bf84a8 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -2,6 +2,32 @@ "version": 3, "targets": { ".NETCoreApp,Version=v3.1": { + "AutoMapper/9.0.0": { + "type": "package", + "dependencies": { + "Microsoft.CSharp": "4.5.0", + "System.Reflection.Emit": "4.3.0" + }, + "compile": { + "lib/netstandard2.0/AutoMapper.dll": {} + }, + "runtime": { + "lib/netstandard2.0/AutoMapper.dll": {} + } + }, + "AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": { + "type": "package", + "dependencies": { + "AutoMapper": "9.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0" + }, + "compile": { + "lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {} + }, + "runtime": { + "lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {} + } + }, "Microsoft.Bcl.AsyncInterfaces/1.1.1": { "type": "package", "compile": { @@ -596,7 +622,7 @@ "System.Threading.Tasks": "4.3.0" }, "compile": { - "ref/netstandard1.5/_._": {} + "ref/netstandard1.5/System.IO.dll": {} } }, "System.IO.FileSystem/4.3.0": { @@ -733,7 +759,7 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.5/_._": {} + "ref/netstandard1.5/System.Reflection.dll": {} } }, "System.Reflection.Emit/4.3.0": { @@ -746,7 +772,7 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.1/_._": {} + "ref/netstandard1.1/System.Reflection.Emit.dll": {} }, "runtime": { "lib/netstandard1.3/System.Reflection.Emit.dll": {} @@ -760,7 +786,7 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.0/_._": {} + "ref/netstandard1.0/System.Reflection.Emit.ILGeneration.dll": {} }, "runtime": { "lib/netstandard1.3/System.Reflection.Emit.ILGeneration.dll": {} @@ -801,7 +827,7 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.0/_._": {} + "ref/netstandard1.0/System.Reflection.Primitives.dll": {} } }, "System.Reflection.TypeExtensions/4.3.0": { @@ -837,7 +863,7 @@ "Microsoft.NETCore.Targets": "1.1.0" }, "compile": { - "ref/netstandard1.5/_._": {} + "ref/netstandard1.5/System.Runtime.dll": {} } }, "System.Runtime.Caching/4.5.0": { @@ -1071,7 +1097,7 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.3/_._": {} + "ref/netstandard1.3/System.Text.Encoding.dll": {} } }, "System.Text.Encoding.CodePages/4.5.0": { @@ -1138,7 +1164,7 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.3/_._": {} + "ref/netstandard1.3/System.Threading.Tasks.dll": {} } }, "System.Threading.Tasks.Extensions/4.3.0": { @@ -1256,6 +1282,36 @@ } }, "libraries": { + "AutoMapper/9.0.0": { + "sha512": "xCqvoxT4HIrNY/xlXG9W+BA/awdrhWvMTKTK/igkGSRbhOhpl3Q8O8Gxlhzjc9JsYqE7sS6AxgyuUUvZ6R5/Bw==", + "type": "package", + "path": "automapper/9.0.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "automapper.9.0.0.nupkg.sha512", + "automapper.nuspec", + "lib/net461/AutoMapper.dll", + "lib/net461/AutoMapper.pdb", + "lib/net461/AutoMapper.xml", + "lib/netstandard2.0/AutoMapper.dll", + "lib/netstandard2.0/AutoMapper.pdb", + "lib/netstandard2.0/AutoMapper.xml" + ] + }, + "AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": { + "sha512": "szI4yeRIM7GWe9JyekW0dKYehPB0t6M+I55fPeCebN6PhS7zQZa0eG3bgOnOx+eP3caSNoE7KEJs2rk7MLsh8w==", + "type": "package", + "path": "automapper.extensions.microsoft.dependencyinjection/7.0.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "automapper.extensions.microsoft.dependencyinjection.7.0.0.nupkg.sha512", + "automapper.extensions.microsoft.dependencyinjection.nuspec", + "lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll", + "lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.pdb" + ] + }, "Microsoft.Bcl.AsyncInterfaces/1.1.1": { "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", "type": "package", @@ -4880,6 +4936,7 @@ }, "projectFileDependencyGroups": { ".NETCoreApp,Version=v3.1": [ + "AutoMapper.Extensions.Microsoft.DependencyInjection >= 7.0.0", "Microsoft.EntityFrameworkCore.SqlServer >= 3.1.4" ] }, @@ -4927,6 +4984,10 @@ "frameworks": { "netcoreapp3.1": { "dependencies": { + "AutoMapper.Extensions.Microsoft.DependencyInjection": { + "target": "Package", + "version": "[7.0.0, )" + }, "Microsoft.EntityFrameworkCore.SqlServer": { "target": "Package", "version": "[3.1.4, )" diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache index 2b99ecb..a072699 100644 --- a/obj/project.nuget.cache +++ b/obj/project.nuget.cache @@ -1,9 +1,11 @@ { "version": 2, - "dgSpecHash": "0Hc6ftAuBi17RXVX7ZCzhfrIVPnCeLZL+gos89KUdY02RWU6H8xQxXe7IFtY+gXiaNtDfsTOeT9vDEUrzI2ewA==", + "dgSpecHash": "eY1VgpjSasHq3sEyVccFbGAhfJ9DyWXhEbCeNyhmUNb8I9xyjZXy2n6zivYLZ1W6WN/1lnjZS9w1uQAiFuZDLQ==", "success": true, "projectFilePath": "H:\\Eigene Dateien\\Ausbildungsmodule\\BuecherwurmAPI\\BuecherwurmAPI.csproj", "expectedPackageFiles": [ + "C:\\Users\\naumanfe\\.nuget\\packages\\automapper\\9.0.0\\automapper.9.0.0.nupkg.sha512", + "C:\\Users\\naumanfe\\.nuget\\packages\\automapper.extensions.microsoft.dependencyinjection\\7.0.0\\automapper.extensions.microsoft.dependencyinjection.7.0.0.nupkg.sha512", "C:\\Users\\naumanfe\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\1.1.1\\microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", "C:\\Users\\naumanfe\\.nuget\\packages\\microsoft.bcl.hashcode\\1.1.0\\microsoft.bcl.hashcode.1.1.0.nupkg.sha512", "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512",