You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
League-of-Legends_Project/EntityFramework_LoL/Sources/Entities/Program.cs

17 lines
361 B

using Entities;
using Shared;
ChampionEntity imri = new()
{
Name = "Imri Cartel",
Bio = "Fou Furieux",
Class = ChampionClass.Assassin
};
using (var context = new LolDbContext())
{
// Crée des nounours et les insère dans la base
Console.WriteLine("Creates and inserts new Champion");
context.Add(imri);
context.SaveChanges();
}