using AsbCloudDb.Model.GTR; using AsbCloudDb.Model.WITS; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.Infrastructure; using System; using System.Threading; using System.Threading.Tasks; using AsbCloudDb.Model.DailyReports; using AsbCloudDb.Model.Manuals; using AsbCloudDb.Model.ProcessMaps; using AsbCloudDb.Model.WellSections; using AsbCloudDb.Model.Trajectory; namespace AsbCloudDb.Model { public interface IAsbCloudDbContext : IDisposable { DbSet Clusters { get; } DbSet Companies { get; } DbSet CompaniesTypes { get; } DbSet DailyReports { get; } DbSet Deposits { get; } DbSet DetectedOperations { get; } DbSet TrajectoriesPlan { get; } DbSet DrillingProgramParts { 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 RelationUserRoleUserRoles { get; } DbSet RelationContactsWells { get; } DbSet ReportProperties { get; } DbSet Subsystems { 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 WitsItemFloat { get; } DbSet WitsItemInt { get; } DbSet WitsItemString { get; } DbSet Drillers { get; } DbSet Schedule { get; } DbSet OperationValues { get; } DbSet WellFinalDocuments { get; } DbSet LimitingParameter { get; } DbSet TelemetryWirelineRunOut { get; } DbSet Faqs { get; } DbSet Record1 { get; } DbSet Record7 { get; } DbSet Record8 { get; } DbSet Record50 { get; } DbSet Record60 { get; } DbSet Record61 { get; } DbSet HelpPages { get; } DbSet Notifications { get; } DbSet NotificationCategories { get; } DbSet Manuals { get; } DbSet ManualDirectories { get; } DbSet Contacts { get; } DbSet DrillTests { get; } DbSet TrajectoriesFact { get; } DbSet WellSectionsPlan { get; } DbSet DataSaubStat { get; } DatabaseFacade Database { get; } DbSet ProcessMapPlanReams { get; } DbSet ProcessMapPlanRotor { get; } DbSet ProcessMapPlanSlide { get; } DbSet ProcessMapPlanOperationReamingRotor { get; } DbSet ProcessMapPlanOperationReamingSlide { get; } DbSet ProcessMapPlanOperationLoadCapacity { get; } DbSet ProcessMapPlanSurvey { get; } DbSet ProcessMapPlanOperationPositioningOffTheBottom { get; } DbSet ProcessMapPlanOperationDeterminationOfOscillationAngles { get; } DbSet ProcessMapPlanOperationTFOrientation { get; } DbSet ProcessMapPlanOperationSwitchPump { get; } DbSet ProcessMapPlanOperationSwitchMode { get; } DbSet ProcessMapPlanFunctionsDrillTest { get; } DbSet ProcessMapPlanFunctionsShockTest { get; } DbSet ProcessMapPlanFunctionsDamper { get; } DbSet ProcessMapPlanFunctionsAutoHold { get; } DbSet ProcessMapPlanFunctionsJarrDrillTool { get; } DbSet ProcessMapPlanFunctionsUpgradeNoload { get; } DbSet ProcessMapPlanFunctionsOscillation { get; } DbSet ProcessMapPlanFunctionsAnticrashRotation { get; } DbSet ProcessMapPlanFunctionsStaticMeasure { 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() where TEntity : class; EntityEntry Entry(TEntity entity) where TEntity : class; } }