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.ProcessMapPlan; using AsbCloudDb.Model.WellSections; using AsbCloudDb.Model.Trajectory; using AsbCloudDb.Model.ProcessMapPlan.Functions; using AsbCloudDb.Model.ProcessMapPlan.Operations; 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 TelemetryDataWellWorkover { 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; } DbSet DataSaubStatDrillingQuality { get; } DatabaseFacade Database { get; } DbSet ProcessMapPlanRotor { get; } DbSet ProcessMapPlanSlide { get; } DbSet ProcessMapPlanReamingRotor { get; } DbSet ProcessMapPlanReamingSlide { get; } DbSet ProcessMapPlanLoadCapacity { get; } DbSet ProcessMapPlanRecordingStaticMeasurement { get; } DbSet ProcessMapPlanPositioningOffTheBottom { get; } DbSet ProcessMapPlanOscillationAngles { get; } DbSet ProcessMapPlanTFOrientation { get; } DbSet ProcessMapPlanSwitchingOffThePump { get; } DbSet ProcessMapPlanSwitchingToTheMode { get; } DbSet ProcessMapPlanDrillTest { get; } DbSet ProcessMapPlanShockTest { get; } DbSet ProcessMapPlanDamper { get; } DbSet ProcessMapPlanAutoHoldTF { get; } DbSet ProcessMapPlanOscillation { get; } DbSet ProcessMapPlanAntiCrashRotation { get; } DbSet ProcessMapPlanStaticMeasurementOutput { get; } DbSet ProcessMapPlanSubsystems { 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; } }