DD.WellWorkover.Cloud/AsbCloudDb/Model/IAsbCloudDbContext.cs

79 lines
3.7 KiB
C#
Raw Normal View History

2023-03-28 01:05:15 +05:00
using AsbCloudDb.Model.GTR;
using AsbCloudDb.Model.Subsystems;
using AsbCloudDb.Model.WITS;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudDb.Model
{
2022-04-11 18:00:34 +05:00
public interface IAsbCloudDbContext : IDisposable
{
DbSet<Cluster> Clusters { get; }
DbSet<Company> Companies { get; }
DbSet<CompanyType> CompaniesTypes { get; }
DbSet<DailyReport.DailyReport> DailyReports { get; }
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; }
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; }
DbSet<RelationUserRoleUserRole> RelationUserRoleUserRoles { get; }
DbSet<RelationContactWell> RelationContactsWells { get; }
DbSet<ReportProperty> ReportProperties { get; }
DbSet<Subsystem> Subsystems { get; }
DbSet<SubsystemOperationTime> SubsystemOperationTimes { get; }
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; }
DbSet<WitsItemFloat> WitsItemFloat { get; }
DbSet<WitsItemInt> WitsItemInt { get; }
DbSet<WitsItemString> WitsItemString { get; }
DbSet<Driller> Drillers { get; }
DbSet<Schedule> Schedule { get; }
DbSet<OperationValue> OperationValues { get; }
DbSet<WellFinalDocument> WellFinalDocuments { get; }
DbSet<LimitingParameter> LimitingParameter { get; }
DbSet<TelemetryWirelineRunOut> TelemetryWirelineRunOut { get; }
DbSet<Faq> Faqs { get; }
DbSet<Record1> Record1 { get; }
DbSet<Record7> Record7 { get; }
DbSet<Record8> Record8 { get; }
DbSet<Record50> Record50 { get; }
DbSet<Record60> Record60 { get; }
DbSet<Record61> Record61 { get; }
DatabaseFacade Database { 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;
int SaveChanges();
int SaveChanges(bool acceptAllChangesOnSuccess);
2023-02-14 12:20:29 +05:00
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
DbSet<TEntity> Set<TEntity>() where TEntity : class;
}
}