using AsbCloudDb.Model.WITS; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using System; using System.Threading; using System.Threading.Tasks; namespace AsbCloudDb.Model { public interface IAsbCloudDbContext : IDisposable { DbSet Clusters { get; } DbSet Companies { get; } DbSet DailyReports { get; } DbSet Deposits { get; } DbSet DetectedOperations { get; } DbSet DrillFlowChart { get; } DbSet DrillingProgramParts { get; } DbSet DrillParams { get; } DbSet FileCategories { get; } DbSet Files { get; } DbSet FileMarks { get; } DbSet Measures { get; } DbSet MeasureCategories { get; } DbSet Permissions { get; } DbSet RelationCompaniesWells { get; } DbSet RelationDrillingProgramPartUsers { get; } DbSet RelationUserRolePermissions { get; } DbSet RelationUserUserRoles { get; } DbSet ReportProperties { get; } DbSet Telemetries { get; } DbSet TelemetryDataSaub { get; } DbSet TelemetryDataSaubStats { get; } DbSet TelemetryDataSpin { get; } DbSet TelemetryEvents { get; } DbSet TelemetryMessages { get; } DbSet TelemetryUsers { get; } DbSet Users { get; } DbSet UserRoles { get; } DbSet Wells { get; } DbSet WellComposites { get; } DbSet WellOperations { get; } DbSet WellOperationCategories { get; } DbSet WellSectionTypes { get; } DbSet WellTypes { get; } DbSet Drillers { get; } DbSet Schedule { get; } DbSet OperationValues { get; } DbSet Record1 { get; } DbSet Record7 { get; } DbSet Record8 { get; } DbSet Record50 { get; } DbSet Record60 { get; } DbSet Record61 { get; } DatabaseFacade Database { get; } Task RefreshMaterializedViewAsync(string mwName, CancellationToken token); Task RefreshMaterializedViewAsync(CancellationToken token) where TEntity : class; int SaveChanges(); int SaveChanges(bool acceptAllChangesOnSuccess); Task SaveChangesAsync(CancellationToken cancellationToken); DbSet Set(string name) where TEntity : class; DbSet Set() where TEntity : class; } }