DTOs for index mostly done, doing DB models
This commit is contained in:
25
DCGEngine.Database/Models/DeckCard.cs
Normal file
25
DCGEngine.Database/Models/DeckCard.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace DCGEngine.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A <see cref="CardEntry"/> that is in a <see cref="DeckEntry"/> X times.
|
||||
/// </summary>
|
||||
[Owned]
|
||||
public class DeckCard
|
||||
{
|
||||
/// <summary>
|
||||
/// The card in the deck.
|
||||
/// </summary>
|
||||
public virtual CardEntry Card { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of the card that is in the deck.
|
||||
/// </summary>
|
||||
public virtual int Count { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The deck this belongs to.
|
||||
/// </summary>
|
||||
public virtual DeckEntry Deck { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user