15 lines
400 B
C#
15 lines
400 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace PyroFetes.Models;
|
|
|
|
[PrimaryKey(nameof(ProductId), nameof(EffectId))]
|
|
public class ProductEffect
|
|
{
|
|
[Required] public Product? Product { get; set; }
|
|
[Required] public int ProductId { get; set; }
|
|
|
|
[Required] public Effect? Effect { get; set; }
|
|
[Required] public int EffectId { get; set; }
|
|
|
|
} |