2024-07-04 11:02:45 +05:00
|
|
|
using AsbCloudDb.Model.GTR;
|
2022-08-01 13:55:51 +05:00
|
|
|
using AsbCloudDb.Model.WITS;
|
2022-05-06 10:58:52 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2023-06-30 15:49:30 +05:00
|
|
|
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
2021-09-29 09:59:10 +05:00
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
2021-05-17 12:53:30 +05:00
|
|
|
using System;
|
2021-04-02 17:28:07 +05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2023-11-14 10:44:06 +05:00
|
|
|
using AsbCloudDb.Model.DailyReports;
|
2023-08-10 10:32:35 +05:00
|
|
|
using AsbCloudDb.Model.Manuals;
|
2024-08-20 14:08:10 +05:00
|
|
|
using AsbCloudDb.Model.ProcessMapPlan;
|
2023-12-04 16:55:56 +05:00
|
|
|
using AsbCloudDb.Model.WellSections;
|
2023-11-21 15:10:22 +05:00
|
|
|
using AsbCloudDb.Model.Trajectory;
|
2024-06-30 21:02:55 +05:00
|
|
|
using AsbCloudDb.Model.ProcessMapPlan.Functions;
|
|
|
|
using AsbCloudDb.Model.ProcessMapPlan.Operations;
|
2021-04-02 17:28:07 +05:00
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
{
|
2022-04-11 18:00:34 +05:00
|
|
|
public interface IAsbCloudDbContext : IDisposable
|
2021-04-02 17:28:07 +05:00
|
|
|
{
|
2022-05-06 10:58:52 +05:00
|
|
|
DbSet<Cluster> Clusters { get; }
|
|
|
|
DbSet<Company> Companies { get; }
|
2023-06-21 11:44:04 +05:00
|
|
|
DbSet<CompanyType> CompaniesTypes { get; }
|
2023-11-03 17:56:26 +05:00
|
|
|
DbSet<DailyReport> DailyReports { get; }
|
2022-05-06 10:58:52 +05:00
|
|
|
DbSet<Deposit> Deposits { get; }
|
|
|
|
DbSet<DetectedOperation> DetectedOperations { get; }
|
2023-11-30 09:40:51 +05:00
|
|
|
DbSet<TrajectoryPlan> TrajectoriesPlan { get; }
|
2022-05-06 10:58:52 +05:00
|
|
|
DbSet<DrillingProgramPart> DrillingProgramParts { get; }
|
|
|
|
DbSet<FileCategory> FileCategories { get; }
|
|
|
|
DbSet<FileInfo> Files { get; }
|
|
|
|
DbSet<FileMark> FileMarks { get; }
|
|
|
|
DbSet<Measure> Measures { get; }
|
|
|
|
DbSet<MeasureCategory> MeasureCategories { get; }
|
|
|
|
DbSet<Permission> Permissions { get; }
|
|
|
|
DbSet<RelationCompanyWell> RelationCompaniesWells { get; }
|
|
|
|
DbSet<RelationUserDrillingProgramPart> RelationDrillingProgramPartUsers { get; }
|
|
|
|
DbSet<RelationUserRolePermission> RelationUserRolePermissions { get; }
|
|
|
|
DbSet<RelationUserUserRole> RelationUserUserRoles { get; }
|
2022-10-26 15:36:49 +05:00
|
|
|
DbSet<RelationUserRoleUserRole> RelationUserRoleUserRoles { get; }
|
2023-06-21 11:44:04 +05:00
|
|
|
DbSet<RelationContactWell> RelationContactsWells { get; }
|
2022-05-06 10:58:52 +05:00
|
|
|
DbSet<ReportProperty> ReportProperties { get; }
|
2022-08-01 13:55:51 +05:00
|
|
|
DbSet<Subsystem> Subsystems { get; }
|
2022-05-06 10:58:52 +05:00
|
|
|
DbSet<Telemetry> Telemetries { get; }
|
|
|
|
DbSet<TelemetryDataSaub> TelemetryDataSaub { get; }
|
|
|
|
DbSet<TelemetryDataSaubStat> TelemetryDataSaubStats { get; }
|
|
|
|
DbSet<TelemetryDataSpin> TelemetryDataSpin { get; }
|
|
|
|
DbSet<TelemetryEvent> TelemetryEvents { get; }
|
|
|
|
DbSet<TelemetryMessage> TelemetryMessages { get; }
|
|
|
|
DbSet<TelemetryUser> TelemetryUsers { get; }
|
|
|
|
DbSet<User> Users { get; }
|
|
|
|
DbSet<UserRole> UserRoles { get; }
|
|
|
|
DbSet<Well> Wells { get; }
|
|
|
|
DbSet<WellComposite> WellComposites { get; }
|
|
|
|
DbSet<WellOperation> WellOperations { get; }
|
|
|
|
DbSet<WellOperationCategory> WellOperationCategories { get; }
|
|
|
|
DbSet<WellSectionType> WellSectionTypes { get; }
|
|
|
|
DbSet<WellType> WellTypes { get; }
|
2023-04-04 21:21:06 +05:00
|
|
|
DbSet<WitsItemFloat> WitsItemFloat { get; }
|
|
|
|
DbSet<WitsItemInt> WitsItemInt { get; }
|
|
|
|
DbSet<WitsItemString> WitsItemString { get; }
|
2022-05-22 21:18:43 +05:00
|
|
|
DbSet<Driller> Drillers { get; }
|
2022-05-26 13:28:16 +05:00
|
|
|
DbSet<Schedule> Schedule { get; }
|
2022-06-07 16:24:05 +05:00
|
|
|
DbSet<OperationValue> OperationValues { get; }
|
2022-09-12 08:22:46 +05:00
|
|
|
DbSet<WellFinalDocument> WellFinalDocuments { get; }
|
2022-11-18 14:29:29 +05:00
|
|
|
DbSet<LimitingParameter> LimitingParameter { get; }
|
2023-01-10 10:49:27 +05:00
|
|
|
DbSet<TelemetryWirelineRunOut> TelemetryWirelineRunOut { get; }
|
2023-04-21 11:22:39 +05:00
|
|
|
DbSet<Faq> Faqs { get; }
|
2022-05-06 10:58:52 +05:00
|
|
|
DbSet<Record1> Record1 { get; }
|
|
|
|
DbSet<Record7> Record7 { get; }
|
|
|
|
DbSet<Record8> Record8 { get; }
|
|
|
|
DbSet<Record50> Record50 { get; }
|
|
|
|
DbSet<Record60> Record60 { get; }
|
|
|
|
DbSet<Record61> Record61 { get; }
|
2023-06-28 16:36:13 +05:00
|
|
|
DbSet<HelpPage> HelpPages { get; }
|
2023-07-07 16:26:16 +05:00
|
|
|
DbSet<Notification> Notifications { get; }
|
|
|
|
DbSet<NotificationCategory> NotificationCategories { get; }
|
2023-08-10 10:32:35 +05:00
|
|
|
DbSet<Manual> Manuals { get; }
|
2023-09-07 12:21:54 +05:00
|
|
|
DbSet<ManualDirectory> ManualDirectories { get; }
|
2023-10-09 12:20:00 +05:00
|
|
|
DbSet<Contact> Contacts { get; }
|
2023-10-17 11:24:52 +05:00
|
|
|
DbSet<DrillTest> DrillTests { get; }
|
2023-11-30 09:40:51 +05:00
|
|
|
DbSet<TrajectoryFact> TrajectoriesFact { get; }
|
2023-12-13 18:06:48 +05:00
|
|
|
DbSet<WellSectionPlan> WellSectionsPlan { get; }
|
2024-01-31 10:47:00 +05:00
|
|
|
DbSet<DataSaubStat> DataSaubStat { get; }
|
2021-09-29 09:59:10 +05:00
|
|
|
DatabaseFacade Database { get; }
|
2024-06-24 16:05:45 +05:00
|
|
|
DbSet<ProcessMapPlanRotor> ProcessMapPlanRotor { get; }
|
|
|
|
DbSet<ProcessMapPlanSlide> ProcessMapPlanSlide { get; }
|
2024-06-30 21:23:21 +05:00
|
|
|
DbSet<ProcessMapPlanReamingRotor> ProcessMapPlanReamingRotor { get; }
|
|
|
|
DbSet<ProcessMapPlanReamingSlide> ProcessMapPlanReamingSlide { get; }
|
|
|
|
DbSet<ProcessMapPlanLoadCapacity> ProcessMapPlanLoadCapacity { get; }
|
|
|
|
DbSet<ProcessMapPlanRecordingStaticMeasurement> ProcessMapPlanRecordingStaticMeasurement { get; }
|
|
|
|
DbSet<ProcessMapPlanPositioningOffTheBottom> ProcessMapPlanPositioningOffTheBottom { get; }
|
|
|
|
DbSet<ProcessMapPlanOscillationAngles> ProcessMapPlanOscillationAngles { get; }
|
|
|
|
DbSet<ProcessMapPlanTFOrientation> ProcessMapPlanTFOrientation { get; }
|
|
|
|
DbSet<ProcessMapPlanSwitchingOffThePump> ProcessMapPlanSwitchingOffThePump { get; }
|
|
|
|
DbSet<ProcessMapPlanSwitchingToTheMode> ProcessMapPlanSwitchingToTheMode { get; }
|
|
|
|
DbSet<ProcessMapPlanDrillTest> ProcessMapPlanDrillTest { get; }
|
|
|
|
DbSet<ProcessMapPlanShockTest> ProcessMapPlanShockTest { get; }
|
|
|
|
DbSet<ProcessMapPlanDamper> ProcessMapPlanDamper { get; }
|
|
|
|
DbSet<ProcessMapPlanAutoHoldTF> ProcessMapPlanAutoHoldTF { get; }
|
|
|
|
DbSet<ProcessMapPlanOscillation> ProcessMapPlanOscillation { get; }
|
|
|
|
DbSet<ProcessMapPlanAntiCrashRotation> ProcessMapPlanAntiCrashRotation { get; }
|
|
|
|
DbSet<ProcessMapPlanStaticMeasurementOutput> ProcessMapPlanStaticMeasurementOutput { get; }
|
2024-08-20 14:08:10 +05:00
|
|
|
DbSet<ProcessMapPlanSubsystems> ProcessMapPlanSubsystems { get; }
|
|
|
|
|
2022-07-04 17:33:32 +05:00
|
|
|
Task<int> RefreshMaterializedViewAsync(string mwName, CancellationToken token);
|
|
|
|
Task<int> RefreshMaterializedViewAsync<TEntity>(CancellationToken token) where TEntity : class;
|
2021-04-02 17:28:07 +05:00
|
|
|
int SaveChanges();
|
|
|
|
int SaveChanges(bool acceptAllChangesOnSuccess);
|
2023-06-30 15:49:30 +05:00
|
|
|
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
|
|
|
DbSet<TEntity> Set<TEntity>() where TEntity : class;
|
|
|
|
|
|
|
|
EntityEntry<TEntity> Entry<TEntity>(TEntity entity)
|
|
|
|
where TEntity : class;
|
2021-04-02 17:28:07 +05:00
|
|
|
}
|
|
|
|
}
|