Fix Messure. Replace Dictionary<> by class.

Clean DbContext.
This commit is contained in:
Фролов 2021-12-28 16:34:11 +05:00
parent e7d6aef6a6
commit 35e4b55e82
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,5 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
@ -24,7 +23,7 @@ namespace AsbCloudDb.Model
public DateTime Timestamp { get; set; }
[Column("data", TypeName = "jsonb"), Comment("Данные таблицы последних данных")]
public Dictionary<string, object> Data { get; set; }
public RawData Data { get; set; }
[Column("is_deleted"), Comment("Пометка удаленным")]
public bool IsDeleted { get; set; }

View File

@ -0,0 +1,9 @@
using System.Collections.Generic;
namespace AsbCloudDb.Model
{
public class RawData: Dictionary<string, object>
{
}
}