nit WellOperation.id = default on Add

This commit is contained in:
Фролов 2021-09-30 18:02:50 +05:00
parent 4c08a2963f
commit 427a713095

View File

@ -125,7 +125,7 @@ namespace AsbCloudInfrastructure.Services
foreach (var operationDto in wellOperationDtos) foreach (var operationDto in wellOperationDtos)
{ {
var entity = operationDto.Adapt<WellOperation>(); var entity = operationDto.Adapt<WellOperation>();
entity.Id = 0; entity.Id = default;
entity.IdWell = idWell; entity.IdWell = idWell;
context.WellOperations.Add(entity); context.WellOperations.Add(entity);
} }