session-companion/SessionCompanion/SessionCompanion.Database/Tables/CharacterSpell.cs

19 lines
496 B
C#
Raw Normal View History

2020-12-27 20:08:19 +01:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace SessionCompanion.Database.Tables
{
public class CharacterSpell : BaseEntity
{
[ForeignKey(nameof(Character))]
public int CharacterId { get; set; }
public virtual Character Character { get; set; }
[ForeignKey(nameof(Spell))]
public int SpellId { get; set; }
public virtual Spell Spell { get; set; }
}
}