remove #nullable

This commit is contained in:
ngfrolov 2023-05-19 16:51:41 +05:00
parent 8eaad67496
commit b10dde9135
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7
23 changed files with 41 additions and 42 deletions

View File

@ -23,5 +23,5 @@ namespace AsbCloudApp.Data
/// </summary> /// </summary>
public IEnumerable<WellFinalDocumentDto> WellFinalDocuments { get; set; } = Enumerable.Empty<WellFinalDocumentDto>(); public IEnumerable<WellFinalDocumentDto> WellFinalDocuments { get; set; } = Enumerable.Empty<WellFinalDocumentDto>();
} }
#nullable disable
} }

View File

@ -58,4 +58,3 @@ public class WellGroupOpertionDto
/// </summary> /// </summary>
public IEnumerable<WellGroupOpertionDto>? Items { get; set; } public IEnumerable<WellGroupOpertionDto>? Items { get; set; }
} }
#nullable disable

View File

@ -22,5 +22,5 @@ namespace AsbCloudApp.Data
public DateTime? DateLastAssosiatedPlanOperation { get; set; } public DateTime? DateLastAssosiatedPlanOperation { get; set; }
} }
#nullable disable
} }

View File

@ -11,7 +11,7 @@ using System.Threading.Tasks;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// CRUD контроллер для админки. /// CRUD контроллер для админки.
/// </summary> /// </summary>
@ -140,5 +140,5 @@ namespace AsbCloudWebApi.Controllers
return Ok(result); return Ok(result);
} }
} }
#nullable disable
} }

View File

@ -10,7 +10,7 @@ using System.Threading.Tasks;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// CRUD контроллер dto связных со скважиной для админки. /// CRUD контроллер dto связных со скважиной для админки.
/// </summary> /// </summary>
@ -161,5 +161,5 @@ namespace AsbCloudWebApi.Controllers
return false; return false;
} }
} }
#nullable disable
} }

View File

@ -13,7 +13,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Суточный рапорт /// Суточный рапорт
/// </summary> /// </summary>
@ -194,5 +194,5 @@ namespace AsbCloudWebApi.Controllers
return false; return false;
} }
} }
#nullable disable
} }

View File

@ -13,7 +13,7 @@ using AsbCloudApp.Repositories;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Хранение файлов /// Хранение файлов
/// </summary> /// </summary>
@ -244,5 +244,5 @@ namespace AsbCloudWebApi.Controllers
} }
} }
} }
#nullable disable
} }

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Статистика по операциям (заведенным вручную) на скважине /// Статистика по операциям (заведенным вручную) на скважине
/// </summary> /// </summary>
@ -166,5 +166,5 @@ namespace AsbCloudWebApi.Controllers
idWell, token).ConfigureAwait(false); idWell, token).ConfigureAwait(false);
} }
} }
#nullable disable
} }

View File

@ -11,7 +11,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Плановая траектория (загрузка и хранение) /// Плановая траектория (загрузка и хранение)
/// </summary> /// </summary>
@ -249,5 +249,5 @@ namespace AsbCloudWebApi.Controllers
idWell, token).ConfigureAwait(false); idWell, token).ConfigureAwait(false);
} }
} }
#nullable disable
} }

View File

@ -11,7 +11,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// РТК /// РТК
/// </summary> /// </summary>
@ -152,5 +152,5 @@ namespace AsbCloudWebApi.Controllers
return await base.UpdateAsync(value, token); return await base.UpdateAsync(value, token);
} }
} }
#nullable disable
} }

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Мониторинг запросов, ошибок, пользователей /// Мониторинг запросов, ошибок, пользователей
/// </summary> /// </summary>
@ -88,5 +88,5 @@ namespace AsbCloudWebApi.Controllers
return Ok(result); return Ok(result);
} }
} }
#nullable disable
} }

View File

@ -12,7 +12,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers.SAUB namespace AsbCloudWebApi.Controllers.SAUB
{ {
#nullable enable
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
public class GtrWitsController : ControllerBase public class GtrWitsController : ControllerBase
@ -118,5 +118,5 @@ namespace AsbCloudWebApi.Controllers.SAUB
return Ok(); return Ok();
} }
} }
#nullable disable
} }

View File

@ -11,7 +11,7 @@ using AsbCloudApp.Repositories;
namespace AsbCloudWebApi.Controllers.SAUB namespace AsbCloudWebApi.Controllers.SAUB
{ {
#nullable enable
/// <summary> /// <summary>
/// Наработка талевого каната /// Наработка талевого каната
/// </summary> /// </summary>
@ -112,5 +112,5 @@ namespace AsbCloudWebApi.Controllers.SAUB
} }
} }
#nullable disable
} }

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Расписание бурильщиков /// Расписание бурильщиков
/// </summary> /// </summary>

View File

@ -10,7 +10,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Композитная скважина /// Композитная скважина
/// </summary> /// </summary>
@ -90,5 +90,5 @@ namespace AsbCloudWebApi.Controllers
idWell, token).ConfigureAwait(false); idWell, token).ConfigureAwait(false);
} }
} }
#nullable disable
} }

View File

@ -11,7 +11,7 @@ using AsbCloudApp.Repositories;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Дело скважины /// Дело скважины
/// </summary> /// </summary>
@ -175,5 +175,5 @@ namespace AsbCloudWebApi.Controllers
idWell, token).ConfigureAwait(false); idWell, token).ConfigureAwait(false);
} }
} }
#nullable disable
} }

View File

@ -14,7 +14,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers namespace AsbCloudWebApi.Controllers
{ {
#nullable enable
/// <summary> /// <summary>
/// Буровые операции (вводимые вручную) /// Буровые операции (вводимые вручную)
/// </summary> /// </summary>
@ -393,5 +393,5 @@ namespace AsbCloudWebApi.Controllers
idWell, token).ConfigureAwait(false); idWell, token).ConfigureAwait(false);
} }
} }
#nullable disable
} }

View File

@ -4,7 +4,7 @@ using System.Text.Json.Serialization;
namespace AsbCloudWebApi.Converters namespace AsbCloudWebApi.Converters
{ {
#nullable enable
public class DateOnlyJsonConverter : JsonConverter<DateOnly> public class DateOnlyJsonConverter : JsonConverter<DateOnly>
{ {
public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
@ -18,5 +18,5 @@ namespace AsbCloudWebApi.Converters
writer.WriteStringValue(isoDate); writer.WriteStringValue(isoDate);
} }
} }
#nullable disable
} }

View File

@ -6,7 +6,7 @@ using System.Text.Json.Serialization;
namespace AsbCloudWebApi.Converters namespace AsbCloudWebApi.Converters
{ {
#nullable enable
public class DateOnlyTypeConverter : TypeConverter public class DateOnlyTypeConverter : TypeConverter
{ {
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
@ -44,5 +44,5 @@ namespace AsbCloudWebApi.Converters
return base.ConvertTo(context, culture, value, destinationType); return base.ConvertTo(context, culture, value, destinationType);
} }
} }
#nullable disable
} }

View File

@ -4,7 +4,7 @@ using System.Globalization;
namespace AsbCloudWebApi.Converters namespace AsbCloudWebApi.Converters
{ {
#nullable enable
public class TimeOnlyTypeConverter : TypeConverter public class TimeOnlyTypeConverter : TypeConverter
{ {
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
@ -42,5 +42,5 @@ namespace AsbCloudWebApi.Converters
return base.ConvertTo(context, culture, value, destinationType); return base.ConvertTo(context, culture, value, destinationType);
} }
} }
#nullable disable
} }

View File

@ -10,7 +10,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Middlewares namespace AsbCloudWebApi.Middlewares
{ {
#nullable enable
public class PermissionsMiddlware public class PermissionsMiddlware
{ {
private readonly RequestDelegate next; private readonly RequestDelegate next;
@ -80,5 +80,5 @@ namespace AsbCloudWebApi.Middlewares
await context.ForbidAsync(); await context.ForbidAsync();
} }
} }
#nullable disable
} }

View File

@ -4,7 +4,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Middlewares namespace AsbCloudWebApi.Middlewares
{ {
#nullable enable
public class RequerstTrackerMiddleware public class RequerstTrackerMiddleware
{ {
private readonly RequestDelegate next; private readonly RequestDelegate next;
@ -49,5 +49,5 @@ namespace AsbCloudWebApi.Middlewares
} }
} }
} }
#nullable disable
} }

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Middlewares namespace AsbCloudWebApi.Middlewares
{ {
#nullable enable
/// <summary> /// <summary>
/// This is not real middleware it`s part of PermissionsMiddlware. /// This is not real middleware it`s part of PermissionsMiddlware.
/// DO NOT register it in setup.cs as middleware. /// DO NOT register it in setup.cs as middleware.
@ -69,5 +69,5 @@ namespace AsbCloudWebApi.Middlewares
} }
} }
} }
#nullable disable
} }