2023-03-28 01:05:15 +05:00
|
|
|
|
using AsbCloudDb.Model.GTR;
|
|
|
|
|
using AsbCloudDb.Model.Subsystems;
|
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-08-10 10:32:35 +05:00
|
|
|
|
using AsbCloudDb.Model.Manuals;
|
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; }
|
2022-07-25 18:02:39 +05:00
|
|
|
|
DbSet<DailyReport.DailyReport> DailyReports { get; }
|
2022-05-06 10:58:52 +05:00
|
|
|
|
DbSet<Deposit> Deposits { get; }
|
|
|
|
|
DbSet<DetectedOperation> DetectedOperations { get; }
|
2023-01-11 14:59:54 +05:00
|
|
|
|
DbSet<PlannedTrajectory> PlannedTrajectories { get; }
|
2022-12-05 12:39:25 +05:00
|
|
|
|
DbSet<ProcessMap> ProcessMap { get; }
|
2023-09-25 11:23:38 +05:00
|
|
|
|
DbSet<ProcessMapWellboreDevelopment> ProcessMapWellboreDevelopments { 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; }
|
|
|
|
|
DbSet<SubsystemOperationTime> SubsystemOperationTimes { 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; }
|
2021-09-29 09:59:10 +05:00
|
|
|
|
DatabaseFacade Database { get; }
|
2022-05-06 10:58:52 +05:00
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|