25 lines
590 B
C#
25 lines
590 B
C#
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; }
|
|
} |