forked from ddrilling/AsbCloudServer
Fix Messure. Replace Dictionary<> by class.
Clean DbContext.
This commit is contained in:
parent
e7d6aef6a6
commit
35e4b55e82
@ -1,6 +1,5 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
@ -24,7 +23,7 @@ namespace AsbCloudDb.Model
|
|||||||
public DateTime Timestamp { get; set; }
|
public DateTime Timestamp { get; set; }
|
||||||
|
|
||||||
[Column("data", TypeName = "jsonb"), Comment("Данные таблицы последних данных")]
|
[Column("data", TypeName = "jsonb"), Comment("Данные таблицы последних данных")]
|
||||||
public Dictionary<string, object> Data { get; set; }
|
public RawData Data { get; set; }
|
||||||
|
|
||||||
[Column("is_deleted"), Comment("Пометка удаленным")]
|
[Column("is_deleted"), Comment("Пометка удаленным")]
|
||||||
public bool IsDeleted { get; set; }
|
public bool IsDeleted { get; set; }
|
||||||
|
9
AsbCloudDb/Model/RawData.cs
Normal file
9
AsbCloudDb/Model/RawData.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace AsbCloudDb.Model
|
||||||
|
{
|
||||||
|
public class RawData: Dictionary<string, object>
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user