forked from ddrilling/AsbCloudServer
Add IId interface to all supported classes
This commit is contained in:
parent
3c9718b0de
commit
6a338403af
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class ClusterDto : IMapPoint
|
||||
public class ClusterDto : IMapPoint, IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Caption { get; set; }
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class CompanyDto
|
||||
public class CompanyDto: IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Caption { get; set; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class DepositDto : IMapPoint
|
||||
public class DepositDto : IMapPoint, IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Caption { get; set; }
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class EventDto
|
||||
public class EventDto: IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Message { get; set; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class FileInfoDto
|
||||
public class FileInfoDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int IdWell { get; set; }
|
||||
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class MeasureDto
|
||||
public class MeasureDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -5,7 +5,7 @@ namespace AsbCloudApp.Data
|
||||
/// <summary>
|
||||
/// Сообщение для frontend
|
||||
/// </summary>
|
||||
public class MessageDto
|
||||
public class MessageDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class ReportPropertiesDto
|
||||
public class ReportPropertiesDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class StatClusterDto //: ClusterDto
|
||||
public class StatClusterDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Caption { get; set; }
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class StatSectionDto : PlanFactBase<StatOperationsDto>
|
||||
public class StatSectionDto : PlanFactBase<StatOperationsDto>, IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Caption { get; set; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class StatWellDto //: WellDto
|
||||
public class StatWellDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Caption { get; set; }
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class TelemetryAnalysisDto
|
||||
public class TelemetryAnalysisDto: IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int IdTelemetry { get; set; }
|
||||
|
@ -5,7 +5,7 @@ namespace AsbCloudApp.Data
|
||||
/// <summary>
|
||||
/// Сообщение получаемое от телеметрии
|
||||
/// </summary>
|
||||
public class TelemetryMessageDto
|
||||
public class TelemetryMessageDto: IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class TelemetryOperationDto
|
||||
public class TelemetryOperationDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class TelemetryUserDto
|
||||
public class TelemetryUserDto : IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace AsbCloudApp.Data
|
||||
{
|
||||
public class UserDto : UserBaseDto
|
||||
public class UserDto : UserBaseDto, IId
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -7,7 +7,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_company_type")]
|
||||
public partial class CompanyType
|
||||
public partial class CompanyType : IId
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
@ -7,7 +7,7 @@ namespace AsbCloudDb.Model
|
||||
{
|
||||
|
||||
[Table("t_telemetry_analysis"), Comment("События на скважине")]
|
||||
public class TelemetryAnalysis
|
||||
public class TelemetryAnalysis : IId
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
@ -7,11 +7,8 @@ using System.Text.Json.Serialization;
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_well_operation"), Comment("Данные по операциям на скважине")]
|
||||
public class WellOperation
|
||||
public class WellOperation : IId
|
||||
{
|
||||
public WellOperation ShallowCopy() =>
|
||||
(WellOperation) MemberwiseClone();
|
||||
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int Id { get; set; }
|
||||
|
@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_well_operation_category"), Comment("Справочник операций на скважине")]
|
||||
public class WellOperationCategory
|
||||
public class WellOperationCategory : IId
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_well_section_type"), Comment("конструкция секции скважины")]
|
||||
public class WellSectionType
|
||||
public class WellSectionType : IId
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
|
||||
namespace AsbCloudDb.Model
|
||||
{
|
||||
[Table("t_well_type"), Comment("конструкция скважины")]
|
||||
public class WellType
|
||||
public class WellType : IId
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
Loading…
Reference in New Issue
Block a user