DD.WellWorkover.Cloud/AsbCloudInfrastructure/Repository
2022-10-25 17:23:01 +05:00
..
CrudCacheServiceBase.cs fix nullable warnings 2022-07-04 17:48:14 +05:00
CrudServiceBase.cs наполнение сервисов 2022-08-01 13:55:51 +05:00
CrudWellRelatedCacheServiceBase.cs Rename ICrudWellRelatedService to IRepositoryWellRelated, and related services 2022-08-11 14:21:28 +05:00
CrudWellRelatedServiceBase.cs Rename ICrudWellRelatedService to IRepositoryWellRelated, and related services 2022-08-11 14:21:28 +05:00
DrillFlowChartRepository.cs Rename ICrudWellRelatedService to IRepositoryWellRelated, and related services 2022-08-11 14:21:28 +05:00
FileRepository.cs #6385536 refactoring 2022-10-17 14:42:47 +05:00
FileStorageRepository.cs #6385536 refactoring 2022-10-17 14:42:47 +05:00
readme.md Crud services moved to Repository directory 2022-06-16 12:33:05 +05:00
ScheduleRepository.cs Rename ICrudWellRelatedService to IRepositoryWellRelated, and related services 2022-08-11 14:21:28 +05:00
SetpointsRequestRepository.cs Crud services moved to Repository directory 2022-06-16 12:33:05 +05:00
UserSettingsRepository.cs IUserSettingsRepository replace insert and update to upsert. 2022-08-15 13:19:44 +05:00
WellCompositeRepository.cs 7051313 nit 2022-10-19 15:00:18 +05:00
WitsRecordRepository.cs Fix WitsRecordRepository.SaveDataAsync(). Add some milliseconds to duplicated records. 2022-10-25 17:23:01 +05:00

Repository

Repository - CRUD сервис для сущности в проекте. Не содержит бизнес логику.

Вся логика такого сервиса - преобразование данных полученых из БД в Data Transfer Object (DTO) и обратно. Преобразования осуществляются методами Convert с базовым маппингом:

    protected virtual TDto Convert(TEntity src) => src.Adapt<TDto>();
    protected virtual TEntity Convert(TDto src) => src.Adapt<TEntity>();