42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace DD.Persistence.Database.Entity;
|
|||
|
|
|||
|
public interface ITimestamped
|
|||
|
{
|
|||
|
DateTimeOffset Timestamp { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
[PrimaryKey(nameof(ParameterId), nameof(Timestamp))]
|
|||
|
public class TagValue: ITimestamped
|
|||
|
{
|
|||
|
[Comment("Id параметра")]
|
|||
|
public int ParameterId { get; set; }
|
|||
|
|
|||
|
[Comment("Временная отметка")]
|
|||
|
public DateTimeOffset Timestamp { get; set; }
|
|||
|
|
|||
|
[Comment("Значение параметра")]
|
|||
|
public float Value { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public class TagSetValue: ITimestamped
|
|||
|
{
|
|||
|
[Comment("Временная отметка"), Key]
|
|||
|
public DateTimeOffset Timestamp { get; set; }
|
|||
|
public float WellDepth {get;set;}
|
|||
|
public float BitDepth {get;set;}
|
|||
|
public float BlockPosition {get;set;}
|
|||
|
public float BlockSpeed {get;set;}
|
|||
|
public float Pressure {get;set;}
|
|||
|
public float AxialLoad {get;set;}
|
|||
|
public float HookWeight {get;set;}
|
|||
|
public float RotorTorque {get;set;}
|
|||
|
public float RotorSpeed {get;set;}
|
|||
|
public float Flow {get;set;}
|
|||
|
public float Mse {get;set;}
|
|||
|
public float Pump0Flow {get;set;}
|
|||
|
public float Pump1Flow {get;set;}
|
|||
|
public float Pump2Flow { get; set; }
|
|||
|
}
|