persistence/DD.Persistence/Repositories/ITimestampedValuesRepository.cs

21 lines
691 B
C#
Raw Normal View History

using DD.Persistence.Models;
2025-01-13 17:45:49 +05:00
using DD.Persistence.ModelsAbstractions;
namespace DD.Persistence.Repositories;
2024-10-31 15:01:12 +05:00
/// <summary>
2024-11-02 12:05:12 +05:00
/// Интерфейс по работе с временными данными
2024-10-31 15:01:12 +05:00
/// </summary>
/// <typeparam name="TDto"></typeparam>
2025-01-13 17:45:49 +05:00
public interface ITimestampedValuesRepository<TDto> : ISyncRepository<TDto>, ITimeSeriesBaseRepository
where TDto : class, ITimestampAbstractDto, new()
2024-10-31 15:01:12 +05:00
{
2024-11-01 12:26:14 +05:00
/// <summary>
/// Добавление записей
/// </summary>
/// <param name="dtos"></param>
/// <param name="token"></param>
/// <returns></returns>
2025-01-13 17:45:49 +05:00
Task<int> AddRange(IEnumerable<TimestampedSetDto> dtos, CancellationToken token);
2024-10-31 15:01:12 +05:00
}