Глобальный рефакторинг пространств имён
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Newtonsoft.Json;
|
||||
using Pf2e.Database.Model.Enum;
|
||||
|
||||
namespace Pf2e.Database.Model.Structure.ClassRelation;
|
||||
|
||||
/// <summary>
|
||||
/// Набор ключевых атрибутов класса.
|
||||
/// </summary>
|
||||
public class ClassKeyAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Идентификатор ключевого атрибута класса.
|
||||
/// </summary>
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column(Order = 1)]
|
||||
[Comment("Идентификатор")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Идентификатор класса, к которому относится ключевой атрибут.
|
||||
/// </summary>
|
||||
[Column(Order = 2)]
|
||||
[Comment("Идентификатор класса")]
|
||||
public int ClassId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ключевой атрибут класса.
|
||||
/// </summary>
|
||||
[Column(Order = 3)]
|
||||
[Comment("Атрибут")]
|
||||
public AttributeValues Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Класс, к которому относится ключевой атрибут.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public Class Class { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user