2021-04-02 17:28:07 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
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;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2022-01-17 15:33:00 +05:00
|
|
|
|
public interface IAsbCloudDbContext: IDisposable
|
2021-04-02 17:28:07 +05:00
|
|
|
|
{
|
|
|
|
|
DbSet<Cluster> Clusters { get; set; }
|
2021-07-21 12:30:51 +05:00
|
|
|
|
DbSet<Company> Companies { get; set; }
|
2021-09-14 17:17:33 +05:00
|
|
|
|
DbSet<TelemetryDataSaub> TelemetryDataSaub { get; set; }
|
2021-04-02 17:28:07 +05:00
|
|
|
|
DbSet<Deposit> Deposits { get; set; }
|
2021-08-10 15:53:11 +05:00
|
|
|
|
DbSet<TelemetryEvent> TelemetryEvents { get; set; }
|
|
|
|
|
DbSet<TelemetryMessage> TelemetryMessages { get; set; }
|
2021-04-02 17:28:07 +05:00
|
|
|
|
DbSet<User> Users { get; set; }
|
|
|
|
|
DbSet<UserRole> UserRoles { get; set; }
|
2021-08-16 10:38:48 +05:00
|
|
|
|
DbSet<ReportProperty> ReportProperties { get; set; }
|
2021-08-13 17:26:19 +05:00
|
|
|
|
DbSet<FileInfo> Files { get; set; }
|
2021-11-01 16:41:25 +05:00
|
|
|
|
DbSet<FileMark> FileMarks { get; set; }
|
2021-07-23 17:40:31 +05:00
|
|
|
|
DbSet<FileCategory> FileCategories { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
DbSet<Telemetry> Telemetries { get; set; }
|
|
|
|
|
DbSet<TelemetryUser> TelemetryUsers { get; set; }
|
2021-10-08 17:00:30 +05:00
|
|
|
|
DbSet<WellOperationCategory> WellOperationCategories { get; set; }
|
2021-07-19 15:31:50 +05:00
|
|
|
|
DbSet<TelemetryAnalysis> TelemetryAnalysis { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
DbSet<Well> Wells { get; set; }
|
2021-10-12 12:17:46 +05:00
|
|
|
|
DbSet<WellComposite> WellComposites { get; set; }
|
2021-08-13 12:33:05 +05:00
|
|
|
|
DbSet<WellSectionType> WellSectionTypes { get; set; }
|
2021-07-27 14:43:30 +05:00
|
|
|
|
DbSet<WellOperation> WellOperations { get; set; }
|
|
|
|
|
DbSet<WellType> WellTypes { get; set; }
|
2021-08-28 20:00:04 +05:00
|
|
|
|
DbSet<Measure> Measures { get; set; }
|
|
|
|
|
DbSet<MeasureCategory> MeasureCategories { get; set; }
|
2021-09-29 09:59:10 +05:00
|
|
|
|
DbSet<TelemetryDataSpin> TelemetryDataSpin { get; set; }
|
2021-10-10 13:35:43 +05:00
|
|
|
|
DbSet<DrillParams> DrillParams { get; set; }
|
2021-10-14 10:18:43 +05:00
|
|
|
|
DbSet<DrillFlowChart> DrillFlowChart { get; set; }
|
2021-11-24 11:30:29 +05:00
|
|
|
|
DbSet<RelationUserUserRole> RelationUserUserRoles { get; set; }
|
2021-12-01 17:10:17 +05:00
|
|
|
|
DbSet<Permission> Permissions { get; set; }
|
2021-12-20 15:16:21 +05:00
|
|
|
|
DbSet<RelationUserRolePermission> RelationUserRolePermissions { get; set; }
|
2021-09-29 09:59:10 +05:00
|
|
|
|
|
|
|
|
|
DatabaseFacade Database { get; }
|
2022-02-12 11:28:16 +05:00
|
|
|
|
DbSet<DrillingProgramPart> DrillingProgramParts { get; set; }
|
|
|
|
|
DbSet<RelationUserDrillingProgramPart> RelationDrillingProgramPartUsers { get; set; }
|
2022-02-17 15:37:27 +05:00
|
|
|
|
DbSet<RelationCompanyWell> RelationCompaniesWells { get; set; }
|
2021-04-02 17:28:07 +05:00
|
|
|
|
|
|
|
|
|
int SaveChanges();
|
|
|
|
|
int SaveChanges(bool acceptAllChangesOnSuccess);
|
|
|
|
|
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
|
|
|
|
|
2021-08-09 14:39:56 +05:00
|
|
|
|
DbSet<TEntity> Set<TEntity>(string name) where TEntity : class;
|
2021-08-09 15:41:42 +05:00
|
|
|
|
|
2021-08-09 14:39:56 +05:00
|
|
|
|
DbSet<TEntity> Set<TEntity>() where TEntity : class;
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
}
|
|
|
|
|
}
|