2024-11-01 12:26:14 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Persistence.Models;
|
|
|
|
|
using System;
|
2024-10-31 15:01:12 +05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Persistence.Repositories;
|
2024-11-01 12:26:14 +05:00
|
|
|
|
public abstract class AbstractTimeSeriesDataRepository<TEntity, TDto> : ITimeSeriesDataRepository<TDto>
|
2024-11-12 13:36:09 +05:00
|
|
|
|
where TDto : class, ITimeSeriesAbstractDto
|
2024-11-01 12:26:14 +05:00
|
|
|
|
where TEntity : class, IChangeLogAbstract
|
2024-10-31 15:01:12 +05:00
|
|
|
|
{
|
2024-11-01 12:26:14 +05:00
|
|
|
|
private readonly DbContext dbContext;
|
|
|
|
|
|
|
|
|
|
protected AbstractTimeSeriesDataRepository(DbContext dbContext)
|
|
|
|
|
{
|
|
|
|
|
this.dbContext = dbContext;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-12 13:36:09 +05:00
|
|
|
|
public Task<IEnumerable<TDto>> GetAsync(DateTimeOffset dateBegin, DateTimeOffset dateEnd, CancellationToken token)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task<DatesRangeDto> GetDatesRangeAsync(CancellationToken token)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-01 12:26:14 +05:00
|
|
|
|
public Task<IEnumerable<TDto>> GetGtDate(DateTimeOffset date, CancellationToken token)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task<int> InsertRange(IEnumerable<TDto> dtos, CancellationToken token)
|
2024-10-31 15:01:12 +05:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|