Przeglądaj źródła

Clean Refactoring

Alex Ondoa 2 lat temu
rodzic
commit
243fd3245f
100 zmienionych plików z 1379 dodań i 789 usunięć
  1. BIN
      CatalogueCQRS/.vs/CatalogueCQRS/DesignTimeBuild/.dtbcache.v2
  2. BIN
      CatalogueCQRS/.vs/CatalogueCQRS/v16/.suo
  3. 4
    11
      CatalogueCQRS/Backend.API/Backend.API.csproj
  4. 43
    0
      CatalogueCQRS/Backend.API/Config/DependencyInjectionHandler.cs
  5. 23
    0
      CatalogueCQRS/Backend.API/Config/DependencyInjectionRepository.cs
  6. 30
    0
      CatalogueCQRS/Backend.API/Config/DependencyInjectionService.cs
  7. 46
    0
      CatalogueCQRS/Backend.API/Config/SwaggerExtensions.cs
  8. 27
    26
      CatalogueCQRS/Backend.API/Controllers/CommandeController.cs
  9. 31
    30
      CatalogueCQRS/Backend.API/Controllers/LigneCommandeController.cs
  10. 29
    28
      CatalogueCQRS/Backend.API/Controllers/ProduitController.cs
  11. 30
    29
      CatalogueCQRS/Backend.API/Controllers/ProprieteController.cs
  12. 31
    31
      CatalogueCQRS/Backend.API/Controllers/TypeProprieteController.cs
  13. 9
    76
      CatalogueCQRS/Backend.API/Startup.cs
  14. 63
    126
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.deps.json
  15. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.dll
  16. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.pdb
  17. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.dll
  18. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.pdb
  19. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Common.dll
  20. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.dll
  21. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.pdb
  22. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Domain.dll
  23. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Domain.pdb
  24. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Infrastructure.dll
  25. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Infrastructure.pdb
  26. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Models.dll
  27. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Persistence.dll
  28. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Persistence.pdb
  29. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.dll
  30. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.pdb
  31. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Humanizer.dll
  32. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.dll
  33. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.pdb
  34. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Design.dll
  35. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll
  36. BIN
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll
  37. 85
    155
      CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.dgspec.json
  38. 0
    2
      CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.g.props
  39. 0
    0
      CatalogueCQRS/Backend.API/obj/Container/ContainerRunContext.cache
  40. BIN
      CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.assets.cache
  41. BIN
      CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.csproj.AssemblyReference.cache
  42. 1
    1
      CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.csproj.CoreCompileInputs.cache
  43. 8
    12
      CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.csproj.FileListAbsolute.txt
  44. BIN
      CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.dll
  45. BIN
      CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.pdb
  46. 79
    202
      CatalogueCQRS/Backend.API/obj/project.assets.json
  47. 3
    6
      CatalogueCQRS/Backend.API/obj/project.nuget.cache
  48. 0
    0
      CatalogueCQRS/Backend.Common/Backend.Domain.csproj
  49. 11
    11
      CatalogueCQRS/Backend.Common/Constants/ErrorsConstants.cs
  50. 1
    1
      CatalogueCQRS/Backend.Common/Entities/Commande.cs
  51. 1
    1
      CatalogueCQRS/Backend.Common/Entities/LigneCommande.cs
  52. 1
    1
      CatalogueCQRS/Backend.Common/Entities/Produit.cs
  53. 1
    1
      CatalogueCQRS/Backend.Common/Entities/Propriete.cs
  54. 1
    1
      CatalogueCQRS/Backend.Common/Entities/TypePropriete.cs
  55. BIN
      CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Common.dll
  56. BIN
      CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Common.pdb
  57. 23
    0
      CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Domain.deps.json
  58. BIN
      CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Domain.dll
  59. BIN
      CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Domain.pdb
  60. 63
    0
      CatalogueCQRS/Backend.Common/obj/Backend.Domain.csproj.nuget.dgspec.json
  61. 18
    0
      CatalogueCQRS/Backend.Common/obj/Backend.Domain.csproj.nuget.g.props
  62. 6
    0
      CatalogueCQRS/Backend.Common/obj/Backend.Domain.csproj.nuget.g.targets
  63. BIN
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.csproj.AssemblyReference.cache
  64. 9
    0
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.csproj.FileListAbsolute.txt
  65. BIN
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.dll
  66. BIN
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.pdb
  67. 23
    0
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.AssemblyInfo.cs
  68. 1
    0
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.AssemblyInfoInputs.cache
  69. 3
    0
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.GeneratedMSBuildEditorConfig.editorconfig
  70. BIN
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.assets.cache
  71. BIN
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.csproj.AssemblyReference.cache
  72. 1
    0
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.csproj.CoreCompileInputs.cache
  73. 9
    0
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.csproj.FileListAbsolute.txt
  74. BIN
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.dll
  75. BIN
      CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.pdb
  76. 3
    3
      CatalogueCQRS/Backend.Common/obj/project.assets.json
  77. 2
    2
      CatalogueCQRS/Backend.Common/obj/project.nuget.cache
  78. 12
    0
      CatalogueCQRS/Backend.Data/Backend.Infrastructure.csproj
  79. 0
    0
      CatalogueCQRS/Backend.Data/Backend.Infrastructure.csproj.user
  80. 4
    7
      CatalogueCQRS/Backend.Data/Repositories/CommandeRepository.cs
  81. 4
    3
      CatalogueCQRS/Backend.Data/Repositories/GenericRepository.cs
  82. 4
    2
      CatalogueCQRS/Backend.Data/Repositories/LigneCommandeRepository.cs
  83. 5
    7
      CatalogueCQRS/Backend.Data/Repositories/ProduitRepository.cs
  84. 5
    7
      CatalogueCQRS/Backend.Data/Repositories/ProprieteRepository.cs
  85. 3
    7
      CatalogueCQRS/Backend.Data/Repositories/TypeProprieteRepository.cs
  86. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.dll
  87. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.pdb
  88. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Data.dll
  89. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Data.pdb
  90. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Domain.dll
  91. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Domain.pdb
  92. 381
    0
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Infrastructure.deps.json
  93. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Infrastructure.dll
  94. BIN
      CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Infrastructure.pdb
  95. 97
    0
      CatalogueCQRS/Backend.Data/obj/Backend.ApplicationCore.csproj.nuget.dgspec.json
  96. 21
    0
      CatalogueCQRS/Backend.Data/obj/Backend.ApplicationCore.csproj.nuget.g.props
  97. 6
    0
      CatalogueCQRS/Backend.Data/obj/Backend.ApplicationCore.csproj.nuget.g.targets
  98. 97
    0
      CatalogueCQRS/Backend.Data/obj/Backend.Domain.csproj.nuget.dgspec.json
  99. 21
    0
      CatalogueCQRS/Backend.Data/obj/Backend.Domain.csproj.nuget.g.props
  100. 0
    0
      CatalogueCQRS/Backend.Data/obj/Backend.Domain.csproj.nuget.g.targets

BIN
CatalogueCQRS/.vs/CatalogueCQRS/DesignTimeBuild/.dtbcache.v2 Wyświetl plik


BIN
CatalogueCQRS/.vs/CatalogueCQRS/v16/.suo Wyświetl plik


+ 4
- 11
CatalogueCQRS/Backend.API/Backend.API.csproj Wyświetl plik

@@ -10,24 +10,17 @@
10 10
   </ItemGroup>
11 11
 
12 12
   <ItemGroup>
13
-    <PackageReference Include="AutoMapper" Version="10.1.1" />
14
-    <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
15
-    <PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
16
-    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.13" />
17
-    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.13">
18
-      <PrivateAssets>all</PrivateAssets>
19
-      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
20
-    </PackageReference>
21 13
     <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.11.1" />
22
-    <PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.0-alpha.2" />
23 14
     <PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="6.2.3" />
24 15
     <PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.2.3" />
25 16
     <PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.2.3" />
26 17
   </ItemGroup>
27 18
 
28 19
   <ItemGroup>
29
-    <ProjectReference Include="..\Backend.Common\Backend.Common.csproj" />
30
-    <ProjectReference Include="..\Mediator\Mediator.csproj" />
20
+    <ProjectReference Include="..\Backend.Common\Backend.Domain.csproj" />
21
+    <ProjectReference Include="..\Backend.Data\Backend.Infrastructure.csproj" />
22
+    <ProjectReference Include="..\Backend.EFCore\Backend.Persistence.csproj" />
23
+    <ProjectReference Include="..\Backend.Services\Backend.ApplicationCore.csproj" />
31 24
   </ItemGroup>
32 25
 
33 26
 

+ 43
- 0
CatalogueCQRS/Backend.API/Config/DependencyInjectionHandler.cs Wyświetl plik

@@ -0,0 +1,43 @@
1
+using Mediator;
2
+using MediatR;
3
+using Microsoft.AspNetCore.Builder;
4
+using Microsoft.Extensions.DependencyInjection;
5
+using System;
6
+using System.Collections.Generic;
7
+using System.IO;
8
+using System.Linq;
9
+using System.Reflection;
10
+using System.Threading.Tasks;
11
+
12
+namespace Backend.API.Config
13
+{
14
+    internal static class DependencyInjectionHandler
15
+    {
16
+        internal static IServiceCollection AddMediaRHandlerDependency(this IServiceCollection services)
17
+        {
18
+            services.AddMediatR(Assembly.GetExecutingAssembly());
19
+            services.AddMediatR(typeof(GetTypeProprieteListHandler).Assembly);
20
+            services.AddMediatR(typeof(AddTypeProprieteHandler).Assembly);
21
+            services.AddMediatR(typeof(RemoveTypeProprieteHandler).Assembly);
22
+
23
+            services.AddMediatR(typeof(GetProprieteListHandler).Assembly);
24
+            services.AddMediatR(typeof(AddProprieteHandler).Assembly);
25
+            services.AddMediatR(typeof(RemoveProprieteHandler).Assembly);
26
+
27
+            services.AddMediatR(typeof(GetProduitListHandler).Assembly);
28
+            services.AddMediatR(typeof(AddProduitHandler).Assembly);
29
+            services.AddMediatR(typeof(RemoveProduitHandler).Assembly);
30
+
31
+            services.AddMediatR(typeof(GetCommandeListHandler).Assembly);
32
+            services.AddMediatR(typeof(AddCommandeHandler).Assembly);
33
+            services.AddMediatR(typeof(RemoveCommandeHandler).Assembly);
34
+
35
+            services.AddMediatR(typeof(GetLigneCommandeListHandler).Assembly);
36
+            services.AddMediatR(typeof(AddLigneCommandeHandler).Assembly);
37
+            services.AddMediatR(typeof(RemoveLigneCommandeHandler).Assembly);
38
+
39
+            return services;
40
+        }
41
+
42
+    }
43
+}

+ 23
- 0
CatalogueCQRS/Backend.API/Config/DependencyInjectionRepository.cs Wyświetl plik

@@ -0,0 +1,23 @@
1
+using Backend.ApplicationCore.Interfaces.IRepositories;
2
+using Backend.Infrastructure.Repositories;
3
+using Backend.Persistence.Config;
4
+using Microsoft.Extensions.DependencyInjection;
5
+
6
+namespace Backend.API.Config
7
+{
8
+    internal static class DependencyInjectionRepository
9
+    {
10
+        internal static IServiceCollection AddDataDependencyInjectionRepository(this IServiceCollection services)
11
+        {
12
+            services.AddScoped<IApplicationDatabaseContext, ApplicationDatabaseContext>();
13
+            services.AddScoped<ICommandeRepository, CommandeRepository>();
14
+            services.AddScoped<ILigneCommandeRepository, LigneCommandeRepository>();
15
+            services.AddScoped<IProduitRepository, ProduitRepository>();
16
+            services.AddScoped<IProprieteRepository, ProprieteRepository>();
17
+            services.AddScoped<ITypeProprieteRepository, TypeProprieteRepository>();
18
+
19
+            return services;
20
+        }
21
+
22
+    }
23
+}

+ 30
- 0
CatalogueCQRS/Backend.API/Config/DependencyInjectionService.cs Wyświetl plik

@@ -0,0 +1,30 @@
1
+using Backend.ApplicationCore.Interfaces.IServices;
2
+using Backend.ApplicationCore.Services;
3
+using Microsoft.AspNetCore.Builder;
4
+using Microsoft.AspNetCore.Http;
5
+using Microsoft.Extensions.DependencyInjection;
6
+using System;
7
+using System.Collections.Generic;
8
+using System.IO;
9
+using System.Linq;
10
+using System.Reflection;
11
+using System.Threading.Tasks;
12
+
13
+namespace Backend.API.Config
14
+{
15
+    internal static class DependencyInjectionService
16
+    {
17
+        internal static IServiceCollection AddDependencyInjectionService(this IServiceCollection services)
18
+        {
19
+            services.AddScoped<ITypeProprieteService, TypeProprieteService>();
20
+            services.AddScoped<IProprieteService, ProprieteService>();
21
+            services.AddScoped<IProduitService, ProduitService>();
22
+            services.AddScoped<ICommandeService, CommandeService>();
23
+            services.AddScoped<ILigneCommandeService, LigneCommandeService>();
24
+            services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
25
+
26
+            return services;
27
+        }
28
+
29
+    }
30
+}

+ 46
- 0
CatalogueCQRS/Backend.API/Config/SwaggerExtensions.cs Wyświetl plik

@@ -0,0 +1,46 @@
1
+using Microsoft.AspNetCore.Builder;
2
+using Microsoft.Extensions.DependencyInjection;
3
+using System;
4
+using System.Collections.Generic;
5
+using System.IO;
6
+using System.Linq;
7
+using System.Reflection;
8
+using System.Threading.Tasks;
9
+
10
+namespace Backend.API.Config
11
+{
12
+    internal static class SwaggerExtensions
13
+    {
14
+        internal static IServiceCollection AddSwaggerDocumentation(this IServiceCollection services)
15
+        {
16
+            services.AddSwaggerGen(options =>
17
+            {
18
+                options.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo
19
+                {
20
+                    Title = "Sample CQRS Catalogue.Backend.API",
21
+                    Version = "v1",
22
+                    Description = "Sample .NET Core REST API CQRS implementation using Clean Architecture.",
23
+                });
24
+
25
+                var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
26
+                var commentsFileName = Assembly.GetExecutingAssembly().GetName().Name + ".XML";
27
+                var commentsFile = Path.Combine(baseDirectory, commentsFileName);
28
+               // options.IncludeXmlComments(commentsFile);
29
+            });
30
+
31
+            return services;
32
+        }
33
+
34
+        internal static IApplicationBuilder UseSwaggerDocumentation(this IApplicationBuilder app)
35
+        {
36
+            app.UseSwagger();
37
+
38
+            app.UseSwaggerUI(c =>
39
+            {
40
+                c.SwaggerEndpoint("/swagger/v1/swagger.json", "Sample CQRS API V1");
41
+            });
42
+
43
+            return app;
44
+        }
45
+    }
46
+}

+ 27
- 26
CatalogueCQRS/Backend.API/Controllers/CommandeController.cs Wyświetl plik

@@ -1,4 +1,5 @@
1
-using Backend.Common;
1
+
2
+using Backend.Domain;
2 3
 using Backend.Models;
3 4
 using Mediator;
4 5
 using MediatR;
@@ -17,9 +18,9 @@ namespace Backend.API.Controllers
17 18
     [Route("api/[controller]")]
18 19
     public class CommandeController : ControllerBase
19 20
     {
20
-        private const string getAllCommande = "getAll";
21
-        private const string postCreateOrUpdate = "createOrUpdate";
22
-        private const string deleteById = "deleteById/{id}";
21
+        private const string c_getAllCommande = "getAll"; 
22
+        private const string c_postCreateOrUpdate = "createOrUpdate";
23
+        private const string c_deleteById = "deleteById/{id}";
23 24
 
24 25
         private readonly ILogger<CommandeController> _log;
25 26
         private readonly IMediator _mediator;
@@ -34,16 +35,16 @@ namespace Backend.API.Controllers
34 35
         /// get all type propriete
35 36
         /// </summary>
36 37
         /// <returns></returns>
37
-        [HttpGet(getAllCommande)]
38
+        [HttpGet(c_getAllCommande)]
38 39
         [ProducesResponseType(StatusCodes.Status200OK)]
39 40
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
-        public async Task<IActionResult> GetAll()
41
+        public async Task<IActionResult> GetAllAsync()
41 42
         {
42 43
             _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43 44
             if (_mediator == null)
44 45
             {
45
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
46
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
47
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
47 48
             }
48 49
             try
49 50
             {
@@ -56,8 +57,8 @@ namespace Backend.API.Controllers
56 57
                 }
57 58
                 else
58 59
                 {
59
-                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
-                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
60
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
61
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
61 62
                 }
62 63
             }
63 64
             catch (Exception ex)
@@ -73,17 +74,17 @@ namespace Backend.API.Controllers
73 74
         /// </summary>
74 75
         /// <param name="cmd"></param>
75 76
         /// <returns></returns>
76
-        [HttpPost(postCreateOrUpdate)]
77
+        [HttpPost(c_postCreateOrUpdate)]
77 78
         [ProducesResponseType(StatusCodes.Status200OK)]
78 79
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
79 80
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
-        public async Task<IActionResult> CreateOrUpdate([FromBody] AddCommandeCommand cmd)
81
+        public async Task<IActionResult> CreateOrUpdateAsync([FromBody] AddCommandeCommand cmd)
81 82
         {
82 83
             _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83 84
             if (_mediator == null)
84 85
             {
85
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
86
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
87
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
87 88
             }
88 89
             if(cmd != null)
89 90
             {
@@ -97,8 +98,8 @@ namespace Backend.API.Controllers
97 98
                     }
98 99
                     else
99 100
                     {
100
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
101
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
102
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
102 103
                     }
103 104
                 }
104 105
                 catch (Exception ex)
@@ -109,8 +110,8 @@ namespace Backend.API.Controllers
109 110
             }
110 111
             else
111 112
             {
112
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
113
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
114
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
114 115
             }
115 116
            
116 117
         }
@@ -120,17 +121,17 @@ namespace Backend.API.Controllers
120 121
         /// </summary>
121 122
         /// <param name="id"></param>
122 123
         /// <returns></returns>
123
-        [HttpDelete(deleteById)]
124
+        [HttpDelete(c_deleteById)]
124 125
         [ProducesResponseType(StatusCodes.Status200OK)]
125 126
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
126 127
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
-        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        public async Task<IActionResult> DeleteByIdAsync([FromRoute] Guid id)
128 129
         {
129 130
             _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130 131
             if (_mediator == null)
131 132
             {
132
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
133
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
134
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
134 135
             }
135 136
             if (id != null)
136 137
             {
@@ -145,8 +146,8 @@ namespace Backend.API.Controllers
145 146
                     }
146 147
                     else
147 148
                     {
148
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
149
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
150
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
150 151
                     }
151 152
                 }
152 153
                 catch (Exception ex)
@@ -157,8 +158,8 @@ namespace Backend.API.Controllers
157 158
             }
158 159
             else
159 160
             {
160
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
161
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
162
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
162 163
             }
163 164
 
164 165
         }

+ 31
- 30
CatalogueCQRS/Backend.API/Controllers/LigneCommandeController.cs Wyświetl plik

@@ -1,4 +1,5 @@
1
-using Backend.Common;
1
+
2
+using Backend.Domain;
2 3
 using Backend.Models;
3 4
 using Mediator;
4 5
 using MediatR;
@@ -17,9 +18,9 @@ namespace Backend.API.Controllers
17 18
     [Route("api/[controller]")]
18 19
     public class LigneCommandeController : ControllerBase
19 20
     {
20
-        private const string getAllLigneCommande = "getAll";
21
-        private const string postCreateOrUpdate = "createOrUpdate";
22
-        private const string deleteById = "deleteById/{id}";
21
+        private const string c_getAllLigneCommande = "getAll";
22
+        private const string c_postCreateOrUpdate = "createOrUpdate";
23
+        private const string c_deleteById = "deleteById/{id}";
23 24
 
24 25
         private readonly ILogger<LigneCommandeController> _log;
25 26
         private readonly IMediator _mediator;
@@ -34,16 +35,16 @@ namespace Backend.API.Controllers
34 35
         /// get all type propriete
35 36
         /// </summary>
36 37
         /// <returns></returns>
37
-        [HttpGet(getAllLigneCommande)]
38
+        [HttpGet(c_getAllLigneCommande)]
38 39
         [ProducesResponseType(StatusCodes.Status200OK)]
39 40
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
-        public async Task<IActionResult> GetAll()
41
+        public async Task<IActionResult> GetAllAsync()
41 42
         {
42
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Ligne commande");
43 44
             if (_mediator == null)
44 45
             {
45
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
46
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
47
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
47 48
             }
48 49
             try
49 50
             {
@@ -56,8 +57,8 @@ namespace Backend.API.Controllers
56 57
                 }
57 58
                 else
58 59
                 {
59
-                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
-                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
60
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
61
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
61 62
                 }
62 63
             }
63 64
             catch (Exception ex)
@@ -69,21 +70,21 @@ namespace Backend.API.Controllers
69 70
         }
70 71
 
71 72
         /// <summary>
72
-        /// create or update type
73
+        /// create or update ligne commande id?
73 74
         /// </summary>
74 75
         /// <param name="cmd"></param>
75 76
         /// <returns></returns>
76
-        [HttpPost(postCreateOrUpdate)]
77
+        [HttpPost(c_postCreateOrUpdate)]
77 78
         [ProducesResponseType(StatusCodes.Status200OK)]
78 79
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
79 80
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
-        public async Task<IActionResult> CreateOrUpdate([FromBody] AddLigneCommandeCommand cmd)
81
+        public async Task<IActionResult> CreateOrUpdateAsync([FromBody] AddLigneCommandeCommand cmd)
81 82
         {
82
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Ligne commande");
83 84
             if (_mediator == null)
84 85
             {
85
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
86
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
87
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
87 88
             }
88 89
             if(cmd != null)
89 90
             {
@@ -97,8 +98,8 @@ namespace Backend.API.Controllers
97 98
                     }
98 99
                     else
99 100
                     {
100
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
101
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
102
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
102 103
                     }
103 104
                 }
104 105
                 catch (Exception ex)
@@ -109,8 +110,8 @@ namespace Backend.API.Controllers
109 110
             }
110 111
             else
111 112
             {
112
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
113
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
114
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
114 115
             }
115 116
            
116 117
         }
@@ -120,17 +121,17 @@ namespace Backend.API.Controllers
120 121
         /// </summary>
121 122
         /// <param name="id"></param>
122 123
         /// <returns></returns>
123
-        [HttpDelete(deleteById)]
124
+        [HttpDelete(c_deleteById)]
124 125
         [ProducesResponseType(StatusCodes.Status200OK)]
125 126
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
126 127
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
-        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        public async Task<IActionResult> DeleteByIdAsync([FromRoute] Guid id)
128 129
         {
129
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete ligne commande by: {id}");
130 131
             if (_mediator == null)
131 132
             {
132
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
133
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
134
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
134 135
             }
135 136
             if (id != null)
136 137
             {
@@ -145,8 +146,8 @@ namespace Backend.API.Controllers
145 146
                     }
146 147
                     else
147 148
                     {
148
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
149
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
150
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
150 151
                     }
151 152
                 }
152 153
                 catch (Exception ex)
@@ -157,8 +158,8 @@ namespace Backend.API.Controllers
157 158
             }
158 159
             else
159 160
             {
160
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
161
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
162
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
162 163
             }
163 164
 
164 165
         }

+ 29
- 28
CatalogueCQRS/Backend.API/Controllers/ProduitController.cs Wyświetl plik

@@ -1,4 +1,5 @@
1
-using Backend.Common;
1
+
2
+using Backend.Domain;
2 3
 using Backend.Models;
3 4
 using Mediator;
4 5
 using MediatR;
@@ -17,9 +18,9 @@ namespace Backend.API.Controllers
17 18
     [Route("api/[controller]")]
18 19
     public class ProduitController : ControllerBase
19 20
     {
20
-        private const string getAllProduit = "getAll";
21
-        private const string postCreateOrUpdate = "createOrUpdate";
22
-        private const string deleteById = "deleteById/{id}";
21
+        private const string c_getAllProduit = "getAll";
22
+        private const string c_postCreateOrUpdate = "createOrUpdate";
23
+        private const string c_deleteById = "deleteById/{id}";
23 24
 
24 25
         private readonly ILogger<ProduitController> _log;
25 26
         private readonly IMediator _mediator;
@@ -34,16 +35,16 @@ namespace Backend.API.Controllers
34 35
         /// get all type propriete
35 36
         /// </summary>
36 37
         /// <returns></returns>
37
-        [HttpGet(getAllProduit)]
38
+        [HttpGet(c_getAllProduit)]
38 39
         [ProducesResponseType(StatusCodes.Status200OK)]
39 40
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
-        public async Task<IActionResult> GetAll()
41
+        public async Task<IActionResult> GetAllAsync()
41 42
         {
42
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all produit");
43 44
             if (_mediator == null)
44 45
             {
45
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
46
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
47
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
47 48
             }
48 49
             try
49 50
             {
@@ -56,8 +57,8 @@ namespace Backend.API.Controllers
56 57
                 }
57 58
                 else
58 59
                 {
59
-                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
-                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
60
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
61
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
61 62
                 }
62 63
             }
63 64
             catch (Exception ex)
@@ -73,17 +74,17 @@ namespace Backend.API.Controllers
73 74
         /// </summary>
74 75
         /// <param name="cmd"></param>
75 76
         /// <returns></returns>
76
-        [HttpPost(postCreateOrUpdate)]
77
+        [HttpPost(c_postCreateOrUpdate)]
77 78
         [ProducesResponseType(StatusCodes.Status200OK)]
78 79
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
79 80
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
-        public async Task<IActionResult> CreateOrUpdate([FromBody] AddProduitCommand cmd)
81
+        public async Task<IActionResult> CreateOrUpdateAsync([FromBody] AddProduitCommand cmd)
81 82
         {
82
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Produit");
83 84
             if (_mediator == null)
84 85
             {
85
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
86
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
87
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
87 88
             }
88 89
             if(cmd != null)
89 90
             {
@@ -97,8 +98,8 @@ namespace Backend.API.Controllers
97 98
                     }
98 99
                     else
99 100
                     {
100
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
101
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
102
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
102 103
                     }
103 104
                 }
104 105
                 catch (Exception ex)
@@ -109,8 +110,8 @@ namespace Backend.API.Controllers
109 110
             }
110 111
             else
111 112
             {
112
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
113
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
114
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
114 115
             }
115 116
            
116 117
         }
@@ -120,17 +121,17 @@ namespace Backend.API.Controllers
120 121
         /// </summary>
121 122
         /// <param name="id"></param>
122 123
         /// <returns></returns>
123
-        [HttpDelete(deleteById)]
124
+        [HttpDelete(c_deleteById)]
124 125
         [ProducesResponseType(StatusCodes.Status200OK)]
125 126
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
126 127
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
-        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        public async Task<IActionResult> DeleteByIdAsync([FromRoute] Guid id)
128 129
         {
129 130
             _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130 131
             if (_mediator == null)
131 132
             {
132
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
133
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
134
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
134 135
             }
135 136
             if (id != null)
136 137
             {
@@ -145,8 +146,8 @@ namespace Backend.API.Controllers
145 146
                     }
146 147
                     else
147 148
                     {
148
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
149
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
150
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
150 151
                     }
151 152
                 }
152 153
                 catch (Exception ex)
@@ -157,8 +158,8 @@ namespace Backend.API.Controllers
157 158
             }
158 159
             else
159 160
             {
160
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
161
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
162
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
162 163
             }
163 164
 
164 165
         }

+ 30
- 29
CatalogueCQRS/Backend.API/Controllers/ProprieteController.cs Wyświetl plik

@@ -1,4 +1,5 @@
1
-using Backend.Common;
1
+
2
+using Backend.Domain;
2 3
 using Backend.Models;
3 4
 using Mediator;
4 5
 using MediatR;
@@ -17,9 +18,9 @@ namespace Backend.API.Controllers
17 18
     [Route("api/[controller]")]
18 19
     public class ProprieteController : ControllerBase
19 20
     {
20
-        private const string getAllPropriete = "getAll";
21
-        private const string postCreateOrUpdate = "createOrUpdate";
22
-        private const string deleteById = "deleteById/{id}";
21
+        private const string c_getAllPropriete = "getAll";
22
+        private const string c_postCreateOrUpdate = "createOrUpdate";
23
+        private const string c_deleteById = "deleteById/{id}";
23 24
 
24 25
         private readonly ILogger<ProprieteController> _log;
25 26
         private readonly IMediator _mediator;
@@ -34,16 +35,16 @@ namespace Backend.API.Controllers
34 35
         /// get all type propriete
35 36
         /// </summary>
36 37
         /// <returns></returns>
37
-        [HttpGet(getAllPropriete)]
38
+        [HttpGet(c_getAllPropriete)]
38 39
         [ProducesResponseType(StatusCodes.Status200OK)]
39 40
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
-        public async Task<IActionResult> GetAll()
41
+        public async Task<IActionResult> GetAllAsync()
41 42
         {
42
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Propriete");
43 44
             if (_mediator == null)
44 45
             {
45
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
46
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
47
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
47 48
             }
48 49
             try
49 50
             {
@@ -56,8 +57,8 @@ namespace Backend.API.Controllers
56 57
                 }
57 58
                 else
58 59
                 {
59
-                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
-                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
60
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
61
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
61 62
                 }
62 63
             }
63 64
             catch (Exception ex)
@@ -69,21 +70,21 @@ namespace Backend.API.Controllers
69 70
         }
70 71
 
71 72
         /// <summary>
72
-        /// create or update type
73
+        /// create or update propriete
73 74
         /// </summary>
74 75
         /// <param name="cmd"></param>
75 76
         /// <returns></returns>
76
-        [HttpPost(postCreateOrUpdate)]
77
+        [HttpPost(c_postCreateOrUpdate)]
77 78
         [ProducesResponseType(StatusCodes.Status200OK)]
78 79
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
79 80
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
-        public async Task<IActionResult> CreateOrUpdate([FromBody] AddProprieteCommand cmd)
81
+        public async Task<IActionResult> CreateOrUpdateAsync([FromBody] AddProprieteCommand cmd)
81 82
         {
82 83
             _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83 84
             if (_mediator == null)
84 85
             {
85
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
86
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
87
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
87 88
             }
88 89
             if(cmd != null)
89 90
             {
@@ -97,8 +98,8 @@ namespace Backend.API.Controllers
97 98
                     }
98 99
                     else
99 100
                     {
100
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
101
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
102
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
102 103
                     }
103 104
                 }
104 105
                 catch (Exception ex)
@@ -109,8 +110,8 @@ namespace Backend.API.Controllers
109 110
             }
110 111
             else
111 112
             {
112
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
113
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
114
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
114 115
             }
115 116
            
116 117
         }
@@ -120,17 +121,17 @@ namespace Backend.API.Controllers
120 121
         /// </summary>
121 122
         /// <param name="id"></param>
122 123
         /// <returns></returns>
123
-        [HttpDelete(deleteById)]
124
+        [HttpDelete(c_deleteById)]
124 125
         [ProducesResponseType(StatusCodes.Status200OK)]
125 126
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
126 127
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
-        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        public async Task<IActionResult> DeleteByIdAsync([FromRoute] Guid id)
128 129
         {
129
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete propriete by: {id}");
130 131
             if (_mediator == null)
131 132
             {
132
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
133
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
134
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
134 135
             }
135 136
             if (id != null)
136 137
             {
@@ -145,8 +146,8 @@ namespace Backend.API.Controllers
145 146
                     }
146 147
                     else
147 148
                     {
148
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
149
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
150
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
150 151
                     }
151 152
                 }
152 153
                 catch (Exception ex)
@@ -157,8 +158,8 @@ namespace Backend.API.Controllers
157 158
             }
158 159
             else
159 160
             {
160
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
161
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
162
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
162 163
             }
163 164
 
164 165
         }

+ 31
- 31
CatalogueCQRS/Backend.API/Controllers/TypeProprieteController.cs Wyświetl plik

@@ -1,4 +1,4 @@
1
-using Backend.Common;
1
+using Backend.Domain;
2 2
 using Backend.Models;
3 3
 using Mediator;
4 4
 using MediatR;
@@ -17,9 +17,9 @@ namespace Backend.API.Controllers
17 17
     [Route("api/[controller]")]
18 18
     public class TypeProprieteController : ControllerBase
19 19
     {
20
-        private const string getAllTypePropriete = "getAll";
21
-        private const string postCreateOrUpdate = "createOrUpdate";
22
-        private const string deleteById = "deleteById/{id}";
20
+        private const string c_getAllTypePropriete = "getAll";
21
+        private const string c_postCreateOrUpdate = "createOrUpdate";
22
+        private const string c_deleteById = "deleteById/{id}"; 
23 23
 
24 24
         private readonly ILogger<TypeProprieteController> _log;
25 25
         private readonly IMediator _mediator;
@@ -34,16 +34,16 @@ namespace Backend.API.Controllers
34 34
         /// get all type propriete
35 35
         /// </summary>
36 36
         /// <returns></returns>
37
-        [HttpGet(getAllTypePropriete)]
37
+        [HttpGet(c_getAllTypePropriete)]
38 38
         [ProducesResponseType(StatusCodes.Status200OK)]
39 39
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
-        public async Task<IActionResult> GetAll()
40
+        public async Task<IActionResult> GetAllAsync()
41 41
         {
42
-            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
42
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all TypePropriete");
43 43
             if (_mediator == null)
44 44
             {
45
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
45
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
46
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
47 47
             }
48 48
             try
49 49
             {
@@ -56,8 +56,8 @@ namespace Backend.API.Controllers
56 56
                 }
57 57
                 else
58 58
                 {
59
-                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
-                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
59
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
60
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
61 61
                 }
62 62
             }
63 63
             catch (Exception ex)
@@ -69,23 +69,23 @@ namespace Backend.API.Controllers
69 69
         }
70 70
 
71 71
         /// <summary>
72
-        /// create or update type
72
+        /// create or update typePropriete
73 73
         /// </summary>
74 74
         /// <param name="cmd"></param>
75 75
         /// <returns></returns>
76
-        [HttpPost(postCreateOrUpdate)]
76
+        [HttpPost(c_postCreateOrUpdate)] 
77 77
         [ProducesResponseType(StatusCodes.Status200OK)]
78 78
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
79 79
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
-        public async Task<IActionResult> CreateOrUpdate([FromBody] AddTypeProprieteCommand cmd)
80
+        public async Task<IActionResult> CreateOrUpdateAsync([FromBody] AddTypeProprieteCommand cmd)
81 81
         {
82 82
             _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83 83
             if (_mediator == null)
84 84
             {
85
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
85
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
86
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
87 87
             }
88
-            if(cmd != null)
88
+            if (cmd != null)
89 89
             {
90 90
                 try
91 91
                 {
@@ -97,8 +97,8 @@ namespace Backend.API.Controllers
97 97
                     }
98 98
                     else
99 99
                     {
100
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
100
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
101
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
102 102
                     }
103 103
                 }
104 104
                 catch (Exception ex)
@@ -109,10 +109,10 @@ namespace Backend.API.Controllers
109 109
             }
110 110
             else
111 111
             {
112
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
112
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
113
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
114 114
             }
115
-           
115
+
116 116
         }
117 117
 
118 118
         /// <summary>
@@ -120,17 +120,17 @@ namespace Backend.API.Controllers
120 120
         /// </summary>
121 121
         /// <param name="id"></param>
122 122
         /// <returns></returns>
123
-        [HttpDelete(deleteById)]
123
+        [HttpDelete(c_deleteById)]
124 124
         [ProducesResponseType(StatusCodes.Status200OK)]
125 125
         [ProducesResponseType(StatusCodes.Status400BadRequest)]
126 126
         [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
-        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
127
+        public async Task<IActionResult> DeleteByIdAsync([FromRoute] Guid id)
128 128
         {
129 129
             _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130 130
             if (_mediator == null)
131 131
             {
132
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
-                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
132
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
133
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
134 134
             }
135 135
             if (id != null)
136 136
             {
@@ -145,8 +145,8 @@ namespace Backend.API.Controllers
145 145
                     }
146 146
                     else
147 147
                     {
148
-                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
-                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
148
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_5XX}");
149
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.S_HTTP_ERROR_5XX);
150 150
                     }
151 151
                 }
152 152
                 catch (Exception ex)
@@ -157,10 +157,10 @@ namespace Backend.API.Controllers
157 157
             }
158 158
             else
159 159
             {
160
-                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
-                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
160
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.S_HTTP_ERROR_4XX}");
161
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.S_HTTP_ERROR_4XX);
162 162
             }
163 163
 
164 164
         }
165 165
     }
166
-}
166
+}

+ 9
- 76
CatalogueCQRS/Backend.API/Startup.cs Wyświetl plik

@@ -1,25 +1,12 @@
1
-using Backend.Data;
2
-using Backend.Data.Config;
3
-using Backend.Data.Interfaces;
4
-using Backend.Data.Repositories;
5
-using Backend.Services;
6
-using Backend.Services.Interface;
7
-using Backend.Services.Mapper;
8
-using Mediator;
9
-using MediatR;
1
+using Backend.API.Config;
2
+using Backend.ApplicationCore.Mapper;
3
+using Backend.Persistence.Config;
10 4
 using Microsoft.AspNetCore.Builder;
11 5
 using Microsoft.AspNetCore.Hosting;
12
-using Microsoft.AspNetCore.Http;
13
-using Microsoft.AspNetCore.Mvc;
14 6
 using Microsoft.Extensions.Configuration;
15 7
 using Microsoft.Extensions.DependencyInjection;
16
-using Microsoft.Extensions.DependencyInjection.Extensions;
17 8
 using Microsoft.Extensions.Hosting;
18
-using Microsoft.Extensions.Logging;
19
-using Microsoft.OpenApi.Models;
20 9
 using System;
21
-using System.Reflection;
22
-using System.Threading.Tasks;
23 10
 
24 11
 namespace Backend.API
25 12
 {
@@ -38,67 +25,16 @@ namespace Backend.API
38 25
         {
39 26
             services.AddControllers();
40 27
             services.AddOptions();
41
-
42
-            AddDataDependencyInjectionService(services);
43
-
44
-            AddDataDependencyInjectionRepository(services);
45
-
28
+            services.AddDependencyInjectionService();
29
+            services.AddDataDependencyInjectionRepository();
30
+            services.AddMediaRHandlerDependency();
31
+            services.AddAutoMapperConfig();
32
+            services.AddSwaggerDocumentation();
46 33
             AddDatabase(services);
47
-
48
-            AddMediaRHandlerDependency(services);
49
-
50
-            services.AddAutoMapper(typeof(AutoMapperProfile));
51
-
52
-            services.AddSwaggerGen(c =>
53
-            {
54
-                c.SwaggerDoc("v2", new OpenApiInfo { Title = "Catalogue.Backend.API", Version = Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion });
55
-            });
56
-
57
-        }
58
-
59
-        private static void AddDataDependencyInjectionService(IServiceCollection services)
60
-        {
61
-            services.AddScoped<ITypeProprieteService, TypeProprieteService>();
62
-            services.AddScoped<IProprieteService, ProprieteService>();
63
-            services.AddScoped<IProduitService, ProduitService>();
64
-            services.AddScoped<ICommandeService, CommandeService>();
65
-            services.AddScoped<ILigneCommandeService, LigneCommandeService>();
66
-            services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
67 34
         }
68 35
 
69
-        private static void AddMediaRHandlerDependency(IServiceCollection services)
70
-        {
71
-            services.AddMediatR(Assembly.GetExecutingAssembly());
72
-            services.AddMediatR(typeof(GetTypeProprieteListHandler).Assembly);
73
-            services.AddMediatR(typeof(AddTypeProprieteHandler).Assembly);
74
-            services.AddMediatR(typeof(RemoveTypeProprieteHandler).Assembly);
75
-
76
-            services.AddMediatR(typeof(GetProprieteListHandler).Assembly);
77
-            services.AddMediatR(typeof(AddProprieteHandler).Assembly);
78
-            services.AddMediatR(typeof(RemoveProprieteHandler).Assembly);
79
-
80
-            services.AddMediatR(typeof(GetProduitListHandler).Assembly);
81
-            services.AddMediatR(typeof(AddProduitHandler).Assembly);
82
-            services.AddMediatR(typeof(RemoveProduitHandler).Assembly);
83 36
 
84
-            services.AddMediatR(typeof(GetCommandeListHandler).Assembly);
85
-            services.AddMediatR(typeof(AddCommandeHandler).Assembly);
86
-            services.AddMediatR(typeof(RemoveCommandeHandler).Assembly);
87 37
 
88
-            services.AddMediatR(typeof(GetLigneCommandeListHandler).Assembly);
89
-            services.AddMediatR(typeof(AddLigneCommandeHandler).Assembly);
90
-            services.AddMediatR(typeof(RemoveLigneCommandeHandler).Assembly);
91
-        }
92
-
93
-        private static void AddDataDependencyInjectionRepository(IServiceCollection services)
94
-        {
95
-            services.AddScoped<IApplicationDatabaseContext, ApplicationDatabaseContext>();
96
-            services.AddScoped<ICommandeRepository, CommandeRepository>();
97
-            services.AddScoped<ILigneCommandeRepository, LigneCommandeRepository>();
98
-            services.AddScoped<IProduitRepository, ProduitRepository>();
99
-            services.AddScoped<IProprieteRepository, ProprieteRepository>();
100
-            services.AddScoped<ITypeProprieteRepository, TypeProprieteRepository>();
101
-        }
102 38
         protected virtual void AddDatabase(IServiceCollection services)
103 39
         {
104 40
             if (services != null)
@@ -123,10 +59,7 @@ namespace Backend.API
123 59
                 endpoints.MapControllers();
124 60
             });
125 61
             app.UseApplicationDatabase(serviceProvider);
126
-            app.UseSwagger();
127
-            app.UseSwaggerUI(c => {
128
-                c.SwaggerEndpoint("/swagger/v2/swagger.json", "Catalogue.Backend.API");
129
-            });
62
+            app.UseSwaggerDocumentation();
130 63
         }
131 64
 
132 65
     

+ 63
- 126
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.deps.json Wyświetl plik

@@ -31,15 +31,11 @@
31 31
     ".NETCoreApp,Version=v3.1": {
32 32
       "Backend.API/1.0.0": {
33 33
         "dependencies": {
34
-          "AutoMapper": "10.1.1",
35
-          "AutoMapper.Extensions.Microsoft.DependencyInjection": "8.1.1",
36
-          "Backend.Common": "1.0.0",
37
-          "MediatR.Extensions.Microsoft.DependencyInjection": "7.0.0",
38
-          "Mediator": "1.0.0",
39
-          "Microsoft.EntityFrameworkCore": "5.0.13",
40
-          "Microsoft.EntityFrameworkCore.Tools": "5.0.13",
34
+          "Backend.ApplicationCore": "1.0.0",
35
+          "Backend.Domain": "1.0.0",
36
+          "Backend.Infrastructure": "1.0.0",
37
+          "Backend.Persistence": "1.0.0",
41 38
           "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.11.1",
42
-          "Pomelo.EntityFrameworkCore.MySql": "5.0.0-alpha.2",
43 39
           "Swashbuckle.AspNetCore.Swagger": "6.2.3",
44 40
           "Swashbuckle.AspNetCore.SwaggerGen": "6.2.3",
45 41
           "Swashbuckle.AspNetCore.SwaggerUI": "6.2.3",
@@ -334,7 +330,7 @@
334 330
       "AutoMapper.Extensions.Microsoft.DependencyInjection/8.1.1": {
335 331
         "dependencies": {
336 332
           "AutoMapper": "10.1.1",
337
-          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
333
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
338 334
           "Microsoft.Extensions.Options": "5.0.0"
339 335
         },
340 336
         "runtime": {
@@ -393,14 +389,6 @@
393 389
           "lib/netstandard2.0/Google.Protobuf.dll": {}
394 390
         }
395 391
       },
396
-      "Humanizer.Core/2.8.26": {
397
-        "runtime": {
398
-          "lib/netstandard2.0/Humanizer.dll": {
399
-            "assemblyVersion": "2.8.0.0",
400
-            "fileVersion": "2.8.26.1919"
401
-          }
402
-        }
403
-      },
404 392
       "K4os.Compression.LZ4/1.1.11": {
405 393
         "dependencies": {
406 394
           "System.Memory": "4.5.3"
@@ -458,7 +446,7 @@
458 446
       "MediatR.Extensions.Microsoft.DependencyInjection/7.0.0": {
459 447
         "dependencies": {
460 448
           "MediatR": "7.0.0",
461
-          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0"
449
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0"
462 450
         },
463 451
         "runtime": {
464 452
           "lib/netstandard2.0/MediatR.Extensions.Microsoft.DependencyInjection.dll": {
@@ -534,7 +522,7 @@
534 522
       },
535 523
       "Microsoft.AspNetCore.Identity.EntityFrameworkCore/5.0.10": {
536 524
         "dependencies": {
537
-          "Microsoft.EntityFrameworkCore.Relational": "5.0.13",
525
+          "Microsoft.EntityFrameworkCore.Relational": "5.0.10",
538 526
           "Microsoft.Extensions.Identity.Stores": "5.0.10"
539 527
         },
540 528
         "runtime": {
@@ -581,39 +569,21 @@
581 569
         }
582 570
       },
583 571
       "Microsoft.EntityFrameworkCore.Analyzers/5.0.13": {},
584
-      "Microsoft.EntityFrameworkCore.Design/5.0.13": {
585
-        "dependencies": {
586
-          "Humanizer.Core": "2.8.26",
587
-          "Microsoft.CSharp": "4.7.0",
588
-          "Microsoft.EntityFrameworkCore.Relational": "5.0.13"
589
-        },
590
-        "runtime": {
591
-          "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Design.dll": {
592
-            "assemblyVersion": "5.0.13.0",
593
-            "fileVersion": "5.0.1321.56013"
594
-          }
595
-        }
596
-      },
597
-      "Microsoft.EntityFrameworkCore.Relational/5.0.13": {
572
+      "Microsoft.EntityFrameworkCore.Relational/5.0.10": {
598 573
         "dependencies": {
599 574
           "Microsoft.EntityFrameworkCore": "5.0.13",
600 575
           "Microsoft.Extensions.Configuration.Abstractions": "6.0.0"
601 576
         },
602 577
         "runtime": {
603 578
           "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.dll": {
604
-            "assemblyVersion": "5.0.13.0",
605
-            "fileVersion": "5.0.1321.56013"
579
+            "assemblyVersion": "5.0.10.0",
580
+            "fileVersion": "5.0.1021.41011"
606 581
           }
607 582
         },
608 583
         "compile": {
609 584
           "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.dll": {}
610 585
         }
611 586
       },
612
-      "Microsoft.EntityFrameworkCore.Tools/5.0.13": {
613
-        "dependencies": {
614
-          "Microsoft.EntityFrameworkCore.Design": "5.0.13"
615
-        }
616
-      },
617 587
       "Microsoft.Extensions.Caching.Abstractions/5.0.0": {
618 588
         "dependencies": {
619 589
           "Microsoft.Extensions.Primitives": "6.0.0"
@@ -631,7 +601,7 @@
631 601
       "Microsoft.Extensions.Caching.Memory/5.0.0": {
632 602
         "dependencies": {
633 603
           "Microsoft.Extensions.Caching.Abstractions": "5.0.0",
634
-          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
604
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
635 605
           "Microsoft.Extensions.Logging.Abstractions": "5.0.0",
636 606
           "Microsoft.Extensions.Options": "5.0.0",
637 607
           "Microsoft.Extensions.Primitives": "6.0.0"
@@ -662,7 +632,7 @@
662 632
       },
663 633
       "Microsoft.Extensions.DependencyInjection/5.0.2": {
664 634
         "dependencies": {
665
-          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0"
635
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0"
666 636
         },
667 637
         "runtime": {
668 638
           "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll": {
@@ -674,15 +644,15 @@
674 644
           "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll": {}
675 645
         }
676 646
       },
677
-      "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0": {
647
+      "Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
678 648
         "runtime": {
679
-          "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
680
-            "assemblyVersion": "5.0.0.0",
681
-            "fileVersion": "5.0.20.51904"
649
+          "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
650
+            "assemblyVersion": "6.0.0.0",
651
+            "fileVersion": "6.0.21.52210"
682 652
           }
683 653
         },
684 654
         "compile": {
685
-          "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
655
+          "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
686 656
         }
687 657
       },
688 658
       "Microsoft.Extensions.Identity.Core/5.0.10": {
@@ -721,7 +691,7 @@
721 691
       "Microsoft.Extensions.Logging/5.0.0": {
722 692
         "dependencies": {
723 693
           "Microsoft.Extensions.DependencyInjection": "5.0.2",
724
-          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
694
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
725 695
           "Microsoft.Extensions.Logging.Abstractions": "5.0.0",
726 696
           "Microsoft.Extensions.Options": "5.0.0",
727 697
           "System.Diagnostics.DiagnosticSource": "5.0.1"
@@ -749,7 +719,7 @@
749 719
       },
750 720
       "Microsoft.Extensions.Options/5.0.0": {
751 721
         "dependencies": {
752
-          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
722
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
753 723
           "Microsoft.Extensions.Primitives": "6.0.0"
754 724
         },
755 725
         "runtime": {
@@ -843,7 +813,7 @@
843 813
       },
844 814
       "MySql.Data.EntityFrameworkCore/8.0.22": {
845 815
         "dependencies": {
846
-          "Microsoft.EntityFrameworkCore.Relational": "5.0.13",
816
+          "Microsoft.EntityFrameworkCore.Relational": "5.0.10",
847 817
           "MySql.Data": "8.0.22"
848 818
         },
849 819
         "runtime": {
@@ -917,7 +887,7 @@
917 887
       },
918 888
       "Pomelo.EntityFrameworkCore.MySql/5.0.0-alpha.2": {
919 889
         "dependencies": {
920
-          "Microsoft.EntityFrameworkCore.Relational": "5.0.13",
890
+          "Microsoft.EntityFrameworkCore.Relational": "5.0.10",
921 891
           "MySqlConnector": "1.1.0"
922 892
         },
923 893
         "runtime": {
@@ -1843,67 +1813,60 @@
1843 1813
           "ref/netstandard1.3/System.Xml.XPath.XmlDocument.dll": {}
1844 1814
         }
1845 1815
       },
1846
-      "Backend.Common/1.0.0": {
1847
-        "runtime": {
1848
-          "Backend.Common.dll": {}
1849
-        },
1850
-        "compile": {
1851
-          "Backend.Common.dll": {}
1852
-        }
1853
-      },
1854
-      "Backend.Data/1.0.0": {
1816
+      "Backend.ApplicationCore/1.0.0": {
1855 1817
         "dependencies": {
1856
-          "Microsoft.AspNet.Identity.EntityFramework": "2.2.3",
1857
-          "Microsoft.AspNetCore.Http.Abstractions": "2.2.0",
1858
-          "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.10",
1859
-          "Microsoft.EntityFrameworkCore": "5.0.13",
1860
-          "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
1861
-          "MySql.Data.EntityFrameworkCore": "8.0.22",
1862
-          "Pomelo.EntityFrameworkCore.MySql": "5.0.0-alpha.2",
1863
-          "System.Data.SqlClient": "4.8.3"
1818
+          "AutoMapper": "10.1.1",
1819
+          "AutoMapper.Extensions.Microsoft.DependencyInjection": "8.1.1",
1820
+          "Backend.Domain": "1.0.0",
1821
+          "MediatR": "7.0.0",
1822
+          "MediatR.Extensions.Microsoft.DependencyInjection": "7.0.0",
1823
+          "Microsoft.EntityFrameworkCore": "5.0.13"
1864 1824
         },
1865 1825
         "runtime": {
1866
-          "Backend.Data.dll": {}
1826
+          "Backend.ApplicationCore.dll": {}
1867 1827
         },
1868 1828
         "compile": {
1869
-          "Backend.Data.dll": {}
1829
+          "Backend.ApplicationCore.dll": {}
1870 1830
         }
1871 1831
       },
1872
-      "Backend.Models/1.0.0": {
1832
+      "Backend.Domain/1.0.0": {
1873 1833
         "runtime": {
1874
-          "Backend.Models.dll": {}
1834
+          "Backend.Domain.dll": {}
1875 1835
         },
1876 1836
         "compile": {
1877
-          "Backend.Models.dll": {}
1837
+          "Backend.Domain.dll": {}
1878 1838
         }
1879 1839
       },
1880
-      "Backend.Services/1.0.0": {
1840
+      "Backend.Infrastructure/1.0.0": {
1881 1841
         "dependencies": {
1882
-          "AutoMapper": "10.1.1",
1883
-          "Backend.Common": "1.0.0",
1884
-          "Backend.Data": "1.0.0",
1885
-          "Backend.Models": "1.0.0"
1842
+          "Backend.ApplicationCore": "1.0.0",
1843
+          "Backend.Domain": "1.0.0"
1886 1844
         },
1887 1845
         "runtime": {
1888
-          "Backend.Services.dll": {}
1846
+          "Backend.Infrastructure.dll": {}
1889 1847
         },
1890 1848
         "compile": {
1891
-          "Backend.Services.dll": {}
1849
+          "Backend.Infrastructure.dll": {}
1892 1850
         }
1893 1851
       },
1894
-      "Mediator/1.0.0": {
1852
+      "Backend.Persistence/1.0.0": {
1895 1853
         "dependencies": {
1896
-          "Backend.Common": "1.0.0",
1897
-          "Backend.Models": "1.0.0",
1898
-          "Backend.Services": "1.0.0",
1899
-          "MediatR": "7.0.0",
1900
-          "MediatR.Extensions.Microsoft.DependencyInjection": "7.0.0"
1854
+          "Backend.ApplicationCore": "1.0.0",
1855
+          "Microsoft.AspNet.Identity.EntityFramework": "2.2.3",
1856
+          "Microsoft.AspNetCore.Http.Abstractions": "2.2.0",
1857
+          "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.10",
1858
+          "Microsoft.EntityFrameworkCore": "5.0.13",
1859
+          "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
1860
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
1861
+          "MySql.Data.EntityFrameworkCore": "8.0.22",
1862
+          "Pomelo.EntityFrameworkCore.MySql": "5.0.0-alpha.2",
1863
+          "System.Data.SqlClient": "4.8.3"
1901 1864
         },
1902 1865
         "runtime": {
1903
-          "Mediator.dll": {}
1866
+          "Backend.Persistence.dll": {}
1904 1867
         },
1905 1868
         "compile": {
1906
-          "Mediator.dll": {}
1869
+          "Backend.Persistence.dll": {}
1907 1870
         }
1908 1871
       },
1909 1872
       "Microsoft.AspNetCore.Antiforgery/3.1.0.0": {
@@ -3539,13 +3502,6 @@
3539 3502
       "path": "google.protobuf/3.11.4",
3540 3503
       "hashPath": "google.protobuf.3.11.4.nupkg.sha512"
3541 3504
     },
3542
-    "Humanizer.Core/2.8.26": {
3543
-      "type": "package",
3544
-      "serviceable": true,
3545
-      "sha512": "sha512-OiKusGL20vby4uDEswj2IgkdchC1yQ6rwbIkZDVBPIR6al2b7n3pC91elBul9q33KaBgRKhbZH3+2Ur4fnWx2A==",
3546
-      "path": "humanizer.core/2.8.26",
3547
-      "hashPath": "humanizer.core.2.8.26.nupkg.sha512"
3548
-    },
3549 3505
     "K4os.Compression.LZ4/1.1.11": {
3550 3506
       "type": "package",
3551 3507
       "serviceable": true,
@@ -3658,26 +3614,12 @@
3658 3614
       "path": "microsoft.entityframeworkcore.analyzers/5.0.13",
3659 3615
       "hashPath": "microsoft.entityframeworkcore.analyzers.5.0.13.nupkg.sha512"
3660 3616
     },
3661
-    "Microsoft.EntityFrameworkCore.Design/5.0.13": {
3617
+    "Microsoft.EntityFrameworkCore.Relational/5.0.10": {
3662 3618
       "type": "package",
3663 3619
       "serviceable": true,
3664
-      "sha512": "sha512-T9Qq5RebYkx2EEU7ahHNediObrIE5dsRKt6mTkVwqrVqX1Kp+/HD02T1ZMdI1H62WLHH4QIdcCfjgsKgenTQFg==",
3665
-      "path": "microsoft.entityframeworkcore.design/5.0.13",
3666
-      "hashPath": "microsoft.entityframeworkcore.design.5.0.13.nupkg.sha512"
3667
-    },
3668
-    "Microsoft.EntityFrameworkCore.Relational/5.0.13": {
3669
-      "type": "package",
3670
-      "serviceable": true,
3671
-      "sha512": "sha512-Qs7N0HFemByf04PZHvn2ZFytveLZyZKCmuNcMus1f53uNarypvWifrOC7L/wYylm/j8vs3qcc7jgb/yox1sbtg==",
3672
-      "path": "microsoft.entityframeworkcore.relational/5.0.13",
3673
-      "hashPath": "microsoft.entityframeworkcore.relational.5.0.13.nupkg.sha512"
3674
-    },
3675
-    "Microsoft.EntityFrameworkCore.Tools/5.0.13": {
3676
-      "type": "package",
3677
-      "serviceable": true,
3678
-      "sha512": "sha512-i/46k4pfCBMb2LVjLqHAbBO8WsAaB+CKbe8oF9ZBTtjVqyEJAxSpn8IZcvajY2KJmM7lc3zgyUdaommvxH2ClA==",
3679
-      "path": "microsoft.entityframeworkcore.tools/5.0.13",
3680
-      "hashPath": "microsoft.entityframeworkcore.tools.5.0.13.nupkg.sha512"
3620
+      "sha512": "sha512-3l7GA+0y5E3kDOl85KRHhC0zXYA/CyQBQqDXvFGkqYzdPMRyWQkaQz2+yN4CN/SC+TVa48FPIAc2Wim8aWAliQ==",
3621
+      "path": "microsoft.entityframeworkcore.relational/5.0.10",
3622
+      "hashPath": "microsoft.entityframeworkcore.relational.5.0.10.nupkg.sha512"
3681 3623
     },
3682 3624
     "Microsoft.Extensions.Caching.Abstractions/5.0.0": {
3683 3625
       "type": "package",
@@ -3707,12 +3649,12 @@
3707 3649
       "path": "microsoft.extensions.dependencyinjection/5.0.2",
3708 3650
       "hashPath": "microsoft.extensions.dependencyinjection.5.0.2.nupkg.sha512"
3709 3651
     },
3710
-    "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0": {
3652
+    "Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
3711 3653
       "type": "package",
3712 3654
       "serviceable": true,
3713
-      "sha512": "sha512-ORj7Zh81gC69TyvmcUm9tSzytcy8AVousi+IVRAI8nLieQjOFryRusSFh7+aLk16FN9pQNqJAiMd7BTKINK0kA==",
3714
-      "path": "microsoft.extensions.dependencyinjection.abstractions/5.0.0",
3715
-      "hashPath": "microsoft.extensions.dependencyinjection.abstractions.5.0.0.nupkg.sha512"
3655
+      "sha512": "sha512-xlzi2IYREJH3/m6+lUrQlujzX8wDitm4QGnUu6kUXTQAWPuZY8i+ticFJbzfqaetLA6KR/rO6Ew/HuYD+bxifg==",
3656
+      "path": "microsoft.extensions.dependencyinjection.abstractions/6.0.0",
3657
+      "hashPath": "microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512"
3716 3658
     },
3717 3659
     "Microsoft.Extensions.Identity.Core/5.0.10": {
3718 3660
       "type": "package",
@@ -4449,27 +4391,22 @@
4449 4391
       "path": "system.xml.xpath.xmldocument/4.0.1",
4450 4392
       "hashPath": "system.xml.xpath.xmldocument.4.0.1.nupkg.sha512"
4451 4393
     },
4452
-    "Backend.Common/1.0.0": {
4453
-      "type": "project",
4454
-      "serviceable": false,
4455
-      "sha512": ""
4456
-    },
4457
-    "Backend.Data/1.0.0": {
4394
+    "Backend.ApplicationCore/1.0.0": {
4458 4395
       "type": "project",
4459 4396
       "serviceable": false,
4460 4397
       "sha512": ""
4461 4398
     },
4462
-    "Backend.Models/1.0.0": {
4399
+    "Backend.Domain/1.0.0": {
4463 4400
       "type": "project",
4464 4401
       "serviceable": false,
4465 4402
       "sha512": ""
4466 4403
     },
4467
-    "Backend.Services/1.0.0": {
4404
+    "Backend.Infrastructure/1.0.0": {
4468 4405
       "type": "project",
4469 4406
       "serviceable": false,
4470 4407
       "sha512": ""
4471 4408
     },
4472
-    "Mediator/1.0.0": {
4409
+    "Backend.Persistence/1.0.0": {
4473 4410
       "type": "project",
4474 4411
       "serviceable": false,
4475 4412
       "sha512": ""

BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Common.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Domain.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Models.pdb → CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Domain.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Infrastructure.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Infrastructure.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Models.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Persistence.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Persistence.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Humanizer.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Design.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll Wyświetl plik


+ 85
- 155
CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.dgspec.json Wyświetl plik

@@ -29,11 +29,17 @@
29 29
           "netcoreapp3.1": {
30 30
             "targetAlias": "netcoreapp3.1",
31 31
             "projectReferences": {
32
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj": {
33
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj"
32
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj": {
33
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj"
34 34
               },
35
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj": {
36
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj"
35
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Infrastructure.csproj": {
36
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Infrastructure.csproj"
37
+              },
38
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\Backend.Persistence.csproj": {
39
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\Backend.Persistence.csproj"
40
+              },
41
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj": {
42
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj"
37 43
               }
38 44
             }
39 45
           }
@@ -48,36 +54,10 @@
48 54
         "netcoreapp3.1": {
49 55
           "targetAlias": "netcoreapp3.1",
50 56
           "dependencies": {
51
-            "AutoMapper": {
52
-              "target": "Package",
53
-              "version": "[10.1.1, )"
54
-            },
55
-            "AutoMapper.Extensions.Microsoft.DependencyInjection": {
56
-              "target": "Package",
57
-              "version": "[8.1.1, )"
58
-            },
59
-            "MediatR.Extensions.Microsoft.DependencyInjection": {
60
-              "target": "Package",
61
-              "version": "[7.0.0, )"
62
-            },
63
-            "Microsoft.EntityFrameworkCore": {
64
-              "target": "Package",
65
-              "version": "[5.0.13, )"
66
-            },
67
-            "Microsoft.EntityFrameworkCore.Tools": {
68
-              "include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
69
-              "suppressParent": "All",
70
-              "target": "Package",
71
-              "version": "[5.0.13, )"
72
-            },
73 57
             "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": {
74 58
               "target": "Package",
75 59
               "version": "[1.11.1, )"
76 60
             },
77
-            "Pomelo.EntityFrameworkCore.MySql": {
78
-              "target": "Package",
79
-              "version": "[5.0.0-alpha.2, )"
80
-            },
81 61
             "Swashbuckle.AspNetCore.Swagger": {
82 62
               "target": "Package",
83 63
               "version": "[6.2.3, )"
@@ -113,12 +93,12 @@
113 93
         }
114 94
       }
115 95
     },
116
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj": {
96
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj": {
117 97
       "version": "1.0.0",
118 98
       "restore": {
119
-        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj",
120
-        "projectName": "Backend.Common",
121
-        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj",
99
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj",
100
+        "projectName": "Backend.Domain",
101
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj",
122 102
         "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
123 103
         "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\obj\\",
124 104
         "projectStyle": "PackageReference",
@@ -168,12 +148,12 @@
168 148
         }
169 149
       }
170 150
     },
171
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Data.csproj": {
151
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Infrastructure.csproj": {
172 152
       "version": "1.0.0",
173 153
       "restore": {
174
-        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Data.csproj",
175
-        "projectName": "Backend.Data",
176
-        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Data.csproj",
154
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Infrastructure.csproj",
155
+        "projectName": "Backend.Infrastructure",
156
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Infrastructure.csproj",
177 157
         "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
178 158
         "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\obj\\",
179 159
         "projectStyle": "PackageReference",
@@ -192,96 +172,14 @@
192 172
         "frameworks": {
193 173
           "netcoreapp3.1": {
194 174
             "targetAlias": "netcoreapp3.1",
195
-            "projectReferences": {}
196
-          }
197
-        },
198
-        "warningProperties": {
199
-          "warnAsError": [
200
-            "NU1605"
201
-          ]
202
-        }
203
-      },
204
-      "frameworks": {
205
-        "netcoreapp3.1": {
206
-          "targetAlias": "netcoreapp3.1",
207
-          "dependencies": {
208
-            "Microsoft.AspNet.Identity.EntityFramework": {
209
-              "target": "Package",
210
-              "version": "[2.2.3, )"
211
-            },
212
-            "Microsoft.AspNetCore.Http.Abstractions": {
213
-              "target": "Package",
214
-              "version": "[2.2.0, )"
215
-            },
216
-            "Microsoft.AspNetCore.Identity.EntityFrameworkCore": {
217
-              "target": "Package",
218
-              "version": "[5.0.10, )"
219
-            },
220
-            "Microsoft.EntityFrameworkCore": {
221
-              "target": "Package",
222
-              "version": "[5.0.10, )"
223
-            },
224
-            "Microsoft.Extensions.Configuration.Abstractions": {
225
-              "target": "Package",
226
-              "version": "[6.0.0, )"
227
-            },
228
-            "MySql.Data.EntityFrameworkCore": {
229
-              "target": "Package",
230
-              "version": "[8.0.22, )"
231
-            },
232
-            "Pomelo.EntityFrameworkCore.MySql": {
233
-              "target": "Package",
234
-              "version": "[5.0.0-alpha.2, )"
235
-            },
236
-            "System.Data.SqlClient": {
237
-              "target": "Package",
238
-              "version": "[4.8.3, )"
239
-            }
240
-          },
241
-          "imports": [
242
-            "net461",
243
-            "net462",
244
-            "net47",
245
-            "net471",
246
-            "net472",
247
-            "net48"
248
-          ],
249
-          "assetTargetFallback": true,
250
-          "warn": true,
251
-          "frameworkReferences": {
252
-            "Microsoft.NETCore.App": {
253
-              "privateAssets": "all"
175
+            "projectReferences": {
176
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj": {
177
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj"
178
+              },
179
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj": {
180
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj"
181
+              }
254 182
             }
255
-          },
256
-          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
257
-        }
258
-      }
259
-    },
260
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\Backend.Models.csproj": {
261
-      "version": "1.0.0",
262
-      "restore": {
263
-        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\Backend.Models.csproj",
264
-        "projectName": "Backend.Models",
265
-        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\Backend.Models.csproj",
266
-        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
267
-        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\obj\\",
268
-        "projectStyle": "PackageReference",
269
-        "configFilePaths": [
270
-          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
271
-          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
272
-        ],
273
-        "originalTargetFrameworks": [
274
-          "netcoreapp3.1"
275
-        ],
276
-        "sources": {
277
-          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
278
-          "https://api.nuget.org/v3/index.json": {},
279
-          "https://packagesource": {}
280
-        },
281
-        "frameworks": {
282
-          "netcoreapp3.1": {
283
-            "targetAlias": "netcoreapp3.1",
284
-            "projectReferences": {}
285 183
           }
286 184
         },
287 185
         "warningProperties": {
@@ -312,14 +210,14 @@
312 210
         }
313 211
       }
314 212
     },
315
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.Services.csproj": {
213
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\Backend.Persistence.csproj": {
316 214
       "version": "1.0.0",
317 215
       "restore": {
318
-        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.Services.csproj",
319
-        "projectName": "Backend.Services",
320
-        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.Services.csproj",
216
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\Backend.Persistence.csproj",
217
+        "projectName": "Backend.Persistence",
218
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\Backend.Persistence.csproj",
321 219
         "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
322
-        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\obj\\",
220
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\obj\\",
323 221
         "projectStyle": "PackageReference",
324 222
         "configFilePaths": [
325 223
           "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
@@ -337,14 +235,8 @@
337 235
           "netcoreapp3.1": {
338 236
             "targetAlias": "netcoreapp3.1",
339 237
             "projectReferences": {
340
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj": {
341
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj"
342
-              },
343
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Data.csproj": {
344
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Data.csproj"
345
-              },
346
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\Backend.Models.csproj": {
347
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\Backend.Models.csproj"
238
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj": {
239
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj"
348 240
               }
349 241
             }
350 242
           }
@@ -359,9 +251,41 @@
359 251
         "netcoreapp3.1": {
360 252
           "targetAlias": "netcoreapp3.1",
361 253
           "dependencies": {
362
-            "AutoMapper": {
254
+            "Microsoft.AspNet.Identity.EntityFramework": {
363 255
               "target": "Package",
364
-              "version": "[10.1.1, )"
256
+              "version": "[2.2.3, )"
257
+            },
258
+            "Microsoft.AspNetCore.Http.Abstractions": {
259
+              "target": "Package",
260
+              "version": "[2.2.0, )"
261
+            },
262
+            "Microsoft.AspNetCore.Identity.EntityFrameworkCore": {
263
+              "target": "Package",
264
+              "version": "[5.0.10, )"
265
+            },
266
+            "Microsoft.EntityFrameworkCore": {
267
+              "target": "Package",
268
+              "version": "[5.0.13, )"
269
+            },
270
+            "Microsoft.Extensions.Configuration.Abstractions": {
271
+              "target": "Package",
272
+              "version": "[6.0.0, )"
273
+            },
274
+            "Microsoft.Extensions.DependencyInjection.Abstractions": {
275
+              "target": "Package",
276
+              "version": "[6.0.0, )"
277
+            },
278
+            "MySql.Data.EntityFrameworkCore": {
279
+              "target": "Package",
280
+              "version": "[8.0.22, )"
281
+            },
282
+            "Pomelo.EntityFrameworkCore.MySql": {
283
+              "target": "Package",
284
+              "version": "[5.0.0-alpha.2, )"
285
+            },
286
+            "System.Data.SqlClient": {
287
+              "target": "Package",
288
+              "version": "[4.8.3, )"
365 289
             }
366 290
           },
367 291
           "imports": [
@@ -383,14 +307,14 @@
383 307
         }
384 308
       }
385 309
     },
386
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj": {
310
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj": {
387 311
       "version": "1.0.0",
388 312
       "restore": {
389
-        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj",
390
-        "projectName": "Mediator",
391
-        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj",
313
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj",
314
+        "projectName": "Backend.ApplicationCore",
315
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj",
392 316
         "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
393
-        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\obj\\",
317
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\obj\\",
394 318
         "projectStyle": "PackageReference",
395 319
         "configFilePaths": [
396 320
           "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
@@ -408,14 +332,8 @@
408 332
           "netcoreapp3.1": {
409 333
             "targetAlias": "netcoreapp3.1",
410 334
             "projectReferences": {
411
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj": {
412
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj"
413
-              },
414
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\Backend.Models.csproj": {
415
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Models\\Backend.Models.csproj"
416
-              },
417
-              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.Services.csproj": {
418
-                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.Services.csproj"
335
+              "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj": {
336
+                "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj"
419 337
               }
420 338
             }
421 339
           }
@@ -430,6 +348,14 @@
430 348
         "netcoreapp3.1": {
431 349
           "targetAlias": "netcoreapp3.1",
432 350
           "dependencies": {
351
+            "AutoMapper": {
352
+              "target": "Package",
353
+              "version": "[10.1.1, )"
354
+            },
355
+            "AutoMapper.Extensions.Microsoft.DependencyInjection": {
356
+              "target": "Package",
357
+              "version": "[8.1.1, )"
358
+            },
433 359
             "MediatR": {
434 360
               "target": "Package",
435 361
               "version": "[7.0.0, )"
@@ -437,6 +363,10 @@
437 363
             "MediatR.Extensions.Microsoft.DependencyInjection": {
438 364
               "target": "Package",
439 365
               "version": "[7.0.0, )"
366
+            },
367
+            "Microsoft.EntityFrameworkCore": {
368
+              "target": "Package",
369
+              "version": "[5.0.13, )"
440 370
             }
441 371
           },
442 372
           "imports": [

+ 0
- 2
CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.g.props Wyświetl plik

@@ -17,11 +17,9 @@
17 17
   </PropertyGroup>
18 18
   <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
19 19
     <Import Project="$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props')" />
20
-    <Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore.design\5.0.13\build\netcoreapp3.0\Microsoft.EntityFrameworkCore.Design.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore.design\5.0.13\build\netcoreapp3.0\Microsoft.EntityFrameworkCore.Design.props')" />
21 20
   </ImportGroup>
22 21
   <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
23 22
     <PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets Condition=" '$(PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.11.1</PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets>
24
-    <PkgMicrosoft_EntityFrameworkCore_Tools Condition=" '$(PkgMicrosoft_EntityFrameworkCore_Tools)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\microsoft.entityframeworkcore.tools\5.0.13</PkgMicrosoft_EntityFrameworkCore_Tools>
25 23
     <PkgEntityFramework Condition=" '$(PkgEntityFramework)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\entityframework\6.1.0</PkgEntityFramework>
26 24
   </PropertyGroup>
27 25
 </Project>

+ 0
- 0
CatalogueCQRS/Backend.API/obj/Container/ContainerRunContext.cache Wyświetl plik


BIN
CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.assets.cache Wyświetl plik


BIN
CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.csproj.AssemblyReference.cache Wyświetl plik


+ 1
- 1
CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.csproj.CoreCompileInputs.cache Wyświetl plik

@@ -1 +1 @@
1
-c5ca32b5928f1d07475c1989500f6b626cf78b74
1
+dabb2f105efe36cf384678feec31f6fdf2df0214

+ 8
- 12
CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.csproj.FileListAbsolute.txt Wyświetl plik

@@ -103,7 +103,6 @@ C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin
103 103
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\EntityFramework.SqlServer.dll
104 104
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\EntityFramework.dll
105 105
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Google.Protobuf.dll
106
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Humanizer.dll
107 106
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\K4os.Compression.LZ4.dll
108 107
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\K4os.Compression.LZ4.Streams.dll
109 108
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\K4os.Hash.xxHash.dll
@@ -116,7 +115,6 @@ C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin
116 115
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Microsoft.AspNetCore.Identity.EntityFrameworkCore.dll
117 116
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.dll
118 117
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.Abstractions.dll
119
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.Design.dll
120 118
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.Relational.dll
121 119
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Caching.Abstractions.dll
122 120
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Caching.Memory.dll
@@ -155,16 +153,14 @@ C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin
155 153
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\runtimes\unix\lib\netcoreapp2.1\System.Data.SqlClient.dll
156 154
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.1\System.Data.SqlClient.dll
157 155
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll
158
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Common.dll
159
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Data.dll
160
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Models.dll
161
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Services.dll
162
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Mediator.dll
163
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Common.pdb
164
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Mediator.pdb
165
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Data.pdb
166
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Models.pdb
167
-C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Services.pdb
156
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.ApplicationCore.dll
157
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Domain.dll
158
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Infrastructure.dll
159
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Persistence.dll
160
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Domain.pdb
161
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Infrastructure.pdb
162
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.Persistence.pdb
163
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\bin\Debug\netcoreapp3.1\Backend.ApplicationCore.pdb
168 164
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\obj\Debug\netcoreapp3.1\Backend.API.csproj.AssemblyReference.cache
169 165
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\obj\Debug\netcoreapp3.1\Backend.API.GeneratedMSBuildEditorConfig.editorconfig
170 166
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.API\obj\Debug\netcoreapp3.1\Backend.API.AssemblyInfoInputs.cache

BIN
CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/obj/Debug/netcoreapp3.1/Backend.API.pdb Wyświetl plik


+ 79
- 202
CatalogueCQRS/Backend.API/obj/project.assets.json Wyświetl plik

@@ -66,15 +66,6 @@
66 66
           "lib/netstandard2.0/Google.Protobuf.dll": {}
67 67
         }
68 68
       },
69
-      "Humanizer.Core/2.8.26": {
70
-        "type": "package",
71
-        "compile": {
72
-          "lib/netstandard2.0/_._": {}
73
-        },
74
-        "runtime": {
75
-          "lib/netstandard2.0/Humanizer.dll": {}
76
-        }
77
-      },
78 69
       "K4os.Compression.LZ4/1.1.11": {
79 70
         "type": "package",
80 71
         "dependencies": {
@@ -261,27 +252,10 @@
261 252
           "lib/netstandard2.0/_._": {}
262 253
         }
263 254
       },
264
-      "Microsoft.EntityFrameworkCore.Design/5.0.13": {
265
-        "type": "package",
266
-        "dependencies": {
267
-          "Humanizer.Core": "2.8.26",
268
-          "Microsoft.CSharp": "4.7.0",
269
-          "Microsoft.EntityFrameworkCore.Relational": "5.0.13"
270
-        },
271
-        "compile": {
272
-          "lib/netstandard2.1/_._": {}
273
-        },
274
-        "runtime": {
275
-          "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Design.dll": {}
276
-        },
277
-        "build": {
278
-          "build/netcoreapp3.0/Microsoft.EntityFrameworkCore.Design.props": {}
279
-        }
280
-      },
281
-      "Microsoft.EntityFrameworkCore.Relational/5.0.13": {
255
+      "Microsoft.EntityFrameworkCore.Relational/5.0.10": {
282 256
         "type": "package",
283 257
         "dependencies": {
284
-          "Microsoft.EntityFrameworkCore": "5.0.13",
258
+          "Microsoft.EntityFrameworkCore": "5.0.10",
285 259
           "Microsoft.Extensions.Configuration.Abstractions": "5.0.0"
286 260
         },
287 261
         "compile": {
@@ -291,18 +265,6 @@
291 265
           "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.dll": {}
292 266
         }
293 267
       },
294
-      "Microsoft.EntityFrameworkCore.Tools/5.0.13": {
295
-        "type": "package",
296
-        "dependencies": {
297
-          "Microsoft.EntityFrameworkCore.Design": "5.0.13"
298
-        },
299
-        "compile": {
300
-          "lib/netstandard2.1/_._": {}
301
-        },
302
-        "runtime": {
303
-          "lib/netstandard2.1/_._": {}
304
-        }
305
-      },
306 268
       "Microsoft.Extensions.Caching.Abstractions/5.0.0": {
307 269
         "type": "package",
308 270
         "dependencies": {
@@ -355,13 +317,16 @@
355 317
           "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll": {}
356 318
         }
357 319
       },
358
-      "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0": {
320
+      "Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
359 321
         "type": "package",
360 322
         "compile": {
361
-          "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
323
+          "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
362 324
         },
363 325
         "runtime": {
364
-          "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
326
+          "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
327
+        },
328
+        "build": {
329
+          "buildTransitive/netcoreapp3.1/_._": {}
365 330
         }
366 331
       },
367 332
       "Microsoft.Extensions.Identity.Core/5.0.10": {
@@ -2082,77 +2047,68 @@
2082 2047
           "lib/netstandard1.3/System.Xml.XPath.XmlDocument.dll": {}
2083 2048
         }
2084 2049
       },
2085
-      "Backend.Common/1.0.0": {
2086
-        "type": "project",
2087
-        "framework": ".NETCoreApp,Version=v3.1",
2088
-        "compile": {
2089
-          "bin/placeholder/Backend.Common.dll": {}
2090
-        },
2091
-        "runtime": {
2092
-          "bin/placeholder/Backend.Common.dll": {}
2093
-        }
2094
-      },
2095
-      "Backend.Data/1.0.0": {
2050
+      "Backend.ApplicationCore/1.0.0": {
2096 2051
         "type": "project",
2097 2052
         "framework": ".NETCoreApp,Version=v3.1",
2098 2053
         "dependencies": {
2099
-          "Microsoft.AspNet.Identity.EntityFramework": "2.2.3",
2100
-          "Microsoft.AspNetCore.Http.Abstractions": "2.2.0",
2101
-          "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.10",
2102
-          "Microsoft.EntityFrameworkCore": "5.0.10",
2103
-          "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
2104
-          "MySql.Data.EntityFrameworkCore": "8.0.22",
2105
-          "Pomelo.EntityFrameworkCore.MySql": "5.0.0-alpha.2",
2106
-          "System.Data.SqlClient": "4.8.3"
2054
+          "AutoMapper": "10.1.1",
2055
+          "AutoMapper.Extensions.Microsoft.DependencyInjection": "8.1.1",
2056
+          "Backend.Domain": "1.0.0",
2057
+          "MediatR": "7.0.0",
2058
+          "MediatR.Extensions.Microsoft.DependencyInjection": "7.0.0",
2059
+          "Microsoft.EntityFrameworkCore": "5.0.13"
2107 2060
         },
2108 2061
         "compile": {
2109
-          "bin/placeholder/Backend.Data.dll": {}
2062
+          "bin/placeholder/Backend.ApplicationCore.dll": {}
2110 2063
         },
2111 2064
         "runtime": {
2112
-          "bin/placeholder/Backend.Data.dll": {}
2065
+          "bin/placeholder/Backend.ApplicationCore.dll": {}
2113 2066
         }
2114 2067
       },
2115
-      "Backend.Models/1.0.0": {
2068
+      "Backend.Domain/1.0.0": {
2116 2069
         "type": "project",
2117 2070
         "framework": ".NETCoreApp,Version=v3.1",
2118 2071
         "compile": {
2119
-          "bin/placeholder/Backend.Models.dll": {}
2072
+          "bin/placeholder/Backend.Domain.dll": {}
2120 2073
         },
2121 2074
         "runtime": {
2122
-          "bin/placeholder/Backend.Models.dll": {}
2075
+          "bin/placeholder/Backend.Domain.dll": {}
2123 2076
         }
2124 2077
       },
2125
-      "Backend.Services/1.0.0": {
2078
+      "Backend.Infrastructure/1.0.0": {
2126 2079
         "type": "project",
2127 2080
         "framework": ".NETCoreApp,Version=v3.1",
2128 2081
         "dependencies": {
2129
-          "AutoMapper": "10.1.1",
2130
-          "Backend.Common": "1.0.0",
2131
-          "Backend.Data": "1.0.0",
2132
-          "Backend.Models": "1.0.0"
2082
+          "Backend.ApplicationCore": "1.0.0",
2083
+          "Backend.Domain": "1.0.0"
2133 2084
         },
2134 2085
         "compile": {
2135
-          "bin/placeholder/Backend.Services.dll": {}
2086
+          "bin/placeholder/Backend.Infrastructure.dll": {}
2136 2087
         },
2137 2088
         "runtime": {
2138
-          "bin/placeholder/Backend.Services.dll": {}
2089
+          "bin/placeholder/Backend.Infrastructure.dll": {}
2139 2090
         }
2140 2091
       },
2141
-      "Mediator/1.0.0": {
2092
+      "Backend.Persistence/1.0.0": {
2142 2093
         "type": "project",
2143 2094
         "framework": ".NETCoreApp,Version=v3.1",
2144 2095
         "dependencies": {
2145
-          "Backend.Common": "1.0.0",
2146
-          "Backend.Models": "1.0.0",
2147
-          "Backend.Services": "1.0.0",
2148
-          "MediatR": "7.0.0",
2149
-          "MediatR.Extensions.Microsoft.DependencyInjection": "7.0.0"
2096
+          "Backend.ApplicationCore": "1.0.0",
2097
+          "Microsoft.AspNet.Identity.EntityFramework": "2.2.3",
2098
+          "Microsoft.AspNetCore.Http.Abstractions": "2.2.0",
2099
+          "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "5.0.10",
2100
+          "Microsoft.EntityFrameworkCore": "5.0.13",
2101
+          "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
2102
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
2103
+          "MySql.Data.EntityFrameworkCore": "8.0.22",
2104
+          "Pomelo.EntityFrameworkCore.MySql": "5.0.0-alpha.2",
2105
+          "System.Data.SqlClient": "4.8.3"
2150 2106
         },
2151 2107
         "compile": {
2152
-          "bin/placeholder/Mediator.dll": {}
2108
+          "bin/placeholder/Backend.Persistence.dll": {}
2153 2109
         },
2154 2110
         "runtime": {
2155
-          "bin/placeholder/Mediator.dll": {}
2111
+          "bin/placeholder/Backend.Persistence.dll": {}
2156 2112
         }
2157 2113
       }
2158 2114
     }
@@ -2264,22 +2220,6 @@
2264 2220
         "lib/netstandard2.0/Google.Protobuf.xml"
2265 2221
       ]
2266 2222
     },
2267
-    "Humanizer.Core/2.8.26": {
2268
-      "sha512": "OiKusGL20vby4uDEswj2IgkdchC1yQ6rwbIkZDVBPIR6al2b7n3pC91elBul9q33KaBgRKhbZH3+2Ur4fnWx2A==",
2269
-      "type": "package",
2270
-      "path": "humanizer.core/2.8.26",
2271
-      "files": [
2272
-        ".nupkg.metadata",
2273
-        ".signature.p7s",
2274
-        "humanizer.core.2.8.26.nupkg.sha512",
2275
-        "humanizer.core.nuspec",
2276
-        "lib/netstandard1.0/Humanizer.dll",
2277
-        "lib/netstandard1.0/Humanizer.xml",
2278
-        "lib/netstandard2.0/Humanizer.dll",
2279
-        "lib/netstandard2.0/Humanizer.xml",
2280
-        "logo.png"
2281
-      ]
2282
-    },
2283 2223
     "K4os.Compression.LZ4/1.1.11": {
2284 2224
       "sha512": "RNvJw0UGkedPhCqVBNIogtfQebY+bQt0PN7xDbVe5LWLra0ZEqPfjPSl7iStj3rgDnkqkkTTpm+vCX3hU1qKmA==",
2285 2225
       "type": "package",
@@ -2580,59 +2520,20 @@
2580 2520
         "microsoft.entityframeworkcore.analyzers.nuspec"
2581 2521
       ]
2582 2522
     },
2583
-    "Microsoft.EntityFrameworkCore.Design/5.0.13": {
2584
-      "sha512": "T9Qq5RebYkx2EEU7ahHNediObrIE5dsRKt6mTkVwqrVqX1Kp+/HD02T1ZMdI1H62WLHH4QIdcCfjgsKgenTQFg==",
2523
+    "Microsoft.EntityFrameworkCore.Relational/5.0.10": {
2524
+      "sha512": "3l7GA+0y5E3kDOl85KRHhC0zXYA/CyQBQqDXvFGkqYzdPMRyWQkaQz2+yN4CN/SC+TVa48FPIAc2Wim8aWAliQ==",
2585 2525
       "type": "package",
2586
-      "path": "microsoft.entityframeworkcore.design/5.0.13",
2587
-      "files": [
2588
-        ".nupkg.metadata",
2589
-        ".signature.p7s",
2590
-        "Icon.png",
2591
-        "build/netcoreapp3.0/Microsoft.EntityFrameworkCore.Design.props",
2592
-        "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Design.dll",
2593
-        "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Design.xml",
2594
-        "microsoft.entityframeworkcore.design.5.0.13.nupkg.sha512",
2595
-        "microsoft.entityframeworkcore.design.nuspec"
2596
-      ]
2597
-    },
2598
-    "Microsoft.EntityFrameworkCore.Relational/5.0.13": {
2599
-      "sha512": "Qs7N0HFemByf04PZHvn2ZFytveLZyZKCmuNcMus1f53uNarypvWifrOC7L/wYylm/j8vs3qcc7jgb/yox1sbtg==",
2600
-      "type": "package",
2601
-      "path": "microsoft.entityframeworkcore.relational/5.0.13",
2526
+      "path": "microsoft.entityframeworkcore.relational/5.0.10",
2602 2527
       "files": [
2603 2528
         ".nupkg.metadata",
2604 2529
         ".signature.p7s",
2605 2530
         "Icon.png",
2606 2531
         "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.dll",
2607 2532
         "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.xml",
2608
-        "microsoft.entityframeworkcore.relational.5.0.13.nupkg.sha512",
2533
+        "microsoft.entityframeworkcore.relational.5.0.10.nupkg.sha512",
2609 2534
         "microsoft.entityframeworkcore.relational.nuspec"
2610 2535
       ]
2611 2536
     },
2612
-    "Microsoft.EntityFrameworkCore.Tools/5.0.13": {
2613
-      "sha512": "i/46k4pfCBMb2LVjLqHAbBO8WsAaB+CKbe8oF9ZBTtjVqyEJAxSpn8IZcvajY2KJmM7lc3zgyUdaommvxH2ClA==",
2614
-      "type": "package",
2615
-      "path": "microsoft.entityframeworkcore.tools/5.0.13",
2616
-      "hasTools": true,
2617
-      "files": [
2618
-        ".nupkg.metadata",
2619
-        ".signature.p7s",
2620
-        "Icon.png",
2621
-        "lib/netstandard2.1/_._",
2622
-        "microsoft.entityframeworkcore.tools.5.0.13.nupkg.sha512",
2623
-        "microsoft.entityframeworkcore.tools.nuspec",
2624
-        "tools/EntityFrameworkCore.PS2.psd1",
2625
-        "tools/EntityFrameworkCore.PS2.psm1",
2626
-        "tools/EntityFrameworkCore.psd1",
2627
-        "tools/EntityFrameworkCore.psm1",
2628
-        "tools/about_EntityFrameworkCore.help.txt",
2629
-        "tools/init.ps1",
2630
-        "tools/net461/any/ef.exe",
2631
-        "tools/net461/win-x86/ef.exe",
2632
-        "tools/netcoreapp2.0/any/ef.dll",
2633
-        "tools/netcoreapp2.0/any/ef.runtimeconfig.json"
2634
-      ]
2635
-    },
2636 2537
     "Microsoft.Extensions.Caching.Abstractions/5.0.0": {
2637 2538
       "sha512": "bu8As90/SBAouMZ6fJ+qRNo1X+KgHGrVueFhhYi+E5WqEhcnp2HoWRFnMzXQ6g4RdZbvPowFerSbKNH4Dtg5yg==",
2638 2539
       "type": "package",
@@ -2716,24 +2617,29 @@
2716 2617
         "version.txt"
2717 2618
       ]
2718 2619
     },
2719
-    "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0": {
2720
-      "sha512": "ORj7Zh81gC69TyvmcUm9tSzytcy8AVousi+IVRAI8nLieQjOFryRusSFh7+aLk16FN9pQNqJAiMd7BTKINK0kA==",
2620
+    "Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
2621
+      "sha512": "xlzi2IYREJH3/m6+lUrQlujzX8wDitm4QGnUu6kUXTQAWPuZY8i+ticFJbzfqaetLA6KR/rO6Ew/HuYD+bxifg==",
2721 2622
       "type": "package",
2722
-      "path": "microsoft.extensions.dependencyinjection.abstractions/5.0.0",
2623
+      "path": "microsoft.extensions.dependencyinjection.abstractions/6.0.0",
2723 2624
       "files": [
2724 2625
         ".nupkg.metadata",
2725 2626
         ".signature.p7s",
2726 2627
         "Icon.png",
2727 2628
         "LICENSE.TXT",
2728 2629
         "THIRD-PARTY-NOTICES.TXT",
2630
+        "buildTransitive/netcoreapp2.0/Microsoft.Extensions.DependencyInjection.Abstractions.targets",
2631
+        "buildTransitive/netcoreapp3.1/_._",
2729 2632
         "lib/net461/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
2730 2633
         "lib/net461/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
2634
+        "lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
2635
+        "lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
2731 2636
         "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
2732 2637
         "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
2733
-        "microsoft.extensions.dependencyinjection.abstractions.5.0.0.nupkg.sha512",
2638
+        "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
2639
+        "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
2640
+        "microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512",
2734 2641
         "microsoft.extensions.dependencyinjection.abstractions.nuspec",
2735
-        "useSharedDesignerContext.txt",
2736
-        "version.txt"
2642
+        "useSharedDesignerContext.txt"
2737 2643
       ]
2738 2644
     },
2739 2645
     "Microsoft.Extensions.Identity.Core/5.0.10": {
@@ -7221,43 +7127,34 @@
7221 7127
         "system.xml.xpath.xmldocument.nuspec"
7222 7128
       ]
7223 7129
     },
7224
-    "Backend.Common/1.0.0": {
7225
-      "type": "project",
7226
-      "path": "../Backend.Common/Backend.Common.csproj",
7227
-      "msbuildProject": "../Backend.Common/Backend.Common.csproj"
7228
-    },
7229
-    "Backend.Data/1.0.0": {
7130
+    "Backend.ApplicationCore/1.0.0": {
7230 7131
       "type": "project",
7231
-      "path": "../Backend.Data/Backend.Data.csproj",
7232
-      "msbuildProject": "../Backend.Data/Backend.Data.csproj"
7132
+      "path": "../Backend.Services/Backend.ApplicationCore.csproj",
7133
+      "msbuildProject": "../Backend.Services/Backend.ApplicationCore.csproj"
7233 7134
     },
7234
-    "Backend.Models/1.0.0": {
7135
+    "Backend.Domain/1.0.0": {
7235 7136
       "type": "project",
7236
-      "path": "../Backend.Models/Backend.Models.csproj",
7237
-      "msbuildProject": "../Backend.Models/Backend.Models.csproj"
7137
+      "path": "../Backend.Common/Backend.Domain.csproj",
7138
+      "msbuildProject": "../Backend.Common/Backend.Domain.csproj"
7238 7139
     },
7239
-    "Backend.Services/1.0.0": {
7140
+    "Backend.Infrastructure/1.0.0": {
7240 7141
       "type": "project",
7241
-      "path": "../Backend.Services/Backend.Services.csproj",
7242
-      "msbuildProject": "../Backend.Services/Backend.Services.csproj"
7142
+      "path": "../Backend.Data/Backend.Infrastructure.csproj",
7143
+      "msbuildProject": "../Backend.Data/Backend.Infrastructure.csproj"
7243 7144
     },
7244
-    "Mediator/1.0.0": {
7145
+    "Backend.Persistence/1.0.0": {
7245 7146
       "type": "project",
7246
-      "path": "../Mediator/Mediator.csproj",
7247
-      "msbuildProject": "../Mediator/Mediator.csproj"
7147
+      "path": "../Backend.EFCore/Backend.Persistence.csproj",
7148
+      "msbuildProject": "../Backend.EFCore/Backend.Persistence.csproj"
7248 7149
     }
7249 7150
   },
7250 7151
   "projectFileDependencyGroups": {
7251 7152
     ".NETCoreApp,Version=v3.1": [
7252
-      "AutoMapper >= 10.1.1",
7253
-      "AutoMapper.Extensions.Microsoft.DependencyInjection >= 8.1.1",
7254
-      "Backend.Common >= 1.0.0",
7255
-      "MediatR.Extensions.Microsoft.DependencyInjection >= 7.0.0",
7256
-      "Mediator >= 1.0.0",
7257
-      "Microsoft.EntityFrameworkCore >= 5.0.13",
7258
-      "Microsoft.EntityFrameworkCore.Tools >= 5.0.13",
7153
+      "Backend.ApplicationCore >= 1.0.0",
7154
+      "Backend.Domain >= 1.0.0",
7155
+      "Backend.Infrastructure >= 1.0.0",
7156
+      "Backend.Persistence >= 1.0.0",
7259 7157
       "Microsoft.VisualStudio.Azure.Containers.Tools.Targets >= 1.11.1",
7260
-      "Pomelo.EntityFrameworkCore.MySql >= 5.0.0-alpha.2",
7261 7158
       "Swashbuckle.AspNetCore.Swagger >= 6.2.3",
7262 7159
       "Swashbuckle.AspNetCore.SwaggerGen >= 6.2.3",
7263 7160
       "Swashbuckle.AspNetCore.SwaggerUI >= 6.2.3"
@@ -7291,11 +7188,17 @@
7291 7188
         "netcoreapp3.1": {
7292 7189
           "targetAlias": "netcoreapp3.1",
7293 7190
           "projectReferences": {
7294
-            "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj": {
7295
-              "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj"
7191
+            "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj": {
7192
+              "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj"
7193
+            },
7194
+            "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Infrastructure.csproj": {
7195
+              "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Infrastructure.csproj"
7196
+            },
7197
+            "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\Backend.Persistence.csproj": {
7198
+              "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.EFCore\\Backend.Persistence.csproj"
7296 7199
             },
7297
-            "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj": {
7298
-              "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj"
7200
+            "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj": {
7201
+              "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.ApplicationCore.csproj"
7299 7202
             }
7300 7203
           }
7301 7204
         }
@@ -7310,36 +7213,10 @@
7310 7213
       "netcoreapp3.1": {
7311 7214
         "targetAlias": "netcoreapp3.1",
7312 7215
         "dependencies": {
7313
-          "AutoMapper": {
7314
-            "target": "Package",
7315
-            "version": "[10.1.1, )"
7316
-          },
7317
-          "AutoMapper.Extensions.Microsoft.DependencyInjection": {
7318
-            "target": "Package",
7319
-            "version": "[8.1.1, )"
7320
-          },
7321
-          "MediatR.Extensions.Microsoft.DependencyInjection": {
7322
-            "target": "Package",
7323
-            "version": "[7.0.0, )"
7324
-          },
7325
-          "Microsoft.EntityFrameworkCore": {
7326
-            "target": "Package",
7327
-            "version": "[5.0.13, )"
7328
-          },
7329
-          "Microsoft.EntityFrameworkCore.Tools": {
7330
-            "include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
7331
-            "suppressParent": "All",
7332
-            "target": "Package",
7333
-            "version": "[5.0.13, )"
7334
-          },
7335 7216
           "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": {
7336 7217
             "target": "Package",
7337 7218
             "version": "[1.11.1, )"
7338 7219
           },
7339
-          "Pomelo.EntityFrameworkCore.MySql": {
7340
-            "target": "Package",
7341
-            "version": "[5.0.0-alpha.2, )"
7342
-          },
7343 7220
           "Swashbuckle.AspNetCore.Swagger": {
7344 7221
             "target": "Package",
7345 7222
             "version": "[6.2.3, )"

+ 3
- 6
CatalogueCQRS/Backend.API/obj/project.nuget.cache Wyświetl plik

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "version": 2,
3
-  "dgSpecHash": "6Ve22KvRi66dmn7VFkf8a3eGTJdPLQn5+zWYlTYaOApmNK65tK3ZIwt4r5RfPsluDW6LTRgfXzO4/Bxiwra+vQ==",
3
+  "dgSpecHash": "TA9CcoqYfvWe+eaQZkCvv5HaAxQkt8hJGLXIdJejCYsg+Lk3GHZ846uREyjVeEYrMBYIx2+BEbjOSto9jqEiug==",
4 4
   "success": true,
5 5
   "projectFilePath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.API\\Backend.API.csproj",
6 6
   "expectedPackageFiles": [
@@ -9,7 +9,6 @@
9 9
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\bouncycastle.netcore\\1.8.3\\bouncycastle.netcore.1.8.3.nupkg.sha512",
10 10
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\entityframework\\6.1.0\\entityframework.6.1.0.nupkg.sha512",
11 11
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\google.protobuf\\3.11.4\\google.protobuf.3.11.4.nupkg.sha512",
12
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\humanizer.core\\2.8.26\\humanizer.core.2.8.26.nupkg.sha512",
13 12
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\k4os.compression.lz4\\1.1.11\\k4os.compression.lz4.1.1.11.nupkg.sha512",
14 13
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\k4os.compression.lz4.streams\\1.1.11\\k4os.compression.lz4.streams.1.1.11.nupkg.sha512",
15 14
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\k4os.hash.xxhash\\1.0.6\\k4os.hash.xxhash.1.0.6.nupkg.sha512",
@@ -26,14 +25,12 @@
26 25
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.entityframeworkcore\\5.0.13\\microsoft.entityframeworkcore.5.0.13.nupkg.sha512",
27 26
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\5.0.13\\microsoft.entityframeworkcore.abstractions.5.0.13.nupkg.sha512",
28 27
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\5.0.13\\microsoft.entityframeworkcore.analyzers.5.0.13.nupkg.sha512",
29
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.entityframeworkcore.design\\5.0.13\\microsoft.entityframeworkcore.design.5.0.13.nupkg.sha512",
30
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\5.0.13\\microsoft.entityframeworkcore.relational.5.0.13.nupkg.sha512",
31
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.entityframeworkcore.tools\\5.0.13\\microsoft.entityframeworkcore.tools.5.0.13.nupkg.sha512",
28
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\5.0.10\\microsoft.entityframeworkcore.relational.5.0.10.nupkg.sha512",
32 29
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\5.0.0\\microsoft.extensions.caching.abstractions.5.0.0.nupkg.sha512",
33 30
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.caching.memory\\5.0.0\\microsoft.extensions.caching.memory.5.0.0.nupkg.sha512",
34 31
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\6.0.0\\microsoft.extensions.configuration.abstractions.6.0.0.nupkg.sha512",
35 32
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\5.0.2\\microsoft.extensions.dependencyinjection.5.0.2.nupkg.sha512",
36
-    "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\5.0.0\\microsoft.extensions.dependencyinjection.abstractions.5.0.0.nupkg.sha512",
33
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\6.0.0\\microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512",
37 34
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.identity.core\\5.0.10\\microsoft.extensions.identity.core.5.0.10.nupkg.sha512",
38 35
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.identity.stores\\5.0.10\\microsoft.extensions.identity.stores.5.0.10.nupkg.sha512",
39 36
     "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\microsoft.extensions.logging\\5.0.0\\microsoft.extensions.logging.5.0.0.nupkg.sha512",

CatalogueCQRS/Backend.Common/Backend.Common.csproj → CatalogueCQRS/Backend.Common/Backend.Domain.csproj Wyświetl plik


+ 11
- 11
CatalogueCQRS/Backend.Common/Constants/ErrorsConstants.cs Wyświetl plik

@@ -1,19 +1,19 @@
1 1
 using System;
2 2
 using System.Runtime.Serialization;
3 3
 
4
-namespace Backend.Common
4
+namespace Backend.Domain
5 5
 {
6 6
     public class ErrorsConstants  
7 7
     {
8
-        public static string C_APPLICATION_DBCONTEXT_NULL_MSG = "ApplicationDBContext is null";
9
-        public static string C_REPO_MSG_ERROR = "Repository Error";
10
-        public static string C_SERVICE_MSG_ERROR = "Service Error";
11
-        public static string C_NOT_EXIST_MSG_ERROR = "Object Not exist";
12
-        public static string HTTP_ERROR_5XX = "Internal Error";
13
-        public static string HTTP_ERROR_4XX = "Bad request";
14
-        public static string C_REPO_MSG_ERROR_SAVE ="Save Change in database Error";
15
-        public static string C_REPO_MSG_ERROR_UPDATE = "Update object in database context Error";
16
-        public static string C_REPO_MSG_ERROR_ADD = "Add object in database context Error";
17
-        public static string C_REPO_MSG_ERROR_REMOVE = "Add object in database context Error";
8
+        public static string S_APPLICATION_DBCONTEXT_NULL_MSG = "ApplicationDBContext is null";
9
+        public static string S_REPO_MSG_ERROR = "Repository Error";
10
+        public static string S_SERVICE_MSG_ERROR = "Service Error";
11
+        public static string S_NOT_EXIST_MSG_ERROR = "Object Not exist";
12
+        public static string S_HTTP_ERROR_5XX = "Internal Error";
13
+        public static string S_HTTP_ERROR_4XX = "Bad request";
14
+        public static string S_REPO_MSG_ERROR_SAVE ="Save Change in database Error";
15
+        public static string S_REPO_MSG_ERROR_UPDATE = "Update object in database context Error";
16
+        public static string S_REPO_MSG_ERROR_ADD = "Add object in database context Error";
17
+        public static string S_REPO_MSG_ERROR_REMOVE = "Add object in database context Error";
18 18
     }
19 19
 }

CatalogueCQRS/Backend.Data/Domain/Commande.cs → CatalogueCQRS/Backend.Common/Entities/Commande.cs Wyświetl plik

@@ -2,7 +2,7 @@
2 2
 using System.Collections.Generic;
3 3
 using System.ComponentModel.DataAnnotations;
4 4
 
5
-namespace Backend.Data
5
+namespace Backend.Domain.Entities
6 6
 {
7 7
     public class Commande
8 8
     {

CatalogueCQRS/Backend.Data/Domain/LigneCommande.cs → CatalogueCQRS/Backend.Common/Entities/LigneCommande.cs Wyświetl plik

@@ -1,7 +1,7 @@
1 1
 using System;
2 2
 using System.ComponentModel.DataAnnotations;
3 3
 
4
-namespace Backend.Data
4
+namespace Backend.Domain.Entities
5 5
 {
6 6
     public class LigneCommande
7 7
     {

CatalogueCQRS/Backend.Data/Domain/Produit.cs → CatalogueCQRS/Backend.Common/Entities/Produit.cs Wyświetl plik

@@ -1,7 +1,7 @@
1 1
 using System;
2 2
 using System.Collections.Generic;
3 3
 
4
-namespace Backend.Data
4
+namespace Backend.Domain.Entities
5 5
 {
6 6
     public class Produit
7 7
     {

CatalogueCQRS/Backend.Data/Domain/Propriete.cs → CatalogueCQRS/Backend.Common/Entities/Propriete.cs Wyświetl plik

@@ -1,7 +1,7 @@
1 1
 using System;
2 2
 using System.ComponentModel.DataAnnotations;
3 3
 
4
-namespace Backend.Data
4
+namespace Backend.Domain.Entities
5 5
 {
6 6
     public class Propriete
7 7
     {

CatalogueCQRS/Backend.Data/Domain/TypePropriete.cs → CatalogueCQRS/Backend.Common/Entities/TypePropriete.cs Wyświetl plik

@@ -2,7 +2,7 @@
2 2
 using System.Collections.Generic;
3 3
 using System.ComponentModel.DataAnnotations;
4 4
 
5
-namespace Backend.Data
5
+namespace Backend.Domain.Entities
6 6
 {
7 7
     public class TypePropriete
8 8
     {

BIN
CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Common.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Common.pdb Wyświetl plik


+ 23
- 0
CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Domain.deps.json Wyświetl plik

@@ -0,0 +1,23 @@
1
+{
2
+  "runtimeTarget": {
3
+    "name": ".NETCoreApp,Version=v3.1",
4
+    "signature": ""
5
+  },
6
+  "compilationOptions": {},
7
+  "targets": {
8
+    ".NETCoreApp,Version=v3.1": {
9
+      "Backend.Domain/1.0.0": {
10
+        "runtime": {
11
+          "Backend.Domain.dll": {}
12
+        }
13
+      }
14
+    }
15
+  },
16
+  "libraries": {
17
+    "Backend.Domain/1.0.0": {
18
+      "type": "project",
19
+      "serviceable": false,
20
+      "sha512": ""
21
+    }
22
+  }
23
+}

BIN
CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Domain.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.MSTest/bin/Debug/netcoreapp3.1/Backend.Models.pdb → CatalogueCQRS/Backend.Common/bin/Debug/netcoreapp3.1/Backend.Domain.pdb Wyświetl plik


+ 63
- 0
CatalogueCQRS/Backend.Common/obj/Backend.Domain.csproj.nuget.dgspec.json Wyświetl plik

@@ -0,0 +1,63 @@
1
+{
2
+  "format": 1,
3
+  "restore": {
4
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj": {}
5
+  },
6
+  "projects": {
7
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj": {
8
+      "version": "1.0.0",
9
+      "restore": {
10
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj",
11
+        "projectName": "Backend.Domain",
12
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj",
13
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
14
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\obj\\",
15
+        "projectStyle": "PackageReference",
16
+        "configFilePaths": [
17
+          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
18
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19
+        ],
20
+        "originalTargetFrameworks": [
21
+          "netcoreapp3.1"
22
+        ],
23
+        "sources": {
24
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25
+          "https://api.nuget.org/v3/index.json": {},
26
+          "https://packagesource": {}
27
+        },
28
+        "frameworks": {
29
+          "netcoreapp3.1": {
30
+            "targetAlias": "netcoreapp3.1",
31
+            "projectReferences": {}
32
+          }
33
+        },
34
+        "warningProperties": {
35
+          "warnAsError": [
36
+            "NU1605"
37
+          ]
38
+        }
39
+      },
40
+      "frameworks": {
41
+        "netcoreapp3.1": {
42
+          "targetAlias": "netcoreapp3.1",
43
+          "imports": [
44
+            "net461",
45
+            "net462",
46
+            "net47",
47
+            "net471",
48
+            "net472",
49
+            "net48"
50
+          ],
51
+          "assetTargetFallback": true,
52
+          "warn": true,
53
+          "frameworkReferences": {
54
+            "Microsoft.NETCore.App": {
55
+              "privateAssets": "all"
56
+            }
57
+          },
58
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
59
+        }
60
+      }
61
+    }
62
+  }
63
+}

+ 18
- 0
CatalogueCQRS/Backend.Common/obj/Backend.Domain.csproj.nuget.g.props Wyświetl plik

@@ -0,0 +1,18 @@
1
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4
+    <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5
+    <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6
+    <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7
+    <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8
+    <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\</NuGetPackageFolders>
9
+    <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.1</NuGetToolVersion>
11
+  </PropertyGroup>
12
+  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13
+    <SourceRoot Include="C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\" />
14
+  </ItemGroup>
15
+  <PropertyGroup>
16
+    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
17
+  </PropertyGroup>
18
+</Project>

+ 6
- 0
CatalogueCQRS/Backend.Common/obj/Backend.Domain.csproj.nuget.g.targets Wyświetl plik

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup>
4
+    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5
+  </PropertyGroup>
6
+</Project>

BIN
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.csproj.AssemblyReference.cache Wyświetl plik


+ 9
- 0
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.csproj.FileListAbsolute.txt Wyświetl plik

@@ -8,3 +8,12 @@ C:\Users\Alex ONDOA BALEGNAMA\source\repos\CatalogueCQRS\Backend.Common\obj\Debu
8 8
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.dll
9 9
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.pdb
10 10
 C:\Users\Alex ONDOA BALEGNAMA\source\repos\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.csproj.AssemblyReference.cache
11
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\bin\Debug\netcoreapp3.1\Backend.Common.deps.json
12
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\bin\Debug\netcoreapp3.1\Backend.Common.dll
13
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\bin\Debug\netcoreapp3.1\Backend.Common.pdb
14
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.GeneratedMSBuildEditorConfig.editorconfig
15
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.AssemblyInfoInputs.cache
16
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.AssemblyInfo.cs
17
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.csproj.CoreCompileInputs.cache
18
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.dll
19
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Common.pdb

BIN
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Common.pdb Wyświetl plik


+ 23
- 0
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.AssemblyInfo.cs Wyświetl plik

@@ -0,0 +1,23 @@
1
+//------------------------------------------------------------------------------
2
+// <auto-generated>
3
+//     Ce code a été généré par un outil.
4
+//     Version du runtime :4.0.30319.42000
5
+//
6
+//     Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
7
+//     le code est régénéré.
8
+// </auto-generated>
9
+//------------------------------------------------------------------------------
10
+
11
+using System;
12
+using System.Reflection;
13
+
14
+[assembly: System.Reflection.AssemblyCompanyAttribute("Backend.Domain")]
15
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
17
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
18
+[assembly: System.Reflection.AssemblyProductAttribute("Backend.Domain")]
19
+[assembly: System.Reflection.AssemblyTitleAttribute("Backend.Domain")]
20
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21
+
22
+// Généré par la classe MSBuild WriteCodeFragment.
23
+

+ 1
- 0
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.AssemblyInfoInputs.cache Wyświetl plik

@@ -0,0 +1 @@
1
+91e6db1f71a1d13b8236fb3f6239e9a29361b8c7

+ 3
- 0
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.GeneratedMSBuildEditorConfig.editorconfig Wyświetl plik

@@ -0,0 +1,3 @@
1
+is_global = true
2
+build_property.RootNamespace = Backend.Domain
3
+build_property.ProjectDir = C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\

BIN
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.assets.cache Wyświetl plik


BIN
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.csproj.AssemblyReference.cache Wyświetl plik


+ 1
- 0
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.csproj.CoreCompileInputs.cache Wyświetl plik

@@ -0,0 +1 @@
1
+352f687bfebd19e8697cc1695f9637327b4e1f64

+ 9
- 0
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.csproj.FileListAbsolute.txt Wyświetl plik

@@ -0,0 +1,9 @@
1
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\bin\Debug\netcoreapp3.1\Backend.Domain.deps.json
2
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\bin\Debug\netcoreapp3.1\Backend.Domain.dll
3
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\bin\Debug\netcoreapp3.1\Backend.Domain.pdb
4
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Domain.GeneratedMSBuildEditorConfig.editorconfig
5
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Domain.AssemblyInfoInputs.cache
6
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Domain.AssemblyInfo.cs
7
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Domain.csproj.CoreCompileInputs.cache
8
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Domain.dll
9
+C:\Users\Alex ONDOA BALEGNAMA\source\repos\Backend\CatalogueCQRS\Backend.Common\obj\Debug\netcoreapp3.1\Backend.Domain.pdb

BIN
CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Common.pdb → CatalogueCQRS/Backend.Common/obj/Debug/netcoreapp3.1/Backend.Domain.pdb Wyświetl plik


+ 3
- 3
CatalogueCQRS/Backend.Common/obj/project.assets.json Wyświetl plik

@@ -13,9 +13,9 @@
13 13
   "project": {
14 14
     "version": "1.0.0",
15 15
     "restore": {
16
-      "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj",
17
-      "projectName": "Backend.Common",
18
-      "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj",
16
+      "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj",
17
+      "projectName": "Backend.Domain",
18
+      "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj",
19 19
       "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
20 20
       "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\obj\\",
21 21
       "projectStyle": "PackageReference",

+ 2
- 2
CatalogueCQRS/Backend.Common/obj/project.nuget.cache Wyświetl plik

@@ -1,8 +1,8 @@
1 1
 {
2 2
   "version": 2,
3
-  "dgSpecHash": "QwfqRCs1G28hV3IeXxCeoUJMYhHmopAtvMO6Tjte/MTWuxHgXkkuyHNffFrG+RJrc+gY1Gk2f402emwzIwuf2Q==",
3
+  "dgSpecHash": "0E2rbsa3jrsRUin7LkHRchl+TN3HVlPCMjMBN+tUDqhexevNpk/HCJSsMDSoAxPLTMm8VBSuhvGnnHDhXM2dMw==",
4 4
   "success": true,
5
-  "projectFilePath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj",
5
+  "projectFilePath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Domain.csproj",
6 6
   "expectedPackageFiles": [],
7 7
   "logs": []
8 8
 }

+ 12
- 0
CatalogueCQRS/Backend.Data/Backend.Infrastructure.csproj Wyświetl plik

@@ -0,0 +1,12 @@
1
+<Project Sdk="Microsoft.NET.Sdk">
2
+
3
+  <PropertyGroup>
4
+    <TargetFramework>netcoreapp3.1</TargetFramework>
5
+  </PropertyGroup>
6
+
7
+  <ItemGroup>
8
+    <ProjectReference Include="..\Backend.Common\Backend.Domain.csproj" />
9
+    <ProjectReference Include="..\Backend.Services\Backend.ApplicationCore.csproj" />
10
+  </ItemGroup>
11
+
12
+</Project>

CatalogueCQRS/Backend.Data/Backend.Data.csproj.user → CatalogueCQRS/Backend.Data/Backend.Infrastructure.csproj.user Wyświetl plik


+ 4
- 7
CatalogueCQRS/Backend.Data/Repositories/CommandeRepository.cs Wyświetl plik

@@ -1,11 +1,8 @@
1
-using Backend.Data.Interfaces;
2
-using System;
3
-using System.Collections.Generic;
4
-using System.Text;
5
-using System.Threading;
6
-using System.Threading.Tasks;
1
+
2
+using Backend.ApplicationCore.Interfaces.IRepositories;
3
+using Backend.Domain.Entities;
7 4
 
8
-namespace Backend.Data.Repositories
5
+namespace Backend.Infrastructure.Repositories
9 6
 {
10 7
     public class CommandeRepository : GenericRepository<Commande>, ICommandeRepository
11 8
     {

+ 4
- 3
CatalogueCQRS/Backend.Data/Repositories/GenericRepository.cs Wyświetl plik

@@ -1,4 +1,4 @@
1
-using Backend.Data.Interfaces;
1
+using Backend.ApplicationCore.Interfaces.IRepositories;
2 2
 using Microsoft.EntityFrameworkCore;
3 3
 using Microsoft.EntityFrameworkCore.ChangeTracking;
4 4
 using System;
@@ -8,7 +8,7 @@ using System.Text;
8 8
 using System.Threading;
9 9
 using System.Threading.Tasks;
10 10
 
11
-namespace Backend.Data.Repositories
11
+namespace Backend.Infrastructure.Repositories
12 12
 {
13 13
     public class GenericRepository<TEntity> : IDisposable, IGenericRepository<TEntity> where TEntity : class
14 14
     {
@@ -80,6 +80,7 @@ namespace Backend.Data.Repositories
80 80
            _context.Entry(ExistEntity).CurrentValues.SetValues(entity);
81 81
             return _context.Entry(entity);
82 82
         }
83
+     
83 84
 
84 85
         /// <summary>
85 86
         /// DeleteAsync delete en antity by Id
@@ -127,6 +128,6 @@ namespace Backend.Data.Repositories
127 128
             _context?.Dispose();
128 129
         }
129 130
 
130
-       
131
+        
131 132
     }
132 133
 }

+ 4
- 2
CatalogueCQRS/Backend.Data/Repositories/LigneCommandeRepository.cs Wyświetl plik

@@ -1,9 +1,11 @@
1
-using Backend.Data.Interfaces;
1
+
2
+using Backend.ApplicationCore.Interfaces.IRepositories;
3
+using Backend.Domain.Entities;
2 4
 using System;
3 5
 using System.Collections.Generic;
4 6
 using System.Linq;
5 7
 
6
-namespace Backend.Data.Repositories
8
+namespace Backend.Infrastructure.Repositories
7 9
 {
8 10
     public class LigneCommandeRepository : GenericRepository<LigneCommande>, ILigneCommandeRepository
9 11
     {

+ 5
- 7
CatalogueCQRS/Backend.Data/Repositories/ProduitRepository.cs Wyświetl plik

@@ -1,11 +1,9 @@
1
-using Backend.Data.Interfaces;
2
-using System;
3
-using System.Collections.Generic;
4
-using System.Text;
5
-using System.Threading;
6
-using System.Threading.Tasks;
1
+
7 2
 
8
-namespace Backend.Data.Repositories
3
+using Backend.ApplicationCore.Interfaces.IRepositories;
4
+using Backend.Domain.Entities;
5
+
6
+namespace Backend.Infrastructure.Repositories
9 7
 {
10 8
     public class ProduitRepository : GenericRepository<Produit>, IProduitRepository
11 9
     {

+ 5
- 7
CatalogueCQRS/Backend.Data/Repositories/ProprieteRepository.cs Wyświetl plik

@@ -1,11 +1,9 @@
1
-using Backend.Data.Interfaces;
2
-using System;
3
-using System.Collections.Generic;
4
-using System.Text;
5
-using System.Threading;
6
-using System.Threading.Tasks;
1
+
7 2
 
8
-namespace Backend.Data.Repositories
3
+using Backend.ApplicationCore.Interfaces.IRepositories;
4
+using Backend.Domain.Entities;
5
+
6
+namespace Backend.Infrastructure.Repositories
9 7
 {
10 8
     public class ProprieteRepository : GenericRepository<Propriete>, IProprieteRepository
11 9
     {

+ 3
- 7
CatalogueCQRS/Backend.Data/Repositories/TypeProprieteRepository.cs Wyświetl plik

@@ -1,11 +1,7 @@
1
-using Backend.Data.Interfaces;
2
-using System;
3
-using System.Collections.Generic;
4
-using System.Text;
5
-using System.Threading;
6
-using System.Threading.Tasks;
1
+using Backend.ApplicationCore.Interfaces.IRepositories;
2
+using Backend.Domain.Entities;
7 3
 
8
-namespace Backend.Data.Repositories
4
+namespace Backend.Infrastructure.Repositories
9 5
 {
10 6
     public class TypeProprieteRepository : GenericRepository<TypePropriete>, ITypeProprieteRepository
11 7
     {

BIN
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.ApplicationCore.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Data.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Data.pdb Wyświetl plik


BIN
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Domain.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.MSTest/bin/Debug/netcoreapp3.1/Backend.Common.pdb → CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Domain.pdb Wyświetl plik


+ 381
- 0
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Infrastructure.deps.json Wyświetl plik

@@ -0,0 +1,381 @@
1
+{
2
+  "runtimeTarget": {
3
+    "name": ".NETCoreApp,Version=v3.1",
4
+    "signature": ""
5
+  },
6
+  "compilationOptions": {},
7
+  "targets": {
8
+    ".NETCoreApp,Version=v3.1": {
9
+      "Backend.Infrastructure/1.0.0": {
10
+        "dependencies": {
11
+          "Backend.ApplicationCore": "1.0.0",
12
+          "Backend.Domain": "1.0.0"
13
+        },
14
+        "runtime": {
15
+          "Backend.Infrastructure.dll": {}
16
+        }
17
+      },
18
+      "AutoMapper/10.1.1": {
19
+        "dependencies": {
20
+          "Microsoft.CSharp": "4.7.0",
21
+          "System.Reflection.Emit": "4.7.0"
22
+        },
23
+        "runtime": {
24
+          "lib/netstandard2.0/AutoMapper.dll": {
25
+            "assemblyVersion": "10.0.0.0",
26
+            "fileVersion": "10.1.1.0"
27
+          }
28
+        }
29
+      },
30
+      "AutoMapper.Extensions.Microsoft.DependencyInjection/8.1.1": {
31
+        "dependencies": {
32
+          "AutoMapper": "10.1.1",
33
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
34
+          "Microsoft.Extensions.Options": "5.0.0"
35
+        },
36
+        "runtime": {
37
+          "lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {
38
+            "assemblyVersion": "8.0.0.0",
39
+            "fileVersion": "8.1.1.0"
40
+          }
41
+        }
42
+      },
43
+      "MediatR/7.0.0": {
44
+        "runtime": {
45
+          "lib/netstandard2.0/MediatR.dll": {
46
+            "assemblyVersion": "7.0.0.0",
47
+            "fileVersion": "7.0.0.0"
48
+          }
49
+        }
50
+      },
51
+      "MediatR.Extensions.Microsoft.DependencyInjection/7.0.0": {
52
+        "dependencies": {
53
+          "MediatR": "7.0.0",
54
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0"
55
+        },
56
+        "runtime": {
57
+          "lib/netstandard2.0/MediatR.Extensions.Microsoft.DependencyInjection.dll": {
58
+            "assemblyVersion": "7.0.0.0",
59
+            "fileVersion": "7.0.0.0"
60
+          }
61
+        }
62
+      },
63
+      "Microsoft.CSharp/4.7.0": {},
64
+      "Microsoft.EntityFrameworkCore/5.0.13": {
65
+        "dependencies": {
66
+          "Microsoft.EntityFrameworkCore.Abstractions": "5.0.13",
67
+          "Microsoft.EntityFrameworkCore.Analyzers": "5.0.13",
68
+          "Microsoft.Extensions.Caching.Memory": "5.0.0",
69
+          "Microsoft.Extensions.DependencyInjection": "5.0.2",
70
+          "Microsoft.Extensions.Logging": "5.0.0",
71
+          "System.Collections.Immutable": "5.0.0",
72
+          "System.ComponentModel.Annotations": "5.0.0",
73
+          "System.Diagnostics.DiagnosticSource": "5.0.1"
74
+        },
75
+        "runtime": {
76
+          "lib/netstandard2.1/Microsoft.EntityFrameworkCore.dll": {
77
+            "assemblyVersion": "5.0.13.0",
78
+            "fileVersion": "5.0.1321.56013"
79
+          }
80
+        }
81
+      },
82
+      "Microsoft.EntityFrameworkCore.Abstractions/5.0.13": {
83
+        "runtime": {
84
+          "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Abstractions.dll": {
85
+            "assemblyVersion": "5.0.13.0",
86
+            "fileVersion": "5.0.1321.56013"
87
+          }
88
+        }
89
+      },
90
+      "Microsoft.EntityFrameworkCore.Analyzers/5.0.13": {},
91
+      "Microsoft.Extensions.Caching.Abstractions/5.0.0": {
92
+        "dependencies": {
93
+          "Microsoft.Extensions.Primitives": "5.0.0"
94
+        },
95
+        "runtime": {
96
+          "lib/netstandard2.0/Microsoft.Extensions.Caching.Abstractions.dll": {
97
+            "assemblyVersion": "5.0.0.0",
98
+            "fileVersion": "5.0.20.51904"
99
+          }
100
+        }
101
+      },
102
+      "Microsoft.Extensions.Caching.Memory/5.0.0": {
103
+        "dependencies": {
104
+          "Microsoft.Extensions.Caching.Abstractions": "5.0.0",
105
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
106
+          "Microsoft.Extensions.Logging.Abstractions": "5.0.0",
107
+          "Microsoft.Extensions.Options": "5.0.0",
108
+          "Microsoft.Extensions.Primitives": "5.0.0"
109
+        },
110
+        "runtime": {
111
+          "lib/netstandard2.0/Microsoft.Extensions.Caching.Memory.dll": {
112
+            "assemblyVersion": "5.0.0.0",
113
+            "fileVersion": "5.0.20.51904"
114
+          }
115
+        }
116
+      },
117
+      "Microsoft.Extensions.DependencyInjection/5.0.2": {
118
+        "dependencies": {
119
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0"
120
+        },
121
+        "runtime": {
122
+          "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll": {
123
+            "assemblyVersion": "5.0.0.1",
124
+            "fileVersion": "5.0.821.31504"
125
+          }
126
+        }
127
+      },
128
+      "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0": {
129
+        "runtime": {
130
+          "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
131
+            "assemblyVersion": "5.0.0.0",
132
+            "fileVersion": "5.0.20.51904"
133
+          }
134
+        }
135
+      },
136
+      "Microsoft.Extensions.Logging/5.0.0": {
137
+        "dependencies": {
138
+          "Microsoft.Extensions.DependencyInjection": "5.0.2",
139
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
140
+          "Microsoft.Extensions.Logging.Abstractions": "5.0.0",
141
+          "Microsoft.Extensions.Options": "5.0.0",
142
+          "System.Diagnostics.DiagnosticSource": "5.0.1"
143
+        },
144
+        "runtime": {
145
+          "lib/netstandard2.1/Microsoft.Extensions.Logging.dll": {
146
+            "assemblyVersion": "5.0.0.0",
147
+            "fileVersion": "5.0.20.51904"
148
+          }
149
+        }
150
+      },
151
+      "Microsoft.Extensions.Logging.Abstractions/5.0.0": {
152
+        "runtime": {
153
+          "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {
154
+            "assemblyVersion": "5.0.0.0",
155
+            "fileVersion": "5.0.20.51904"
156
+          }
157
+        }
158
+      },
159
+      "Microsoft.Extensions.Options/5.0.0": {
160
+        "dependencies": {
161
+          "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0",
162
+          "Microsoft.Extensions.Primitives": "5.0.0"
163
+        },
164
+        "runtime": {
165
+          "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {
166
+            "assemblyVersion": "5.0.0.0",
167
+            "fileVersion": "5.0.20.51904"
168
+          }
169
+        }
170
+      },
171
+      "Microsoft.Extensions.Primitives/5.0.0": {
172
+        "runtime": {
173
+          "lib/netcoreapp3.0/Microsoft.Extensions.Primitives.dll": {
174
+            "assemblyVersion": "5.0.0.0",
175
+            "fileVersion": "5.0.20.51904"
176
+          }
177
+        }
178
+      },
179
+      "System.Collections.Immutable/5.0.0": {
180
+        "runtime": {
181
+          "lib/netstandard2.0/System.Collections.Immutable.dll": {
182
+            "assemblyVersion": "5.0.0.0",
183
+            "fileVersion": "5.0.20.51904"
184
+          }
185
+        }
186
+      },
187
+      "System.ComponentModel.Annotations/5.0.0": {
188
+        "runtime": {
189
+          "lib/netstandard2.1/System.ComponentModel.Annotations.dll": {
190
+            "assemblyVersion": "5.0.0.0",
191
+            "fileVersion": "5.0.20.51904"
192
+          }
193
+        }
194
+      },
195
+      "System.Diagnostics.DiagnosticSource/5.0.1": {
196
+        "runtime": {
197
+          "lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll": {
198
+            "assemblyVersion": "5.0.0.0",
199
+            "fileVersion": "5.0.220.61120"
200
+          }
201
+        }
202
+      },
203
+      "System.Reflection.Emit/4.7.0": {},
204
+      "Backend.ApplicationCore/1.0.0": {
205
+        "dependencies": {
206
+          "AutoMapper": "10.1.1",
207
+          "AutoMapper.Extensions.Microsoft.DependencyInjection": "8.1.1",
208
+          "Backend.Domain": "1.0.0",
209
+          "MediatR": "7.0.0",
210
+          "MediatR.Extensions.Microsoft.DependencyInjection": "7.0.0",
211
+          "Microsoft.EntityFrameworkCore": "5.0.13"
212
+        },
213
+        "runtime": {
214
+          "Backend.ApplicationCore.dll": {}
215
+        }
216
+      },
217
+      "Backend.Domain/1.0.0": {
218
+        "runtime": {
219
+          "Backend.Domain.dll": {}
220
+        }
221
+      }
222
+    }
223
+  },
224
+  "libraries": {
225
+    "Backend.Infrastructure/1.0.0": {
226
+      "type": "project",
227
+      "serviceable": false,
228
+      "sha512": ""
229
+    },
230
+    "AutoMapper/10.1.1": {
231
+      "type": "package",
232
+      "serviceable": true,
233
+      "sha512": "sha512-uMgbqOdu9ZG5cIOty0C85hzzayBH2i9BthnS5FlMqKtMSHDv4ts81a2jS1VFaDBVhlBeIqJ/kQKjQY95BZde9w==",
234
+      "path": "automapper/10.1.1",
235
+      "hashPath": "automapper.10.1.1.nupkg.sha512"
236
+    },
237
+    "AutoMapper.Extensions.Microsoft.DependencyInjection/8.1.1": {
238
+      "type": "package",
239
+      "serviceable": true,
240
+      "sha512": "sha512-xSWoVzOipuDU4PeZcUfaZQ+xqXU8QmGv5jrdlxt3MYm9xaOmrefqcfzGQ3SQ+D+8wfBa/ZwSuL0qKOVj080inA==",
241
+      "path": "automapper.extensions.microsoft.dependencyinjection/8.1.1",
242
+      "hashPath": "automapper.extensions.microsoft.dependencyinjection.8.1.1.nupkg.sha512"
243
+    },
244
+    "MediatR/7.0.0": {
245
+      "type": "package",
246
+      "serviceable": true,
247
+      "sha512": "sha512-sgfHxkBsmMlHOD564SnLqTvSbAuGlFiZfc6ybxBSI1wYV/2u+Y5TXtFoIhCISFg5/s/6aMvB338QC2JseHsjTA==",
248
+      "path": "mediatr/7.0.0",
249
+      "hashPath": "mediatr.7.0.0.nupkg.sha512"
250
+    },
251
+    "MediatR.Extensions.Microsoft.DependencyInjection/7.0.0": {
252
+      "type": "package",
253
+      "serviceable": true,
254
+      "sha512": "sha512-DRf8jBnjBg84da1L1L0YmwqkhCV+UJTg7bTBHOhleWrLfrtSK5h5aNeE1HOofs1Afisq03B6H2C10NmS47gmqA==",
255
+      "path": "mediatr.extensions.microsoft.dependencyinjection/7.0.0",
256
+      "hashPath": "mediatr.extensions.microsoft.dependencyinjection.7.0.0.nupkg.sha512"
257
+    },
258
+    "Microsoft.CSharp/4.7.0": {
259
+      "type": "package",
260
+      "serviceable": true,
261
+      "sha512": "sha512-pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==",
262
+      "path": "microsoft.csharp/4.7.0",
263
+      "hashPath": "microsoft.csharp.4.7.0.nupkg.sha512"
264
+    },
265
+    "Microsoft.EntityFrameworkCore/5.0.13": {
266
+      "type": "package",
267
+      "serviceable": true,
268
+      "sha512": "sha512-Q5dVSbK5Id01xuAvm2xzrzEUNgO0fFD8mD/qFkD2F4Q23rs5YnrHH+/Wr9PAGNLdKqYWmkB0yTxKBL/0nLgr3g==",
269
+      "path": "microsoft.entityframeworkcore/5.0.13",
270
+      "hashPath": "microsoft.entityframeworkcore.5.0.13.nupkg.sha512"
271
+    },
272
+    "Microsoft.EntityFrameworkCore.Abstractions/5.0.13": {
273
+      "type": "package",
274
+      "serviceable": true,
275
+      "sha512": "sha512-TdnEXtDpm3o9s6RzUX0Mjgfgms4BD04uyvyxM9Xg8tQPOqqh7ZO6fWy+xJTj+wTcYuY5pYSkfPNGvtJ5FRmqWQ==",
276
+      "path": "microsoft.entityframeworkcore.abstractions/5.0.13",
277
+      "hashPath": "microsoft.entityframeworkcore.abstractions.5.0.13.nupkg.sha512"
278
+    },
279
+    "Microsoft.EntityFrameworkCore.Analyzers/5.0.13": {
280
+      "type": "package",
281
+      "serviceable": true,
282
+      "sha512": "sha512-torTg+dQC/vOlFI5FZsRmOAA5pKtr8cJNJ5SWsl0RVYmhb5I7s/V3T1NsIzSqJTYzGBssHl5mFbiBODeBdQpnQ==",
283
+      "path": "microsoft.entityframeworkcore.analyzers/5.0.13",
284
+      "hashPath": "microsoft.entityframeworkcore.analyzers.5.0.13.nupkg.sha512"
285
+    },
286
+    "Microsoft.Extensions.Caching.Abstractions/5.0.0": {
287
+      "type": "package",
288
+      "serviceable": true,
289
+      "sha512": "sha512-bu8As90/SBAouMZ6fJ+qRNo1X+KgHGrVueFhhYi+E5WqEhcnp2HoWRFnMzXQ6g4RdZbvPowFerSbKNH4Dtg5yg==",
290
+      "path": "microsoft.extensions.caching.abstractions/5.0.0",
291
+      "hashPath": "microsoft.extensions.caching.abstractions.5.0.0.nupkg.sha512"
292
+    },
293
+    "Microsoft.Extensions.Caching.Memory/5.0.0": {
294
+      "type": "package",
295
+      "serviceable": true,
296
+      "sha512": "sha512-/1qPCleFOkJe0O+xmFqCNLFYQZTJz965sVw8CUB/BQgsApBwzAUsL2BUkDvQW+geRUVTXUS9zLa0pBjC2VJ1gA==",
297
+      "path": "microsoft.extensions.caching.memory/5.0.0",
298
+      "hashPath": "microsoft.extensions.caching.memory.5.0.0.nupkg.sha512"
299
+    },
300
+    "Microsoft.Extensions.DependencyInjection/5.0.2": {
301
+      "type": "package",
302
+      "serviceable": true,
303
+      "sha512": "sha512-xzFW00AZEvOXM1OX+0+AYH5op/Hf3u//e6wszBd/rK72sypD+jx5CtsHxM4BVuFBEs8SajfO4QzSJtrQaHDr4A==",
304
+      "path": "microsoft.extensions.dependencyinjection/5.0.2",
305
+      "hashPath": "microsoft.extensions.dependencyinjection.5.0.2.nupkg.sha512"
306
+    },
307
+    "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0": {
308
+      "type": "package",
309
+      "serviceable": true,
310
+      "sha512": "sha512-ORj7Zh81gC69TyvmcUm9tSzytcy8AVousi+IVRAI8nLieQjOFryRusSFh7+aLk16FN9pQNqJAiMd7BTKINK0kA==",
311
+      "path": "microsoft.extensions.dependencyinjection.abstractions/5.0.0",
312
+      "hashPath": "microsoft.extensions.dependencyinjection.abstractions.5.0.0.nupkg.sha512"
313
+    },
314
+    "Microsoft.Extensions.Logging/5.0.0": {
315
+      "type": "package",
316
+      "serviceable": true,
317
+      "sha512": "sha512-MgOwK6tPzB6YNH21wssJcw/2MKwee8b2gI7SllYfn6rvTpIrVvVS5HAjSU2vqSku1fwqRvWP0MdIi14qjd93Aw==",
318
+      "path": "microsoft.extensions.logging/5.0.0",
319
+      "hashPath": "microsoft.extensions.logging.5.0.0.nupkg.sha512"
320
+    },
321
+    "Microsoft.Extensions.Logging.Abstractions/5.0.0": {
322
+      "type": "package",
323
+      "serviceable": true,
324
+      "sha512": "sha512-NxP6ahFcBnnSfwNBi2KH2Oz8Xl5Sm2krjId/jRR3I7teFphwiUoUeZPwTNA21EX+5PtjqmyAvKaOeBXcJjcH/w==",
325
+      "path": "microsoft.extensions.logging.abstractions/5.0.0",
326
+      "hashPath": "microsoft.extensions.logging.abstractions.5.0.0.nupkg.sha512"
327
+    },
328
+    "Microsoft.Extensions.Options/5.0.0": {
329
+      "type": "package",
330
+      "serviceable": true,
331
+      "sha512": "sha512-CBvR92TCJ5uBIdd9/HzDSrxYak+0W/3+yxrNg8Qm6Bmrkh5L+nu6m3WeazQehcZ5q1/6dDA7J5YdQjim0165zg==",
332
+      "path": "microsoft.extensions.options/5.0.0",
333
+      "hashPath": "microsoft.extensions.options.5.0.0.nupkg.sha512"
334
+    },
335
+    "Microsoft.Extensions.Primitives/5.0.0": {
336
+      "type": "package",
337
+      "serviceable": true,
338
+      "sha512": "sha512-cI/VWn9G1fghXrNDagX9nYaaB/nokkZn0HYAawGaELQrl8InSezfe9OnfPZLcJq3esXxygh3hkq2c3qoV3SDyQ==",
339
+      "path": "microsoft.extensions.primitives/5.0.0",
340
+      "hashPath": "microsoft.extensions.primitives.5.0.0.nupkg.sha512"
341
+    },
342
+    "System.Collections.Immutable/5.0.0": {
343
+      "type": "package",
344
+      "serviceable": true,
345
+      "sha512": "sha512-FXkLXiK0sVVewcso0imKQoOxjoPAj42R8HtjjbSjVPAzwDfzoyoznWxgA3c38LDbN9SJux1xXoXYAhz98j7r2g==",
346
+      "path": "system.collections.immutable/5.0.0",
347
+      "hashPath": "system.collections.immutable.5.0.0.nupkg.sha512"
348
+    },
349
+    "System.ComponentModel.Annotations/5.0.0": {
350
+      "type": "package",
351
+      "serviceable": true,
352
+      "sha512": "sha512-dMkqfy2el8A8/I76n2Hi1oBFEbG1SfxD2l5nhwXV3XjlnOmwxJlQbYpJH4W51odnU9sARCSAgv7S3CyAFMkpYg==",
353
+      "path": "system.componentmodel.annotations/5.0.0",
354
+      "hashPath": "system.componentmodel.annotations.5.0.0.nupkg.sha512"
355
+    },
356
+    "System.Diagnostics.DiagnosticSource/5.0.1": {
357
+      "type": "package",
358
+      "serviceable": true,
359
+      "sha512": "sha512-uXQEYqav2V3zP6OwkOKtLv+qIi6z3m1hsGyKwXX7ZA7htT4shoVccGxnJ9kVRFPNAsi1ArZTq2oh7WOto6GbkQ==",
360
+      "path": "system.diagnostics.diagnosticsource/5.0.1",
361
+      "hashPath": "system.diagnostics.diagnosticsource.5.0.1.nupkg.sha512"
362
+    },
363
+    "System.Reflection.Emit/4.7.0": {
364
+      "type": "package",
365
+      "serviceable": true,
366
+      "sha512": "sha512-VR4kk8XLKebQ4MZuKuIni/7oh+QGFmZW3qORd1GvBq/8026OpW501SzT/oypwiQl4TvT8ErnReh/NzY9u+C6wQ==",
367
+      "path": "system.reflection.emit/4.7.0",
368
+      "hashPath": "system.reflection.emit.4.7.0.nupkg.sha512"
369
+    },
370
+    "Backend.ApplicationCore/1.0.0": {
371
+      "type": "project",
372
+      "serviceable": false,
373
+      "sha512": ""
374
+    },
375
+    "Backend.Domain/1.0.0": {
376
+      "type": "project",
377
+      "serviceable": false,
378
+      "sha512": ""
379
+    }
380
+  }
381
+}

BIN
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Infrastructure.dll Wyświetl plik


BIN
CatalogueCQRS/Backend.Data/bin/Debug/netcoreapp3.1/Backend.Infrastructure.pdb Wyświetl plik


+ 97
- 0
CatalogueCQRS/Backend.Data/obj/Backend.ApplicationCore.csproj.nuget.dgspec.json Wyświetl plik

@@ -0,0 +1,97 @@
1
+{
2
+  "format": 1,
3
+  "restore": {
4
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.ApplicationCore.csproj": {}
5
+  },
6
+  "projects": {
7
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.ApplicationCore.csproj": {
8
+      "version": "1.0.0",
9
+      "restore": {
10
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.ApplicationCore.csproj",
11
+        "projectName": "Backend.ApplicationCore",
12
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.ApplicationCore.csproj",
13
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
14
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\obj\\",
15
+        "projectStyle": "PackageReference",
16
+        "configFilePaths": [
17
+          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
18
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19
+        ],
20
+        "originalTargetFrameworks": [
21
+          "netcoreapp3.1"
22
+        ],
23
+        "sources": {
24
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25
+          "https://api.nuget.org/v3/index.json": {},
26
+          "https://packagesource": {}
27
+        },
28
+        "frameworks": {
29
+          "netcoreapp3.1": {
30
+            "targetAlias": "netcoreapp3.1",
31
+            "projectReferences": {}
32
+          }
33
+        },
34
+        "warningProperties": {
35
+          "warnAsError": [
36
+            "NU1605"
37
+          ]
38
+        }
39
+      },
40
+      "frameworks": {
41
+        "netcoreapp3.1": {
42
+          "targetAlias": "netcoreapp3.1",
43
+          "dependencies": {
44
+            "Microsoft.AspNet.Identity.EntityFramework": {
45
+              "target": "Package",
46
+              "version": "[2.2.3, )"
47
+            },
48
+            "Microsoft.AspNetCore.Http.Abstractions": {
49
+              "target": "Package",
50
+              "version": "[2.2.0, )"
51
+            },
52
+            "Microsoft.AspNetCore.Identity.EntityFrameworkCore": {
53
+              "target": "Package",
54
+              "version": "[5.0.10, )"
55
+            },
56
+            "Microsoft.EntityFrameworkCore": {
57
+              "target": "Package",
58
+              "version": "[5.0.10, )"
59
+            },
60
+            "Microsoft.Extensions.Configuration.Abstractions": {
61
+              "target": "Package",
62
+              "version": "[6.0.0, )"
63
+            },
64
+            "MySql.Data.EntityFrameworkCore": {
65
+              "target": "Package",
66
+              "version": "[8.0.22, )"
67
+            },
68
+            "Pomelo.EntityFrameworkCore.MySql": {
69
+              "target": "Package",
70
+              "version": "[5.0.0-alpha.2, )"
71
+            },
72
+            "System.Data.SqlClient": {
73
+              "target": "Package",
74
+              "version": "[4.8.3, )"
75
+            }
76
+          },
77
+          "imports": [
78
+            "net461",
79
+            "net462",
80
+            "net47",
81
+            "net471",
82
+            "net472",
83
+            "net48"
84
+          ],
85
+          "assetTargetFallback": true,
86
+          "warn": true,
87
+          "frameworkReferences": {
88
+            "Microsoft.NETCore.App": {
89
+              "privateAssets": "all"
90
+            }
91
+          },
92
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
93
+        }
94
+      }
95
+    }
96
+  }
97
+}

+ 21
- 0
CatalogueCQRS/Backend.Data/obj/Backend.ApplicationCore.csproj.nuget.g.props Wyświetl plik

@@ -0,0 +1,21 @@
1
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4
+    <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5
+    <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6
+    <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7
+    <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8
+    <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\</NuGetPackageFolders>
9
+    <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.1</NuGetToolVersion>
11
+  </PropertyGroup>
12
+  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13
+    <SourceRoot Include="C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\" />
14
+  </ItemGroup>
15
+  <PropertyGroup>
16
+    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
17
+  </PropertyGroup>
18
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
19
+    <PkgEntityFramework Condition=" '$(PkgEntityFramework)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\entityframework\6.1.0</PkgEntityFramework>
20
+  </PropertyGroup>
21
+</Project>

+ 6
- 0
CatalogueCQRS/Backend.Data/obj/Backend.ApplicationCore.csproj.nuget.g.targets Wyświetl plik

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup>
4
+    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5
+  </PropertyGroup>
6
+</Project>

+ 97
- 0
CatalogueCQRS/Backend.Data/obj/Backend.Domain.csproj.nuget.dgspec.json Wyświetl plik

@@ -0,0 +1,97 @@
1
+{
2
+  "format": 1,
3
+  "restore": {
4
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Domain.csproj": {}
5
+  },
6
+  "projects": {
7
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Domain.csproj": {
8
+      "version": "1.0.0",
9
+      "restore": {
10
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Domain.csproj",
11
+        "projectName": "Backend.Domain",
12
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Domain.csproj",
13
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
14
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\obj\\",
15
+        "projectStyle": "PackageReference",
16
+        "configFilePaths": [
17
+          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
18
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19
+        ],
20
+        "originalTargetFrameworks": [
21
+          "netcoreapp3.1"
22
+        ],
23
+        "sources": {
24
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25
+          "https://api.nuget.org/v3/index.json": {},
26
+          "https://packagesource": {}
27
+        },
28
+        "frameworks": {
29
+          "netcoreapp3.1": {
30
+            "targetAlias": "netcoreapp3.1",
31
+            "projectReferences": {}
32
+          }
33
+        },
34
+        "warningProperties": {
35
+          "warnAsError": [
36
+            "NU1605"
37
+          ]
38
+        }
39
+      },
40
+      "frameworks": {
41
+        "netcoreapp3.1": {
42
+          "targetAlias": "netcoreapp3.1",
43
+          "dependencies": {
44
+            "Microsoft.AspNet.Identity.EntityFramework": {
45
+              "target": "Package",
46
+              "version": "[2.2.3, )"
47
+            },
48
+            "Microsoft.AspNetCore.Http.Abstractions": {
49
+              "target": "Package",
50
+              "version": "[2.2.0, )"
51
+            },
52
+            "Microsoft.AspNetCore.Identity.EntityFrameworkCore": {
53
+              "target": "Package",
54
+              "version": "[5.0.10, )"
55
+            },
56
+            "Microsoft.EntityFrameworkCore": {
57
+              "target": "Package",
58
+              "version": "[5.0.10, )"
59
+            },
60
+            "Microsoft.Extensions.Configuration.Abstractions": {
61
+              "target": "Package",
62
+              "version": "[6.0.0, )"
63
+            },
64
+            "MySql.Data.EntityFrameworkCore": {
65
+              "target": "Package",
66
+              "version": "[8.0.22, )"
67
+            },
68
+            "Pomelo.EntityFrameworkCore.MySql": {
69
+              "target": "Package",
70
+              "version": "[5.0.0-alpha.2, )"
71
+            },
72
+            "System.Data.SqlClient": {
73
+              "target": "Package",
74
+              "version": "[4.8.3, )"
75
+            }
76
+          },
77
+          "imports": [
78
+            "net461",
79
+            "net462",
80
+            "net47",
81
+            "net471",
82
+            "net472",
83
+            "net48"
84
+          ],
85
+          "assetTargetFallback": true,
86
+          "warn": true,
87
+          "frameworkReferences": {
88
+            "Microsoft.NETCore.App": {
89
+              "privateAssets": "all"
90
+            }
91
+          },
92
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
93
+        }
94
+      }
95
+    }
96
+  }
97
+}

+ 21
- 0
CatalogueCQRS/Backend.Data/obj/Backend.Domain.csproj.nuget.g.props Wyświetl plik

@@ -0,0 +1,21 @@
1
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4
+    <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5
+    <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6
+    <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7
+    <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8
+    <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\</NuGetPackageFolders>
9
+    <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.1</NuGetToolVersion>
11
+  </PropertyGroup>
12
+  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13
+    <SourceRoot Include="C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\" />
14
+  </ItemGroup>
15
+  <PropertyGroup>
16
+    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
17
+  </PropertyGroup>
18
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
19
+    <PkgEntityFramework Condition=" '$(PkgEntityFramework)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\entityframework\6.1.0</PkgEntityFramework>
20
+  </PropertyGroup>
21
+</Project>

+ 0
- 0
CatalogueCQRS/Backend.Data/obj/Backend.Domain.csproj.nuget.g.targets Wyświetl plik


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików

Powered by TurnKey Linux.