sos
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ConsoleApp1.data.model;
|
||||
[Table("PokemonAbilities")]
|
||||
[PrimaryKey(nameof(idAbility), nameof(PokemonId))]
|
||||
public class PokemonAbility
|
||||
{
|
||||
[Column("pokemon_id")]
|
||||
public int PokemonId { get; set; }
|
||||
[Column("ability_id")]
|
||||
public int idAbility { get; set; }
|
||||
[Column("pokemon_ability_is_hidden")]
|
||||
public Boolean abilityHidden { get; set; }
|
||||
|
||||
[ForeignKey(nameof(idAbility))]
|
||||
public virtual Ability Ability { get; set; }
|
||||
|
||||
[ForeignKey(nameof(PokemonId))]
|
||||
public virtual Pokemon Pokemon { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user