Создание документации
This commit is contained in:
@@ -1,25 +1,51 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pf2eModel.Model.Structure.DeityRelation;
|
||||
|
||||
/// <summary>
|
||||
/// Связь божества и заклинания.
|
||||
/// </summary>
|
||||
public class DeitySpell
|
||||
{
|
||||
/// <summary>
|
||||
/// Идентификатор связи божества и заклинания.
|
||||
/// </summary>
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column(Order = 1)]
|
||||
[Comment("Идентификатор")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Идентификатор божества, к которому относится заклинание.
|
||||
/// </summary>
|
||||
[Column(Order = 2)]
|
||||
[Comment("Идентификатор божества")]
|
||||
public int DeityId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Уровень заклинания.
|
||||
/// </summary>
|
||||
[Column(Order = 3)]
|
||||
[Comment("Уровень заклинания")]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Идентификатор заклинания, связанного с божеством.
|
||||
/// </summary>
|
||||
[Column(Order = 4)]
|
||||
[Comment("Идентификатор заклинания")]
|
||||
public int SpellId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Божество, к которому относится заклинание.
|
||||
/// </summary>
|
||||
public virtual Deity Deity { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Заклинание, связанное с божеством.
|
||||
/// </summary>
|
||||
public virtual Spell Spell { get; set; } = null!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user