Документирование и небольшой рефакторинг модели.

This commit is contained in:
2025-05-11 00:31:15 +04:00
parent 1a977ee988
commit 3c65274b45
64 changed files with 1960 additions and 554 deletions
@@ -1,23 +1,41 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Pf2eModel.Model.Base;
using Pf2eModel.Model.Enum;
namespace Pf2eModel.Model.Structure;
/// <summary>
/// Группа подклассов.
/// </summary>
[EntityOfType(EntityType.SubclassGroup)]
public class SubclassGroup : IEntity
{
/// <inheritdoc/>
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Column(Order = 1)]
[Comment("Идентификатор")]
public int Id { get; set; }
/// <inheritdoc/>
public Entity Entity { get; set; } = null!;
/// <summary>
/// Идентификатор класса.
/// </summary>
[Column(Order = 2)]
[Comment("Идентификатор класса")]
public int? ClassId { get; set; } = null;
/// <summary>
/// Класс, к которому относится группа подклассов.
/// </summary>
public Class? Class { get; set; } = null!;
/// <summary>
/// Коллекция подклассов, относящихся к этой группе.
/// </summary>
public ICollection<Subclass> Subclasses { get; set; } = [];
}