Pārlūkot izejas kodu

Initial Commit With TU

Alex Ondoa 2 gadus atpakaļ
vecāks
revīzija
8b4135ef9d
100 mainītis faili ar 8529 papildinājumiem un 0 dzēšanām
  1. 25
    0
      CatalogueCQRS/.dockerignore
  2. Binārs
      CatalogueCQRS/.vs/CatalogueCQRS/DesignTimeBuild/.dtbcache.v2
  3. 997
    0
      CatalogueCQRS/.vs/CatalogueCQRS/config/applicationhost.config
  4. Binārs
      CatalogueCQRS/.vs/CatalogueCQRS/v16/.suo
  5. Binārs
      CatalogueCQRS/.vs/CatalogueCQRS/v16/TestStore/0/000.testlog
  6. Binārs
      CatalogueCQRS/.vs/CatalogueCQRS/v16/TestStore/0/testlog.manifest
  7. 34
    0
      CatalogueCQRS/Backend.API/Backend.API.csproj
  8. 12
    0
      CatalogueCQRS/Backend.API/Backend.API.csproj.user
  9. 166
    0
      CatalogueCQRS/Backend.API/Controllers/CommandeController.cs
  10. 166
    0
      CatalogueCQRS/Backend.API/Controllers/LigneCommandeController.cs
  11. 166
    0
      CatalogueCQRS/Backend.API/Controllers/ProduitController.cs
  12. 166
    0
      CatalogueCQRS/Backend.API/Controllers/ProprieteController.cs
  13. 166
    0
      CatalogueCQRS/Backend.API/Controllers/TypeProprieteController.cs
  14. 39
    0
      CatalogueCQRS/Backend.API/Controllers/WeatherForecastController.cs
  15. 29
    0
      CatalogueCQRS/Backend.API/Dockerfile
  16. 26
    0
      CatalogueCQRS/Backend.API/Program.cs
  17. 36
    0
      CatalogueCQRS/Backend.API/Properties/launchSettings.json
  18. 135
    0
      CatalogueCQRS/Backend.API/Startup.cs
  19. 9
    0
      CatalogueCQRS/Backend.API/appsettings.Development.json
  20. 13
    0
      CatalogueCQRS/Backend.API/appsettings.json
  21. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/AutoMapper.Extensions.Microsoft.DependencyInjection.dll
  22. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/AutoMapper.dll
  23. 5803
    0
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.deps.json
  24. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.dll
  25. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.exe
  26. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.pdb
  27. 8
    0
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.runtimeconfig.dev.json
  28. 13
    0
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.runtimeconfig.json
  29. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Common.dll
  30. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Common.pdb
  31. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.dll
  32. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.pdb
  33. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Models.dll
  34. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Models.pdb
  35. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.dll
  36. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.pdb
  37. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/BouncyCastle.Crypto.dll
  38. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/EntityFramework.SqlServer.dll
  39. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/EntityFramework.dll
  40. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Google.Protobuf.dll
  41. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Humanizer.dll
  42. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/K4os.Compression.LZ4.Streams.dll
  43. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/K4os.Compression.LZ4.dll
  44. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/K4os.Hash.xxHash.dll
  45. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MediatR.Extensions.Microsoft.DependencyInjection.dll
  46. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MediatR.dll
  47. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.dll
  48. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.pdb
  49. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNet.Identity.Core.dll
  50. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNet.Identity.EntityFramework.dll
  51. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Cryptography.Internal.dll
  52. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll
  53. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Identity.EntityFrameworkCore.dll
  54. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Abstractions.dll
  55. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Design.dll
  56. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll
  57. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.dll
  58. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Abstractions.dll
  59. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Memory.dll
  60. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll
  61. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll
  62. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll
  63. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Identity.Core.dll
  64. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Identity.Stores.dll
  65. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.Abstractions.dll
  66. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.dll
  67. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Options.dll
  68. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Primitives.dll
  69. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.OpenApi.dll
  70. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MySql.Data.EntityFrameworkCore.dll
  71. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MySql.Data.dll
  72. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MySqlConnector.dll
  73. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Pomelo.EntityFrameworkCore.MySql.dll
  74. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Renci.SshNet.dll
  75. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/SshNet.Security.Cryptography.dll
  76. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.Swagger.dll
  77. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.SwaggerGen.dll
  78. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.SwaggerUI.dll
  79. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Collections.Immutable.dll
  80. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.ComponentModel.Annotations.dll
  81. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Configuration.ConfigurationManager.dll
  82. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Data.SqlClient.dll
  83. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Diagnostics.DiagnosticSource.dll
  84. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Runtime.CompilerServices.Unsafe.dll
  85. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Security.Cryptography.ProtectedData.dll
  86. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Xml.XPath.XmlDocument.dll
  87. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Ubiety.Dns.Core.dll
  88. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Zstandard.Net.dll
  89. 9
    0
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/appsettings.Development.json
  90. 13
    0
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/appsettings.json
  91. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll
  92. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll
  93. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll
  94. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll
  95. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll
  96. Binārs
      CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll
  97. 462
    0
      CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.dgspec.json
  98. 27
    0
      CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.g.props
  99. 9
    0
      CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.g.targets
  100. 0
    0
      CatalogueCQRS/Backend.API/obj/Container/ContainerDevelopmentMode.cache

+ 25
- 0
CatalogueCQRS/.dockerignore Parādīt failu

@@ -0,0 +1,25 @@
1
+**/.classpath
2
+**/.dockerignore
3
+**/.env
4
+**/.git
5
+**/.gitignore
6
+**/.project
7
+**/.settings
8
+**/.toolstarget
9
+**/.vs
10
+**/.vscode
11
+**/*.*proj.user
12
+**/*.dbmdl
13
+**/*.jfm
14
+**/azds.yaml
15
+**/bin
16
+**/charts
17
+**/docker-compose*
18
+**/Dockerfile*
19
+**/node_modules
20
+**/npm-debug.log
21
+**/obj
22
+**/secrets.dev.yaml
23
+**/values.dev.yaml
24
+LICENSE
25
+README.md

Binārs
CatalogueCQRS/.vs/CatalogueCQRS/DesignTimeBuild/.dtbcache.v2 Parādīt failu


+ 997
- 0
CatalogueCQRS/.vs/CatalogueCQRS/config/applicationhost.config
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


Binārs
CatalogueCQRS/.vs/CatalogueCQRS/v16/.suo Parādīt failu


Binārs
CatalogueCQRS/.vs/CatalogueCQRS/v16/TestStore/0/000.testlog Parādīt failu


Binārs
CatalogueCQRS/.vs/CatalogueCQRS/v16/TestStore/0/testlog.manifest Parādīt failu


+ 34
- 0
CatalogueCQRS/Backend.API/Backend.API.csproj Parādīt failu

@@ -0,0 +1,34 @@
1
+<Project Sdk="Microsoft.NET.Sdk.Web">
2
+
3
+  <PropertyGroup>
4
+    <TargetFramework>netcoreapp3.1</TargetFramework>
5
+    <DockerDefaultTargetOS>Windows</DockerDefaultTargetOS>
6
+  </PropertyGroup>
7
+
8
+  <ItemGroup>
9
+    <Compile Remove="Controllers\WeatherForecastController.cs" />
10
+  </ItemGroup>
11
+
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
+    <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
+    <PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="6.2.3" />
24
+    <PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.2.3" />
25
+    <PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.2.3" />
26
+  </ItemGroup>
27
+
28
+  <ItemGroup>
29
+    <ProjectReference Include="..\Backend.Common\Backend.Common.csproj" />
30
+    <ProjectReference Include="..\Mediator\Mediator.csproj" />
31
+  </ItemGroup>
32
+
33
+
34
+</Project>

+ 12
- 0
CatalogueCQRS/Backend.API/Backend.API.csproj.user Parādīt failu

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup>
4
+    <Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
5
+    <Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
6
+    <ActiveDebugProfile>IIS Express</ActiveDebugProfile>
7
+    <ShowAllFiles>false</ShowAllFiles>
8
+  </PropertyGroup>
9
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10
+    <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
11
+  </PropertyGroup>
12
+</Project>

+ 166
- 0
CatalogueCQRS/Backend.API/Controllers/CommandeController.cs Parādīt failu

@@ -0,0 +1,166 @@
1
+using Backend.Common;
2
+using Backend.Models;
3
+using Mediator;
4
+using MediatR;
5
+using Microsoft.AspNetCore.Http;
6
+using Microsoft.AspNetCore.Mvc;
7
+using Microsoft.Extensions.Logging;
8
+using System;
9
+using System.Collections.Generic;
10
+using System.Linq;
11
+using System.Reflection;
12
+using System.Threading.Tasks;
13
+
14
+namespace Backend.API.Controllers
15
+{
16
+    [ApiController]
17
+    [Route("api/[controller]")]
18
+    public class CommandeController : ControllerBase
19
+    {
20
+        private const string getAllCommande = "getAll";
21
+        private const string postCreateOrUpdate = "createOrUpdate";
22
+        private const string deleteById = "deleteById/{id}";
23
+
24
+        private readonly ILogger<CommandeController> _log;
25
+        private readonly IMediator _mediator;
26
+
27
+        public CommandeController(ILogger<CommandeController> log, IMediator mediator)
28
+        {
29
+            _log = log;
30
+            _mediator = mediator;
31
+        }
32
+
33
+        /// <summary>
34
+        /// get all type propriete
35
+        /// </summary>
36
+        /// <returns></returns>
37
+        [HttpGet(getAllCommande)]
38
+        [ProducesResponseType(StatusCodes.Status200OK)]
39
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
+        public async Task<IActionResult> GetAll()
41
+        {
42
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            if (_mediator == null)
44
+            {
45
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
47
+            }
48
+            try
49
+            {
50
+                var query = new GetCommandeListQuery();
51
+                using Task<IEnumerable<CommandeResponse>> typesTask = _mediator.Send(query);
52
+                await typesTask;
53
+                if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
54
+                {
55
+                    return Ok(typesTask.Result);
56
+                }
57
+                else
58
+                {
59
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
61
+                }
62
+            }
63
+            catch (Exception ex)
64
+            {
65
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
66
+                return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
67
+            }
68
+
69
+        }
70
+
71
+        /// <summary>
72
+        /// create or update type
73
+        /// </summary>
74
+        /// <param name="cmd"></param>
75
+        /// <returns></returns>
76
+        [HttpPost(postCreateOrUpdate)]
77
+        [ProducesResponseType(StatusCodes.Status200OK)]
78
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
79
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
+        public async Task<IActionResult> CreateOrUpdate([FromBody] AddCommandeCommand cmd)
81
+        {
82
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83
+            if (_mediator == null)
84
+            {
85
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
87
+            }
88
+            if(cmd != null)
89
+            {
90
+                try
91
+                {
92
+                    using Task<int> typesTask = _mediator.Send(cmd);
93
+                    await typesTask;
94
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
95
+                    {
96
+                        return Ok(typesTask.Result);
97
+                    }
98
+                    else
99
+                    {
100
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
102
+                    }
103
+                }
104
+                catch (Exception ex)
105
+                {
106
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
107
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
108
+                }
109
+            }
110
+            else
111
+            {
112
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
114
+            }
115
+           
116
+        }
117
+
118
+        /// <summary>
119
+        /// delete type by id
120
+        /// </summary>
121
+        /// <param name="id"></param>
122
+        /// <returns></returns>
123
+        [HttpDelete(deleteById)]
124
+        [ProducesResponseType(StatusCodes.Status200OK)]
125
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
126
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
+        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        {
129
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130
+            if (_mediator == null)
131
+            {
132
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
134
+            }
135
+            if (id != null)
136
+            {
137
+                try
138
+                {
139
+                    RemoveCommandeCommand removeCommandeCommand = new RemoveCommandeCommand { Id = id };
140
+                    using Task<int> typesTask = _mediator.Send(removeCommandeCommand);
141
+                    await typesTask;
142
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
143
+                    {
144
+                        return Ok(typesTask.Result);
145
+                    }
146
+                    else
147
+                    {
148
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
150
+                    }
151
+                }
152
+                catch (Exception ex)
153
+                {
154
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
155
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
156
+                }
157
+            }
158
+            else
159
+            {
160
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
162
+            }
163
+
164
+        }
165
+    }
166
+}

+ 166
- 0
CatalogueCQRS/Backend.API/Controllers/LigneCommandeController.cs Parādīt failu

@@ -0,0 +1,166 @@
1
+using Backend.Common;
2
+using Backend.Models;
3
+using Mediator;
4
+using MediatR;
5
+using Microsoft.AspNetCore.Http;
6
+using Microsoft.AspNetCore.Mvc;
7
+using Microsoft.Extensions.Logging;
8
+using System;
9
+using System.Collections.Generic;
10
+using System.Linq;
11
+using System.Reflection;
12
+using System.Threading.Tasks;
13
+
14
+namespace Backend.API.Controllers
15
+{
16
+    [ApiController]
17
+    [Route("api/[controller]")]
18
+    public class LigneCommandeController : ControllerBase
19
+    {
20
+        private const string getAllLigneCommande = "getAll";
21
+        private const string postCreateOrUpdate = "createOrUpdate";
22
+        private const string deleteById = "deleteById/{id}";
23
+
24
+        private readonly ILogger<LigneCommandeController> _log;
25
+        private readonly IMediator _mediator;
26
+
27
+        public LigneCommandeController(ILogger<LigneCommandeController> log, IMediator mediator)
28
+        {
29
+            _log = log;
30
+            _mediator = mediator;
31
+        }
32
+
33
+        /// <summary>
34
+        /// get all type propriete
35
+        /// </summary>
36
+        /// <returns></returns>
37
+        [HttpGet(getAllLigneCommande)]
38
+        [ProducesResponseType(StatusCodes.Status200OK)]
39
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
+        public async Task<IActionResult> GetAll()
41
+        {
42
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            if (_mediator == null)
44
+            {
45
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
47
+            }
48
+            try
49
+            {
50
+                var query = new GetLigneCommandeListQuery();
51
+                using Task<IEnumerable<LigneCommandeResponse>> typesTask = _mediator.Send(query);
52
+                await typesTask;
53
+                if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
54
+                {
55
+                    return Ok(typesTask.Result);
56
+                }
57
+                else
58
+                {
59
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
61
+                }
62
+            }
63
+            catch (Exception ex)
64
+            {
65
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
66
+                return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
67
+            }
68
+
69
+        }
70
+
71
+        /// <summary>
72
+        /// create or update type
73
+        /// </summary>
74
+        /// <param name="cmd"></param>
75
+        /// <returns></returns>
76
+        [HttpPost(postCreateOrUpdate)]
77
+        [ProducesResponseType(StatusCodes.Status200OK)]
78
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
79
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
+        public async Task<IActionResult> CreateOrUpdate([FromBody] AddLigneCommandeCommand cmd)
81
+        {
82
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83
+            if (_mediator == null)
84
+            {
85
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
87
+            }
88
+            if(cmd != null)
89
+            {
90
+                try
91
+                {
92
+                    using Task<int> typesTask = _mediator.Send(cmd);
93
+                    await typesTask;
94
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
95
+                    {
96
+                        return Ok(typesTask.Result);
97
+                    }
98
+                    else
99
+                    {
100
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
102
+                    }
103
+                }
104
+                catch (Exception ex)
105
+                {
106
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
107
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
108
+                }
109
+            }
110
+            else
111
+            {
112
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
114
+            }
115
+           
116
+        }
117
+
118
+        /// <summary>
119
+        /// delete type by id
120
+        /// </summary>
121
+        /// <param name="id"></param>
122
+        /// <returns></returns>
123
+        [HttpDelete(deleteById)]
124
+        [ProducesResponseType(StatusCodes.Status200OK)]
125
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
126
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
+        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        {
129
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130
+            if (_mediator == null)
131
+            {
132
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
134
+            }
135
+            if (id != null)
136
+            {
137
+                try
138
+                {
139
+                    RemoveLigneCommandeCommand removeLigneCommandeCommand = new RemoveLigneCommandeCommand { Id = id };
140
+                    using Task<int> typesTask = _mediator.Send(removeLigneCommandeCommand);
141
+                    await typesTask;
142
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
143
+                    {
144
+                        return Ok(typesTask.Result);
145
+                    }
146
+                    else
147
+                    {
148
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
150
+                    }
151
+                }
152
+                catch (Exception ex)
153
+                {
154
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
155
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
156
+                }
157
+            }
158
+            else
159
+            {
160
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
162
+            }
163
+
164
+        }
165
+    }
166
+}

+ 166
- 0
CatalogueCQRS/Backend.API/Controllers/ProduitController.cs Parādīt failu

@@ -0,0 +1,166 @@
1
+using Backend.Common;
2
+using Backend.Models;
3
+using Mediator;
4
+using MediatR;
5
+using Microsoft.AspNetCore.Http;
6
+using Microsoft.AspNetCore.Mvc;
7
+using Microsoft.Extensions.Logging;
8
+using System;
9
+using System.Collections.Generic;
10
+using System.Linq;
11
+using System.Reflection;
12
+using System.Threading.Tasks;
13
+
14
+namespace Backend.API.Controllers
15
+{
16
+    [ApiController]
17
+    [Route("api/[controller]")]
18
+    public class ProduitController : ControllerBase
19
+    {
20
+        private const string getAllProduit = "getAll";
21
+        private const string postCreateOrUpdate = "createOrUpdate";
22
+        private const string deleteById = "deleteById/{id}";
23
+
24
+        private readonly ILogger<ProduitController> _log;
25
+        private readonly IMediator _mediator;
26
+
27
+        public ProduitController(ILogger<ProduitController> log, IMediator mediator)
28
+        {
29
+            _log = log;
30
+            _mediator = mediator;
31
+        }
32
+
33
+        /// <summary>
34
+        /// get all type propriete
35
+        /// </summary>
36
+        /// <returns></returns>
37
+        [HttpGet(getAllProduit)]
38
+        [ProducesResponseType(StatusCodes.Status200OK)]
39
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
+        public async Task<IActionResult> GetAll()
41
+        {
42
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            if (_mediator == null)
44
+            {
45
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
47
+            }
48
+            try
49
+            {
50
+                var query = new GetProduitListQuery();
51
+                using Task<IEnumerable<ProduitResponse>> typesTask = _mediator.Send(query);
52
+                await typesTask;
53
+                if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
54
+                {
55
+                    return Ok(typesTask.Result);
56
+                }
57
+                else
58
+                {
59
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
61
+                }
62
+            }
63
+            catch (Exception ex)
64
+            {
65
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
66
+                return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
67
+            }
68
+
69
+        }
70
+
71
+        /// <summary>
72
+        /// create or update type
73
+        /// </summary>
74
+        /// <param name="cmd"></param>
75
+        /// <returns></returns>
76
+        [HttpPost(postCreateOrUpdate)]
77
+        [ProducesResponseType(StatusCodes.Status200OK)]
78
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
79
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
+        public async Task<IActionResult> CreateOrUpdate([FromBody] AddProduitCommand cmd)
81
+        {
82
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83
+            if (_mediator == null)
84
+            {
85
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
87
+            }
88
+            if(cmd != null)
89
+            {
90
+                try
91
+                {
92
+                    using Task<int> typesTask = _mediator.Send(cmd);
93
+                    await typesTask;
94
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
95
+                    {
96
+                        return Ok(typesTask.Result);
97
+                    }
98
+                    else
99
+                    {
100
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
102
+                    }
103
+                }
104
+                catch (Exception ex)
105
+                {
106
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
107
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
108
+                }
109
+            }
110
+            else
111
+            {
112
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
114
+            }
115
+           
116
+        }
117
+
118
+        /// <summary>
119
+        /// delete type by id
120
+        /// </summary>
121
+        /// <param name="id"></param>
122
+        /// <returns></returns>
123
+        [HttpDelete(deleteById)]
124
+        [ProducesResponseType(StatusCodes.Status200OK)]
125
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
126
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
+        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        {
129
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130
+            if (_mediator == null)
131
+            {
132
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
134
+            }
135
+            if (id != null)
136
+            {
137
+                try
138
+                {
139
+                    RemoveProduitCommand removeProduitCommand = new RemoveProduitCommand { Id = id };
140
+                    using Task<int> typesTask = _mediator.Send(removeProduitCommand);
141
+                    await typesTask;
142
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
143
+                    {
144
+                        return Ok(typesTask.Result);
145
+                    }
146
+                    else
147
+                    {
148
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
150
+                    }
151
+                }
152
+                catch (Exception ex)
153
+                {
154
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
155
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
156
+                }
157
+            }
158
+            else
159
+            {
160
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
162
+            }
163
+
164
+        }
165
+    }
166
+}

+ 166
- 0
CatalogueCQRS/Backend.API/Controllers/ProprieteController.cs Parādīt failu

@@ -0,0 +1,166 @@
1
+using Backend.Common;
2
+using Backend.Models;
3
+using Mediator;
4
+using MediatR;
5
+using Microsoft.AspNetCore.Http;
6
+using Microsoft.AspNetCore.Mvc;
7
+using Microsoft.Extensions.Logging;
8
+using System;
9
+using System.Collections.Generic;
10
+using System.Linq;
11
+using System.Reflection;
12
+using System.Threading.Tasks;
13
+
14
+namespace Backend.API.Controllers
15
+{
16
+    [ApiController]
17
+    [Route("api/[controller]")]
18
+    public class ProprieteController : ControllerBase
19
+    {
20
+        private const string getAllPropriete = "getAll";
21
+        private const string postCreateOrUpdate = "createOrUpdate";
22
+        private const string deleteById = "deleteById/{id}";
23
+
24
+        private readonly ILogger<ProprieteController> _log;
25
+        private readonly IMediator _mediator;
26
+
27
+        public ProprieteController(ILogger<ProprieteController> log, IMediator mediator)
28
+        {
29
+            _log = log;
30
+            _mediator = mediator;
31
+        }
32
+
33
+        /// <summary>
34
+        /// get all type propriete
35
+        /// </summary>
36
+        /// <returns></returns>
37
+        [HttpGet(getAllPropriete)]
38
+        [ProducesResponseType(StatusCodes.Status200OK)]
39
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
+        public async Task<IActionResult> GetAll()
41
+        {
42
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            if (_mediator == null)
44
+            {
45
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
47
+            }
48
+            try
49
+            {
50
+                var query = new GetProprieteListQuery();
51
+                using Task<IEnumerable<ProprieteResponse>> typesTask = _mediator.Send(query);
52
+                await typesTask;
53
+                if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
54
+                {
55
+                    return Ok(typesTask.Result);
56
+                }
57
+                else
58
+                {
59
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
61
+                }
62
+            }
63
+            catch (Exception ex)
64
+            {
65
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
66
+                return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
67
+            }
68
+
69
+        }
70
+
71
+        /// <summary>
72
+        /// create or update type
73
+        /// </summary>
74
+        /// <param name="cmd"></param>
75
+        /// <returns></returns>
76
+        [HttpPost(postCreateOrUpdate)]
77
+        [ProducesResponseType(StatusCodes.Status200OK)]
78
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
79
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
+        public async Task<IActionResult> CreateOrUpdate([FromBody] AddProprieteCommand cmd)
81
+        {
82
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83
+            if (_mediator == null)
84
+            {
85
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
87
+            }
88
+            if(cmd != null)
89
+            {
90
+                try
91
+                {
92
+                    using Task<int> typesTask = _mediator.Send(cmd);
93
+                    await typesTask;
94
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
95
+                    {
96
+                        return Ok(typesTask.Result);
97
+                    }
98
+                    else
99
+                    {
100
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
102
+                    }
103
+                }
104
+                catch (Exception ex)
105
+                {
106
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
107
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
108
+                }
109
+            }
110
+            else
111
+            {
112
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
114
+            }
115
+           
116
+        }
117
+
118
+        /// <summary>
119
+        /// delete type by id
120
+        /// </summary>
121
+        /// <param name="id"></param>
122
+        /// <returns></returns>
123
+        [HttpDelete(deleteById)]
124
+        [ProducesResponseType(StatusCodes.Status200OK)]
125
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
126
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
+        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        {
129
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130
+            if (_mediator == null)
131
+            {
132
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
134
+            }
135
+            if (id != null)
136
+            {
137
+                try
138
+                {
139
+                    RemoveProprieteCommand removeProprieteCommand = new RemoveProprieteCommand { Id = id };
140
+                    using Task<int> typesTask = _mediator.Send(removeProprieteCommand);
141
+                    await typesTask;
142
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
143
+                    {
144
+                        return Ok(typesTask.Result);
145
+                    }
146
+                    else
147
+                    {
148
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
150
+                    }
151
+                }
152
+                catch (Exception ex)
153
+                {
154
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
155
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
156
+                }
157
+            }
158
+            else
159
+            {
160
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
162
+            }
163
+
164
+        }
165
+    }
166
+}

+ 166
- 0
CatalogueCQRS/Backend.API/Controllers/TypeProprieteController.cs Parādīt failu

@@ -0,0 +1,166 @@
1
+using Backend.Common;
2
+using Backend.Models;
3
+using Mediator;
4
+using MediatR;
5
+using Microsoft.AspNetCore.Http;
6
+using Microsoft.AspNetCore.Mvc;
7
+using Microsoft.Extensions.Logging;
8
+using System;
9
+using System.Collections.Generic;
10
+using System.Linq;
11
+using System.Reflection;
12
+using System.Threading.Tasks;
13
+
14
+namespace Backend.API.Controllers
15
+{
16
+    [ApiController]
17
+    [Route("api/[controller]")]
18
+    public class TypeProprieteController : ControllerBase
19
+    {
20
+        private const string getAllTypePropriete = "getAll";
21
+        private const string postCreateOrUpdate = "createOrUpdate";
22
+        private const string deleteById = "deleteById/{id}";
23
+
24
+        private readonly ILogger<TypeProprieteController> _log;
25
+        private readonly IMediator _mediator;
26
+
27
+        public TypeProprieteController(ILogger<TypeProprieteController> log, IMediator mediator)
28
+        {
29
+            _log = log;
30
+            _mediator = mediator;
31
+        }
32
+
33
+        /// <summary>
34
+        /// get all type propriete
35
+        /// </summary>
36
+        /// <returns></returns>
37
+        [HttpGet(getAllTypePropriete)]
38
+        [ProducesResponseType(StatusCodes.Status200OK)]
39
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
40
+        public async Task<IActionResult> GetAll()
41
+        {
42
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to get all Type");
43
+            if (_mediator == null)
44
+            {
45
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
46
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
47
+            }
48
+            try
49
+            {
50
+                var query = new GetTypeProprieteListQuery();
51
+                using Task<IEnumerable<TypeProprieteResponse>> typesTask = _mediator.Send(query);
52
+                await typesTask;
53
+                if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
54
+                {
55
+                    return Ok(typesTask.Result);
56
+                }
57
+                else
58
+                {
59
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
60
+                    return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
61
+                }
62
+            }
63
+            catch (Exception ex)
64
+            {
65
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
66
+                return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
67
+            }
68
+
69
+        }
70
+
71
+        /// <summary>
72
+        /// create or update type
73
+        /// </summary>
74
+        /// <param name="cmd"></param>
75
+        /// <returns></returns>
76
+        [HttpPost(postCreateOrUpdate)]
77
+        [ProducesResponseType(StatusCodes.Status200OK)]
78
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
79
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
80
+        public async Task<IActionResult> CreateOrUpdate([FromBody] AddTypeProprieteCommand cmd)
81
+        {
82
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to create or update Type");
83
+            if (_mediator == null)
84
+            {
85
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
86
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
87
+            }
88
+            if(cmd != null)
89
+            {
90
+                try
91
+                {
92
+                    using Task<int> typesTask = _mediator.Send(cmd);
93
+                    await typesTask;
94
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
95
+                    {
96
+                        return Ok(typesTask.Result);
97
+                    }
98
+                    else
99
+                    {
100
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
101
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
102
+                    }
103
+                }
104
+                catch (Exception ex)
105
+                {
106
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
107
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
108
+                }
109
+            }
110
+            else
111
+            {
112
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
113
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
114
+            }
115
+           
116
+        }
117
+
118
+        /// <summary>
119
+        /// delete type by id
120
+        /// </summary>
121
+        /// <param name="id"></param>
122
+        /// <returns></returns>
123
+        [HttpDelete(deleteById)]
124
+        [ProducesResponseType(StatusCodes.Status200OK)]
125
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
126
+        [ProducesResponseType(StatusCodes.Status500InternalServerError)]
127
+        public async Task<IActionResult> DeleteById([FromRoute] Guid id)
128
+        {
129
+            _log.LogDebug($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Request to delete type by: {id}");
130
+            if (_mediator == null)
131
+            {
132
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
133
+                return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
134
+            }
135
+            if (id != null)
136
+            {
137
+                try
138
+                {
139
+                    RemoveTypeProprieteCommand removeTypeProprieteCommand = new RemoveTypeProprieteCommand { Id = id };
140
+                    using Task<int> typesTask = _mediator.Send(removeTypeProprieteCommand);
141
+                    await typesTask;
142
+                    if (typesTask.IsCompleted && typesTask.IsCompletedSuccessfully)
143
+                    {
144
+                        return Ok(typesTask.Result);
145
+                    }
146
+                    else
147
+                    {
148
+                        _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_5XX}");
149
+                        return StatusCode(StatusCodes.Status500InternalServerError, ErrorsConstants.HTTP_ERROR_5XX);
150
+                    }
151
+                }
152
+                catch (Exception ex)
153
+                {
154
+                    _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - Exception:{ex.Message}");
155
+                    return StatusCode(StatusCodes.Status500InternalServerError, ex.Message);
156
+                }
157
+            }
158
+            else
159
+            {
160
+                _log.LogError($"{this.GetType().Name} -> {MethodBase.GetCurrentMethod()} - {ErrorsConstants.HTTP_ERROR_4XX}");
161
+                return StatusCode(StatusCodes.Status400BadRequest, ErrorsConstants.HTTP_ERROR_4XX);
162
+            }
163
+
164
+        }
165
+    }
166
+}

+ 39
- 0
CatalogueCQRS/Backend.API/Controllers/WeatherForecastController.cs Parādīt failu

@@ -0,0 +1,39 @@
1
+using Microsoft.AspNetCore.Mvc;
2
+using Microsoft.Extensions.Logging;
3
+using System;
4
+using System.Collections.Generic;
5
+using System.Linq;
6
+using System.Threading.Tasks;
7
+
8
+namespace Backend.API.Controllers
9
+{
10
+    [ApiController]
11
+    [Route("[controller]")]
12
+    public class WeatherForecastController : ControllerBase
13
+    {
14
+        private static readonly string[] Summaries = new[]
15
+        {
16
+            "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
17
+        };
18
+
19
+        private readonly ILogger<WeatherForecastController> _logger;
20
+
21
+        public WeatherForecastController(ILogger<WeatherForecastController> logger)
22
+        {
23
+            _logger = logger;
24
+        }
25
+
26
+        [HttpGet]
27
+        public IEnumerable<WeatherForecast> Get()
28
+        {
29
+            var rng = new Random();
30
+            return Enumerable.Range(1, 5).Select(index => new WeatherForecast
31
+            {
32
+                Date = DateTime.Now.AddDays(index),
33
+                TemperatureC = rng.Next(-20, 55),
34
+                Summary = Summaries[rng.Next(Summaries.Length)]
35
+            })
36
+            .ToArray();
37
+        }
38
+    }
39
+}

+ 29
- 0
CatalogueCQRS/Backend.API/Dockerfile Parādīt failu

@@ -0,0 +1,29 @@
1
+#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
+
3
+#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
4
+#For more information, please see https://aka.ms/containercompat
5
+
6
+FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base
7
+WORKDIR /app
8
+EXPOSE 80
9
+
10
+FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
11
+WORKDIR /src
12
+COPY ["Backend.API/Backend.API.csproj", "Backend.API/"]
13
+COPY ["Backend.Common/Backend.Common.csproj", "Backend.Common/"]
14
+COPY ["Mediator/Mediator.csproj", "Mediator/"]
15
+COPY ["Backend.Models/Backend.Models.csproj", "Backend.Models/"]
16
+COPY ["Backend.Services/Backend.Services.csproj", "Backend.Services/"]
17
+COPY ["Backend.Data/Backend.Data.csproj", "Backend.Data/"]
18
+RUN dotnet restore "Backend.API/Backend.API.csproj"
19
+COPY . .
20
+WORKDIR "/src/Backend.API"
21
+RUN dotnet build "Backend.API.csproj" -c Release -o /app/build
22
+
23
+FROM build AS publish
24
+RUN dotnet publish "Backend.API.csproj" -c Release -o /app/publish
25
+
26
+FROM base AS final
27
+WORKDIR /app
28
+COPY --from=publish /app/publish .
29
+ENTRYPOINT ["dotnet", "Backend.API.dll"]

+ 26
- 0
CatalogueCQRS/Backend.API/Program.cs Parādīt failu

@@ -0,0 +1,26 @@
1
+using Microsoft.AspNetCore.Hosting;
2
+using Microsoft.Extensions.Configuration;
3
+using Microsoft.Extensions.Hosting;
4
+using Microsoft.Extensions.Logging;
5
+using System;
6
+using System.Collections.Generic;
7
+using System.Linq;
8
+using System.Threading.Tasks;
9
+
10
+namespace Backend.API
11
+{
12
+    public class Program
13
+    {
14
+        public static void Main(string[] args)
15
+        {
16
+            CreateHostBuilder(args).Build().Run();
17
+        }
18
+
19
+        public static IHostBuilder CreateHostBuilder(string[] args) =>
20
+            Host.CreateDefaultBuilder(args)
21
+                .ConfigureWebHostDefaults(webBuilder =>
22
+                {
23
+                    webBuilder.UseStartup<Startup>();
24
+                });
25
+    }
26
+}

+ 36
- 0
CatalogueCQRS/Backend.API/Properties/launchSettings.json Parādīt failu

@@ -0,0 +1,36 @@
1
+{
2
+  "iisSettings": {
3
+    "windowsAuthentication": false,
4
+    "anonymousAuthentication": true,
5
+    "iisExpress": {
6
+      "applicationUrl": "http://localhost:43012/",
7
+      "sslPort": 0
8
+    }
9
+  },
10
+  "$schema": "http://json.schemastore.org/launchsettings.json",
11
+  "profiles": {
12
+    "IIS Express": {
13
+      "commandName": "IISExpress",
14
+      "launchBrowser": true,
15
+      "launchUrl": "swagger",
16
+      "environmentVariables": {
17
+        "ASPNETCORE_ENVIRONMENT": "Development"
18
+      }
19
+    },
20
+    "Backend.API": {
21
+      "commandName": "Project",
22
+      "launchBrowser": true,
23
+      "launchUrl": "swagger",
24
+      "environmentVariables": {
25
+        "ASPNETCORE_ENVIRONMENT": "Development"
26
+      },
27
+      "applicationUrl": "http://localhost:5000"
28
+    },
29
+    "Docker (1)": {
30
+      "commandName": "Docker",
31
+      "launchBrowser": true,
32
+      "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
33
+      "publishAllPorts": true
34
+    }
35
+  }
36
+}

+ 135
- 0
CatalogueCQRS/Backend.API/Startup.cs Parādīt failu

@@ -0,0 +1,135 @@
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;
10
+using Microsoft.AspNetCore.Builder;
11
+using Microsoft.AspNetCore.Hosting;
12
+using Microsoft.AspNetCore.Http;
13
+using Microsoft.AspNetCore.Mvc;
14
+using Microsoft.Extensions.Configuration;
15
+using Microsoft.Extensions.DependencyInjection;
16
+using Microsoft.Extensions.DependencyInjection.Extensions;
17
+using Microsoft.Extensions.Hosting;
18
+using Microsoft.Extensions.Logging;
19
+using Microsoft.OpenApi.Models;
20
+using System;
21
+using System.Reflection;
22
+using System.Threading.Tasks;
23
+
24
+namespace Backend.API
25
+{
26
+    public class Startup
27
+    {
28
+        private readonly IConfiguration _configuration = null;
29
+        private readonly IHostEnvironment _appEnvironment = null;
30
+        public Startup(IConfiguration configuration, IHostEnvironment appEnvironment)
31
+        {
32
+            _configuration = configuration;
33
+            _appEnvironment = appEnvironment;
34
+        }
35
+
36
+        // This method gets called by the runtime. Use this method to add services to the container.
37
+        public void ConfigureServices(IServiceCollection services)
38
+        {
39
+            services.AddControllers();
40
+            services.AddOptions();
41
+
42
+            AddDataDependencyInjectionService(services);
43
+
44
+            AddDataDependencyInjectionRepository(services);
45
+
46
+            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
+        }
68
+
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
+
84
+            services.AddMediatR(typeof(GetCommandeListHandler).Assembly);
85
+            services.AddMediatR(typeof(AddCommandeHandler).Assembly);
86
+            services.AddMediatR(typeof(RemoveCommandeHandler).Assembly);
87
+
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
+        protected virtual void AddDatabase(IServiceCollection services)
103
+        {
104
+            if (services != null)
105
+            {
106
+                services.AddDatabaseModule(_configuration);
107
+            }
108
+        }
109
+        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
110
+        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider serviceProvider)
111
+        {
112
+            if (env.IsDevelopment())
113
+            {
114
+                app.UseDeveloperExceptionPage();
115
+            }
116
+
117
+            app.UseRouting();
118
+
119
+            app.UseAuthorization();
120
+
121
+            app.UseEndpoints(endpoints =>
122
+            {
123
+                endpoints.MapControllers();
124
+            });
125
+            app.UseApplicationDatabase(serviceProvider);
126
+            app.UseSwagger();
127
+            app.UseSwaggerUI(c => {
128
+                c.SwaggerEndpoint("/swagger/v2/swagger.json", "Catalogue.Backend.API");
129
+            });
130
+        }
131
+
132
+    
133
+
134
+    }
135
+}

+ 9
- 0
CatalogueCQRS/Backend.API/appsettings.Development.json Parādīt failu

@@ -0,0 +1,9 @@
1
+{
2
+  "Logging": {
3
+    "LogLevel": {
4
+      "Default": "Information",
5
+      "Microsoft": "Warning",
6
+      "Microsoft.Hosting.Lifetime": "Information"
7
+    }
8
+  }
9
+}

+ 13
- 0
CatalogueCQRS/Backend.API/appsettings.json Parādīt failu

@@ -0,0 +1,13 @@
1
+{
2
+  "Logging": {
3
+    "LogLevel": {
4
+      "Default": "Information",
5
+      "Microsoft": "Warning",
6
+      "Microsoft.Hosting.Lifetime": "Information"
7
+    }
8
+  },
9
+  "ConnectionStrings": {
10
+    "AppDbContext": "server=localhost; port=3306; database=cataloguedb; user=root; password=Password123*; Persist Security Info=False; Connect Timeout=300"
11
+  },
12
+  "AllowedHosts": "*"
13
+}

Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/AutoMapper.Extensions.Microsoft.DependencyInjection.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/AutoMapper.dll Parādīt failu


+ 5803
- 0
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.deps.json
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.exe Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.pdb Parādīt failu


+ 8
- 0
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.runtimeconfig.dev.json Parādīt failu

@@ -0,0 +1,8 @@
1
+{
2
+  "runtimeOptions": {
3
+    "additionalProbingPaths": [
4
+      "C:\\Users\\Alex ONDOA BALEGNAMA\\.dotnet\\store\\|arch|\\|tfm|",
5
+      "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages"
6
+    ]
7
+  }
8
+}

+ 13
- 0
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.API.runtimeconfig.json Parādīt failu

@@ -0,0 +1,13 @@
1
+{
2
+  "runtimeOptions": {
3
+    "tfm": "netcoreapp3.1",
4
+    "framework": {
5
+      "name": "Microsoft.AspNetCore.App",
6
+      "version": "3.1.0"
7
+    },
8
+    "configProperties": {
9
+      "System.GC.Server": true,
10
+      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
11
+    }
12
+  }
13
+}

Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Common.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Common.pdb Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Data.pdb Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Models.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Models.pdb Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Backend.Services.pdb Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/BouncyCastle.Crypto.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/EntityFramework.SqlServer.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/EntityFramework.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Google.Protobuf.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Humanizer.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/K4os.Compression.LZ4.Streams.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/K4os.Compression.LZ4.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/K4os.Hash.xxHash.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MediatR.Extensions.Microsoft.DependencyInjection.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MediatR.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Mediator.pdb Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNet.Identity.Core.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNet.Identity.EntityFramework.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Cryptography.Internal.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Identity.EntityFrameworkCore.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Abstractions.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Design.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Abstractions.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Memory.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Identity.Core.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Identity.Stores.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.Abstractions.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Options.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Primitives.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Microsoft.OpenApi.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MySql.Data.EntityFrameworkCore.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MySql.Data.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/MySqlConnector.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Pomelo.EntityFrameworkCore.MySql.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Renci.SshNet.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/SshNet.Security.Cryptography.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.Swagger.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.SwaggerGen.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.SwaggerUI.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Collections.Immutable.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.ComponentModel.Annotations.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Configuration.ConfigurationManager.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Data.SqlClient.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Diagnostics.DiagnosticSource.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Runtime.CompilerServices.Unsafe.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Security.Cryptography.ProtectedData.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/System.Xml.XPath.XmlDocument.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Ubiety.Dns.Core.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/Zstandard.Net.dll Parādīt failu


+ 9
- 0
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/appsettings.Development.json Parādīt failu

@@ -0,0 +1,9 @@
1
+{
2
+  "Logging": {
3
+    "LogLevel": {
4
+      "Default": "Information",
5
+      "Microsoft": "Warning",
6
+      "Microsoft.Hosting.Lifetime": "Information"
7
+    }
8
+  }
9
+}

+ 13
- 0
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/appsettings.json Parādīt failu

@@ -0,0 +1,13 @@
1
+{
2
+  "Logging": {
3
+    "LogLevel": {
4
+      "Default": "Information",
5
+      "Microsoft": "Warning",
6
+      "Microsoft.Hosting.Lifetime": "Information"
7
+    }
8
+  },
9
+  "ConnectionStrings": {
10
+    "AppDbContext": "server=localhost; port=3306; database=cataloguedb; user=root; password=Password123*; Persist Security Info=False; Connect Timeout=300"
11
+  },
12
+  "AllowedHosts": "*"
13
+}

Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll Parādīt failu


Binārs
CatalogueCQRS/Backend.API/bin/Debug/netcoreapp3.1/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll Parādīt failu


+ 462
- 0
CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.dgspec.json Parādīt failu

@@ -0,0 +1,462 @@
1
+{
2
+  "format": 1,
3
+  "restore": {
4
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.API\\Backend.API.csproj": {}
5
+  },
6
+  "projects": {
7
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.API\\Backend.API.csproj": {
8
+      "version": "1.0.0",
9
+      "restore": {
10
+        "projectUniqueName": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.API\\Backend.API.csproj",
11
+        "projectName": "Backend.API",
12
+        "projectPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.API\\Backend.API.csproj",
13
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
14
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.API\\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
+              "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"
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"
37
+              }
38
+            }
39
+          }
40
+        },
41
+        "warningProperties": {
42
+          "warnAsError": [
43
+            "NU1605"
44
+          ]
45
+        }
46
+      },
47
+      "frameworks": {
48
+        "netcoreapp3.1": {
49
+          "targetAlias": "netcoreapp3.1",
50
+          "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
+            "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": {
74
+              "target": "Package",
75
+              "version": "[1.11.1, )"
76
+            },
77
+            "Pomelo.EntityFrameworkCore.MySql": {
78
+              "target": "Package",
79
+              "version": "[5.0.0-alpha.2, )"
80
+            },
81
+            "Swashbuckle.AspNetCore.Swagger": {
82
+              "target": "Package",
83
+              "version": "[6.2.3, )"
84
+            },
85
+            "Swashbuckle.AspNetCore.SwaggerGen": {
86
+              "target": "Package",
87
+              "version": "[6.2.3, )"
88
+            },
89
+            "Swashbuckle.AspNetCore.SwaggerUI": {
90
+              "target": "Package",
91
+              "version": "[6.2.3, )"
92
+            }
93
+          },
94
+          "imports": [
95
+            "net461",
96
+            "net462",
97
+            "net47",
98
+            "net471",
99
+            "net472",
100
+            "net48"
101
+          ],
102
+          "assetTargetFallback": true,
103
+          "warn": true,
104
+          "frameworkReferences": {
105
+            "Microsoft.AspNetCore.App": {
106
+              "privateAssets": "none"
107
+            },
108
+            "Microsoft.NETCore.App": {
109
+              "privateAssets": "all"
110
+            }
111
+          },
112
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
113
+        }
114
+      }
115
+    },
116
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\Backend.Common.csproj": {
117
+      "version": "1.0.0",
118
+      "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",
122
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
123
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Common\\obj\\",
124
+        "projectStyle": "PackageReference",
125
+        "configFilePaths": [
126
+          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
127
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
128
+        ],
129
+        "originalTargetFrameworks": [
130
+          "netcoreapp3.1"
131
+        ],
132
+        "sources": {
133
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
134
+          "https://api.nuget.org/v3/index.json": {},
135
+          "https://packagesource": {}
136
+        },
137
+        "frameworks": {
138
+          "netcoreapp3.1": {
139
+            "targetAlias": "netcoreapp3.1",
140
+            "projectReferences": {}
141
+          }
142
+        },
143
+        "warningProperties": {
144
+          "warnAsError": [
145
+            "NU1605"
146
+          ]
147
+        }
148
+      },
149
+      "frameworks": {
150
+        "netcoreapp3.1": {
151
+          "targetAlias": "netcoreapp3.1",
152
+          "imports": [
153
+            "net461",
154
+            "net462",
155
+            "net47",
156
+            "net471",
157
+            "net472",
158
+            "net48"
159
+          ],
160
+          "assetTargetFallback": true,
161
+          "warn": true,
162
+          "frameworkReferences": {
163
+            "Microsoft.NETCore.App": {
164
+              "privateAssets": "all"
165
+            }
166
+          },
167
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
168
+        }
169
+      }
170
+    },
171
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\Backend.Data.csproj": {
172
+      "version": "1.0.0",
173
+      "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",
177
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
178
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Data\\obj\\",
179
+        "projectStyle": "PackageReference",
180
+        "configFilePaths": [
181
+          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
182
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
183
+        ],
184
+        "originalTargetFrameworks": [
185
+          "netcoreapp3.1"
186
+        ],
187
+        "sources": {
188
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
189
+          "https://api.nuget.org/v3/index.json": {},
190
+          "https://packagesource": {}
191
+        },
192
+        "frameworks": {
193
+          "netcoreapp3.1": {
194
+            "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"
254
+            }
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
+          }
286
+        },
287
+        "warningProperties": {
288
+          "warnAsError": [
289
+            "NU1605"
290
+          ]
291
+        }
292
+      },
293
+      "frameworks": {
294
+        "netcoreapp3.1": {
295
+          "targetAlias": "netcoreapp3.1",
296
+          "imports": [
297
+            "net461",
298
+            "net462",
299
+            "net47",
300
+            "net471",
301
+            "net472",
302
+            "net48"
303
+          ],
304
+          "assetTargetFallback": true,
305
+          "warn": true,
306
+          "frameworkReferences": {
307
+            "Microsoft.NETCore.App": {
308
+              "privateAssets": "all"
309
+            }
310
+          },
311
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
312
+        }
313
+      }
314
+    },
315
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\Backend.Services.csproj": {
316
+      "version": "1.0.0",
317
+      "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",
321
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
322
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Backend.Services\\obj\\",
323
+        "projectStyle": "PackageReference",
324
+        "configFilePaths": [
325
+          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
326
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
327
+        ],
328
+        "originalTargetFrameworks": [
329
+          "netcoreapp3.1"
330
+        ],
331
+        "sources": {
332
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
333
+          "https://api.nuget.org/v3/index.json": {},
334
+          "https://packagesource": {}
335
+        },
336
+        "frameworks": {
337
+          "netcoreapp3.1": {
338
+            "targetAlias": "netcoreapp3.1",
339
+            "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"
348
+              }
349
+            }
350
+          }
351
+        },
352
+        "warningProperties": {
353
+          "warnAsError": [
354
+            "NU1605"
355
+          ]
356
+        }
357
+      },
358
+      "frameworks": {
359
+        "netcoreapp3.1": {
360
+          "targetAlias": "netcoreapp3.1",
361
+          "dependencies": {
362
+            "AutoMapper": {
363
+              "target": "Package",
364
+              "version": "[10.1.1, )"
365
+            }
366
+          },
367
+          "imports": [
368
+            "net461",
369
+            "net462",
370
+            "net47",
371
+            "net471",
372
+            "net472",
373
+            "net48"
374
+          ],
375
+          "assetTargetFallback": true,
376
+          "warn": true,
377
+          "frameworkReferences": {
378
+            "Microsoft.NETCore.App": {
379
+              "privateAssets": "all"
380
+            }
381
+          },
382
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
383
+        }
384
+      }
385
+    },
386
+    "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\Mediator.csproj": {
387
+      "version": "1.0.0",
388
+      "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",
392
+        "packagesPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\.nuget\\packages\\",
393
+        "outputPath": "C:\\Users\\Alex ONDOA BALEGNAMA\\source\\repos\\Backend\\CatalogueCQRS\\Mediator\\obj\\",
394
+        "projectStyle": "PackageReference",
395
+        "configFilePaths": [
396
+          "C:\\Users\\Alex ONDOA BALEGNAMA\\AppData\\Roaming\\NuGet\\NuGet.Config",
397
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
398
+        ],
399
+        "originalTargetFrameworks": [
400
+          "netcoreapp3.1"
401
+        ],
402
+        "sources": {
403
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
404
+          "https://api.nuget.org/v3/index.json": {},
405
+          "https://packagesource": {}
406
+        },
407
+        "frameworks": {
408
+          "netcoreapp3.1": {
409
+            "targetAlias": "netcoreapp3.1",
410
+            "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"
419
+              }
420
+            }
421
+          }
422
+        },
423
+        "warningProperties": {
424
+          "warnAsError": [
425
+            "NU1605"
426
+          ]
427
+        }
428
+      },
429
+      "frameworks": {
430
+        "netcoreapp3.1": {
431
+          "targetAlias": "netcoreapp3.1",
432
+          "dependencies": {
433
+            "MediatR": {
434
+              "target": "Package",
435
+              "version": "[7.0.0, )"
436
+            },
437
+            "MediatR.Extensions.Microsoft.DependencyInjection": {
438
+              "target": "Package",
439
+              "version": "[7.0.0, )"
440
+            }
441
+          },
442
+          "imports": [
443
+            "net461",
444
+            "net462",
445
+            "net47",
446
+            "net471",
447
+            "net472",
448
+            "net48"
449
+          ],
450
+          "assetTargetFallback": true,
451
+          "warn": true,
452
+          "frameworkReferences": {
453
+            "Microsoft.NETCore.App": {
454
+              "privateAssets": "all"
455
+            }
456
+          },
457
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.403\\RuntimeIdentifierGraph.json"
458
+        }
459
+      }
460
+    }
461
+  }
462
+}

+ 27
- 0
CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.g.props Parādīt failu

@@ -0,0 +1,27 @@
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
+  <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
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
+  </ImportGroup>
22
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
23
+    <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
+    <PkgEntityFramework Condition=" '$(PkgEntityFramework)' == '' ">C:\Users\Alex ONDOA BALEGNAMA\.nuget\packages\entityframework\6.1.0</PkgEntityFramework>
26
+  </PropertyGroup>
27
+</Project>

+ 9
- 0
CatalogueCQRS/Backend.API/obj/Backend.API.csproj.nuget.g.targets Parādīt failu

@@ -0,0 +1,9 @@
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
+  <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
7
+    <Import Project="$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.11.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets')" />
8
+  </ImportGroup>
9
+</Project>

+ 0
- 0
CatalogueCQRS/Backend.API/obj/Container/ContainerDevelopmentMode.cache Parādīt failu


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels

Powered by TurnKey Linux.