DD.WellWorkover.Cloud/AsbCloudApp/Repositories/IChangeLogRepository.cs

42 lines
1.1 KiB
C#
Raw Normal View History

2024-01-19 17:48:45 +05:00
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using AsbCloudApp.Data;
namespace AsbCloudApp.Repositories;
/// <summary>
/// Репозиторий для записей с историей
/// </summary>
public interface IChangeLogRepository<T>
where T : ChangeLogAbstract
{
/// <summary>
/// Добавление записей
/// </summary>
/// <param name="idUser"></param>
/// <param name="dtos"></param>
/// <param name="token"></param>
/// <returns></returns>
2024-01-20 15:38:37 +05:00
Task<int> InsertRange(int idUser, IEnumerable<T> dtos, CancellationToken token);
2024-01-19 17:48:45 +05:00
/// <summary>
/// Редактирование записей
/// </summary>
/// <param name="idUser"></param>
/// <param name="dtos"></param>
/// <param name="token"></param>
/// <returns></returns>
2024-01-20 15:38:37 +05:00
Task<int> UpdateRange(int idUser, IEnumerable<T> dtos, CancellationToken token);
2024-01-19 17:48:45 +05:00
/// <summary>
/// Удаление записей
/// </summary>
/// <param name="idUser"></param>
/// <param name="ids"></param>
/// <param name="token"></param>
/// <returns></returns>
2024-01-20 15:38:37 +05:00
Task<int> DeleteRange(int idUser, IEnumerable<int> ids, CancellationToken token);
2024-01-19 17:48:45 +05:00
}