2024-07-04 11:02:45 +05:00
|
|
|
using AsbCloudApp.Data;
|
2022-06-09 11:19:52 +05:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Репозиторий получения, добавления, изменения, удаления данных<br/>
|
|
|
|
/// Для сущностей относящихся к скважине
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="Tdto"></typeparam>
|
|
|
|
public interface IRepositoryWellRelated<Tdto> : ICrudRepository<Tdto>
|
|
|
|
where Tdto : IId, IWellRelated
|
2022-06-09 11:19:52 +05:00
|
|
|
{
|
|
|
|
/// <summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
/// Получение всех записей по скважине
|
2022-06-09 11:19:52 +05:00
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <param name="idWell">id скважины</param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns>emptyList if nothing found</returns>
|
|
|
|
Task<IEnumerable<Tdto>> GetByIdWellAsync(int idWell, CancellationToken token);
|
2022-06-09 11:19:52 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Получение всех записей по нескольким скважинам
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="idsWells">id скважин</param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns>emptyList if nothing found</returns>
|
|
|
|
Task<IEnumerable<Tdto>> GetByIdWellAsync(IEnumerable<int> idsWells, CancellationToken token);
|
2022-06-09 11:19:52 +05:00
|
|
|
}
|