This commit is contained in:
328p
2026-11-27 15:09:02 +03:00
parent 56adf7e2bb
commit 56f644e08e
41 changed files with 4240 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace ConsoleApp1.data.model;
[Table("PokemonStats")]
[PrimaryKey(nameof(IdStat), nameof(PokemonId))]
public class PokemonStat
{
[Column("stat_id")]
public int IdStat { get; set; }
[Column("pokemon_id")]
public int PokemonId { get; set; }
[Column("pokemon_stat_base_stat")]
public string statBase { get; set; }
[ForeignKey(nameof(IdStat))]
public virtual Stat Stat { get; set; }
[ForeignKey(nameof(PokemonId))]
public virtual Pokemon Pokemon { get; set; }
}