forked from ddrilling/AsbCloudServer
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
|
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>
|
|||
|
Task<int> InsertRangeAsync(int idUser, IEnumerable<T> dtos, CancellationToken token);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Редактирование записей
|
|||
|
/// </summary>
|
|||
|
/// <param name="idUser"></param>
|
|||
|
/// <param name="dtos"></param>
|
|||
|
/// <param name="token"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<int> UpdateRangeAsync(int idUser, IEnumerable<T> dtos, CancellationToken token);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Удаление записей
|
|||
|
/// </summary>
|
|||
|
/// <param name="idUser"></param>
|
|||
|
/// <param name="ids"></param>
|
|||
|
/// <param name="token"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<int> DeleteRangeAsync(int idUser, IEnumerable<int> ids, CancellationToken token);
|
|||
|
|
|||
|
}
|