using Microsoft.EntityFrameworkCore; using System; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace AsbCloudDb.Model { public interface IAsbCloudDbContext { DbSet Clusters { get; set; } DbSet Customers { get; set; } DbSet DataSaubBases { get; set; } DbSet Deposits { get; set; } DbSet Events { get; set; } DbSet Messages { get; set; } DbSet Telemetries { get; set; } DbSet TelemetryUsers { get; set; } DbSet Users { get; set; } DbSet Wells { get; set; } DbSet UserRoles { get; set; } int SaveChanges(); int SaveChanges(bool acceptAllChangesOnSuccess); Task SaveChangesAsync(CancellationToken cancellationToken); IQueryable GetWellsByCustomer(int idCustomer); IQueryable GetUsersByLogin(string login); (DateTime From, DateTime To) GetDatesRange(DbSet dbSet, int idTelemetry) where T : class, IIdTelemetryDate; Task CreatePartitionAsync(string propertyName, int id, CancellationToken token = default) where TEntity : class; } }