Introduced a validation pipeline using FluentValidation and MediatR to enhance request validation. Added the following: - Registered FluentValidation and MediatR dependencies in `ReC.Application.csproj`. - Updated `DependencyInjection.cs` to register validators and MediatR behaviors, including `ValidationBehavior<,>`. - Added `ValidationBehavior<TRequest, TResponse>` to handle request validation in the MediatR pipeline. - Created `ReadOutResQueryValidator` to enforce validation rules for `ReadOutResQuery`. - Refactored namespaces and imports for better organization. These changes improve extensibility, maintainability, and separation of concerns in the application.
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="AutoMapper" Version="15.1.0" />
|
|
<PackageReference Include="DigitalData.Core.Abstraction.Application" Version="1.5.0" />
|
|
<PackageReference Include="DigitalData.Core.Application" Version="3.4.0" />
|
|
<PackageReference Include="DigitalData.Core.Exceptions" Version="1.1.0" />
|
|
<PackageReference Include="FluentValidation" Version="12.1.0" />
|
|
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="12.1.0" />
|
|
<PackageReference Include="MediatR" Version="13.1.0" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.11" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.11" />
|
|
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\ReC.Domain\ReC.Domain.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|