Программа просмотра базы данных

This commit is contained in:
2025-04-18 17:26:52 +04:00
parent 372e41e51a
commit 9a711c5a9d
27 changed files with 701 additions and 1 deletions
+2
View File
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using Pf2eModel.Model.Enum;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -18,5 +19,6 @@ public partial class EntityAlias
[MaxLength(Pf2eDbContext.NameLength)]
public string Alias { get; set; } = null!;
[JsonIgnore]
public virtual Entity Entity { get; set; } = null!;
}
+1
View File
@@ -13,6 +13,7 @@ public partial class Keyword
[Column(Order = 2)]
public string Slug { get; set; } = null!;
[Newtonsoft.Json.JsonIgnore]
public virtual ICollection<Entity> Entities { get; set; } = [];
public virtual ICollection<KeywordAlias> Aliases { get; set; } = [];
@@ -17,5 +17,6 @@ public partial class KeywordAlias
[MaxLength(Pf2eDbContext.NameLength)]
public string Value { get; set; } = null!;
[Newtonsoft.Json.JsonIgnore]
public virtual Keyword Keyword { get; set; } = null!;
}
@@ -22,6 +22,7 @@ public partial class EntitySource
[Comment("Флаг, указывающий, что объект является частью ремастера")]
public bool IsRemaster { get; set; }
[Newtonsoft.Json.JsonIgnore]
public virtual Entity Entity { get; set; } = null!;
public virtual Source Source { get; set; } = null!;
+1
View File
@@ -22,5 +22,6 @@ public partial class Source
public DateOnly? ReleaseDate { get; set; }
[Newtonsoft.Json.JsonIgnore]
public ICollection<EntitySource> EntitySources { get; set; } = [];
}
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -23,6 +24,7 @@ public partial class EntityExternal
[Comment("Контроль версии объекта")]
public string Md5 { get; set; } = null!;
[Newtonsoft.Json.JsonIgnore]
public virtual Entity Entity { get; set; } = null!;
public virtual ExternalTarget Target { get; set; } = null!;
@@ -23,5 +23,6 @@ public partial class ExternalTarget
public string Prefix { get; set; } = null!;
[Column(Order = 4)]
[Newtonsoft.Json.JsonIgnore]
public virtual ICollection<EntityExternal> EntityExternals { get; set; } = [];
}