forked from ddrilling/AsbCloudServer
Renamed plural table names to singular
This commit is contained in:
parent
e668b8c2ff
commit
1db3a81d56
@ -20,7 +20,7 @@ namespace AsbCloudDb.Model
|
||||
public virtual DbSet<User> Users { get; set; }
|
||||
public virtual DbSet<UserRole> UserRoles { get; set; }
|
||||
public virtual DbSet<Well> Wells { get; set; }
|
||||
public virtual DbSet<ReportProperties> ReportProperties { get; set; }
|
||||
public virtual DbSet<ReportProperty> ReportProperties { get; set; }
|
||||
public virtual DbSet<FileInfo> Files { get; set; }
|
||||
public virtual DbSet<FileCategory> FileCategories { get; set; }
|
||||
public virtual DbSet<Telemetry> Telemetries { get; set; }
|
||||
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_file_categories"), Comment("Категории файлов")]
|
||||
[Table("t_file_category"), Comment("Категории файлов")]
|
||||
public class FileCategory : IId
|
||||
{
|
||||
[Key]
|
||||
|
@ -17,7 +17,7 @@ namespace AsbCloudDb.Model
|
||||
DbSet<TelemetryMessage> TelemetryMessages { get; set; }
|
||||
DbSet<User> Users { get; set; }
|
||||
DbSet<UserRole> UserRoles { get; set; }
|
||||
DbSet<ReportProperties> ReportProperties { get; set; }
|
||||
DbSet<ReportProperty> ReportProperties { get; set; }
|
||||
DbSet<FileInfo> Files { get; set; }
|
||||
DbSet<FileCategory> FileCategories { get; set; }
|
||||
DbSet<Telemetry> Telemetries { get; set; }
|
||||
|
@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_operations"), Comment("Справочник операций на скважине")]
|
||||
[Table("t_operation"), Comment("Справочник операций на скважине")]
|
||||
public class OperationCategory
|
||||
{
|
||||
[Key]
|
||||
|
@ -5,8 +5,8 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_report_properties"), Comment("Отчеты с данными по буровым")]
|
||||
public class ReportProperties: IId, IIdWell
|
||||
[Table("t_report_property"), Comment("Отчеты с данными по буровым")]
|
||||
public class ReportProperty: IId, IIdWell
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
@ -6,7 +6,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_well_operations"), Comment("Данные по операциям на скважине")]
|
||||
[Table("t_well_operation"), Comment("Данные по операциям на скважине")]
|
||||
public class WellOperation
|
||||
{
|
||||
[Key]
|
||||
|
@ -68,7 +68,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
context.Files.Add(newReportFile);
|
||||
context.SaveChanges();
|
||||
|
||||
var newReportProperties = new ReportProperties
|
||||
var newReportProperties = new ReportProperty
|
||||
{
|
||||
IdWell = idWell,
|
||||
IdFile = newReportFile.Id,
|
||||
@ -145,7 +145,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
};
|
||||
}
|
||||
|
||||
private async Task<IEnumerable<ReportProperties>> GetSuitableReportsFromDbAsync(int idWell,
|
||||
private async Task<IEnumerable<ReportProperty>> GetSuitableReportsFromDbAsync(int idWell,
|
||||
DateTime begin, DateTime end, int stepSeconds, int format,
|
||||
CancellationToken token = default)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user