forked from ddrilling/AsbCloudServer
32 lines
1.7 KiB
C#
32 lines
1.7 KiB
C#
using AsbCloudApp.Data;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using FluentValidation;
|
|
|
|
namespace AsbCloudInfrastructure.Validators
|
|
{
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddValidators(this IServiceCollection services)
|
|
{
|
|
services.AddTransient<IValidator<AuthDto>, AuthDtoValidator>();
|
|
services.AddTransient<IValidator<ClusterDto>, ClusterDtoValidator>();
|
|
services.AddTransient<IValidator<CompanyDto>, CompanyDtoValidator>();
|
|
services.AddTransient<IValidator<DepositDto>, DepositDtoValidator>();
|
|
services.AddTransient<IValidator<DrillFlowChartDto>, DrillFlowChartDtoValidator>();
|
|
services.AddTransient<IValidator<EventDto>, EventDtoValidator>();
|
|
services.AddTransient<IValidator<FileInfoDto>, FileInfoDtoValidator>();
|
|
services.AddTransient<IValidator<FileMarkDto>, FileMarkDtoValidator>();
|
|
services.AddTransient<IValidator<MeasureDto>, MeasureDtoValidator>();
|
|
services.AddTransient<IValidator<MessageDto>, MessageDtoValidator>();
|
|
services.AddTransient<IValidator<PermissionDto>, PermissionDtoValidator>();
|
|
services.AddTransient<IValidator<ReportPropertiesDto>, ReportPropertiesDtoValidator>();
|
|
services.AddTransient<IValidator<UserRegistrationDto>, UserRegistrationDtoValidator>();
|
|
services.AddTransient<IValidator<UserRoleDto>, UserRoleDtoValidator>();
|
|
services.AddTransient<IValidator<WellDto>, WellDtoValidator>();
|
|
services.AddTransient<IValidator<WellOperationDto>, WellOperationDtoValidator>();
|
|
|
|
return services;
|
|
}
|
|
}
|
|
} |