Add IId interface to all supported classes

This commit is contained in:
Фролов 2021-09-09 12:31:12 +05:00
parent 3c9718b0de
commit 6a338403af
22 changed files with 22 additions and 25 deletions

View File

@ -2,7 +2,7 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class ClusterDto : IMapPoint public class ClusterDto : IMapPoint, IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Caption { get; set; } public string Caption { get; set; }

View File

@ -1,6 +1,6 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class CompanyDto public class CompanyDto: IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Caption { get; set; } public string Caption { get; set; }

View File

@ -2,7 +2,7 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class DepositDto : IMapPoint public class DepositDto : IMapPoint, IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Caption { get; set; } public string Caption { get; set; }

View File

@ -1,6 +1,6 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class EventDto public class EventDto: IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Message { get; set; } public string Message { get; set; }

View File

@ -2,7 +2,7 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class FileInfoDto public class FileInfoDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }
public int IdWell { get; set; } public int IdWell { get; set; }

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class MeasureDto public class MeasureDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -5,7 +5,7 @@ namespace AsbCloudApp.Data
/// <summary> /// <summary>
/// Сообщение для frontend /// Сообщение для frontend
/// </summary> /// </summary>
public class MessageDto public class MessageDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -2,7 +2,7 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class ReportPropertiesDto public class ReportPropertiesDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Name { get; set; } public string Name { get; set; }

View File

@ -2,7 +2,7 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class StatClusterDto //: ClusterDto public class StatClusterDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Caption { get; set; } public string Caption { get; set; }

View File

@ -1,6 +1,6 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class StatSectionDto : PlanFactBase<StatOperationsDto> public class StatSectionDto : PlanFactBase<StatOperationsDto>, IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Caption { get; set; } public string Caption { get; set; }

View File

@ -2,7 +2,7 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class StatWellDto //: WellDto public class StatWellDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Caption { get; set; } public string Caption { get; set; }

View File

@ -1,6 +1,6 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class TelemetryAnalysisDto public class TelemetryAnalysisDto: IId
{ {
public int Id { get; set; } public int Id { get; set; }
public int IdTelemetry { get; set; } public int IdTelemetry { get; set; }

View File

@ -5,7 +5,7 @@ namespace AsbCloudApp.Data
/// <summary> /// <summary>
/// Сообщение получаемое от телеметрии /// Сообщение получаемое от телеметрии
/// </summary> /// </summary>
public class TelemetryMessageDto public class TelemetryMessageDto: IId
{ {
public int Id { get; set; } public int Id { get; set; }
public DateTime Date { get; set; } public DateTime Date { get; set; }

View File

@ -2,7 +2,7 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class TelemetryOperationDto public class TelemetryOperationDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }
public string Name { get; set; } public string Name { get; set; }

View File

@ -1,6 +1,6 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class TelemetryUserDto public class TelemetryUserDto : IId
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -1,6 +1,6 @@
namespace AsbCloudApp.Data namespace AsbCloudApp.Data
{ {
public class UserDto : UserBaseDto public class UserDto : UserBaseDto, IId
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -7,7 +7,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model namespace AsbCloudDb.Model
{ {
[Table("t_company_type")] [Table("t_company_type")]
public partial class CompanyType public partial class CompanyType : IId
{ {
[Key] [Key]
[Column("id")] [Column("id")]

View File

@ -7,7 +7,7 @@ namespace AsbCloudDb.Model
{ {
[Table("t_telemetry_analysis"), Comment("События на скважине")] [Table("t_telemetry_analysis"), Comment("События на скважине")]
public class TelemetryAnalysis public class TelemetryAnalysis : IId
{ {
[Key] [Key]
[Column("id")] [Column("id")]

View File

@ -7,11 +7,8 @@ using System.Text.Json.Serialization;
namespace AsbCloudDb.Model namespace AsbCloudDb.Model
{ {
[Table("t_well_operation"), Comment("Данные по операциям на скважине")] [Table("t_well_operation"), Comment("Данные по операциям на скважине")]
public class WellOperation public class WellOperation : IId
{ {
public WellOperation ShallowCopy() =>
(WellOperation) MemberwiseClone();
[Key] [Key]
[Column("id")] [Column("id")]
public int Id { get; set; } public int Id { get; set; }

View File

@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model namespace AsbCloudDb.Model
{ {
[Table("t_well_operation_category"), Comment("Справочник операций на скважине")] [Table("t_well_operation_category"), Comment("Справочник операций на скважине")]
public class WellOperationCategory public class WellOperationCategory : IId
{ {
[Key] [Key]
[Column("id")] [Column("id")]

View File

@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
namespace AsbCloudDb.Model namespace AsbCloudDb.Model
{ {
[Table("t_well_section_type"), Comment("конструкция секции скважины")] [Table("t_well_section_type"), Comment("конструкция секции скважины")]
public class WellSectionType public class WellSectionType : IId
{ {
[Key] [Key]
[Column("id")] [Column("id")]

View File

@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
namespace AsbCloudDb.Model namespace AsbCloudDb.Model
{ {
[Table("t_well_type"), Comment("конструкция скважины")] [Table("t_well_type"), Comment("конструкция скважины")]
public class WellType public class WellType : IId
{ {
[Key] [Key]
[Column("id")] [Column("id")]