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.
38 lines
894 B
38 lines
894 B
// See https://aka.ms/new-console-template for more information
|
|
using MyFlib;
|
|
using static System.Console;
|
|
|
|
using (var context = new LolDbContext())
|
|
{
|
|
|
|
WriteLine("Champions :\n");
|
|
|
|
foreach (var c in context.Champions)
|
|
{
|
|
WriteLine($"{c.Name} - {c.Class}");
|
|
}
|
|
|
|
WriteLine("\nWith new Champions :\n");
|
|
|
|
DataSeeder.SeedData(context);
|
|
foreach (var c in context.Champions)
|
|
{
|
|
WriteLine($"{c.Name} - {c.Class}");
|
|
}
|
|
|
|
WriteLine("\nSkills :\n");
|
|
|
|
foreach (var c in context.Skills)
|
|
{
|
|
WriteLine($"{c.Name} - {c.Description} - {c.Type}");
|
|
}
|
|
|
|
WriteLine("\nSkins :\n");
|
|
|
|
foreach (var c in context.Skins)
|
|
{
|
|
WriteLine($"{c.Name} - {c.Description} - Price: {c.Price} - ChampionId: {c.ChampionForeignKey}");
|
|
}
|
|
|
|
context.SaveChangesAsync(); // or context.SaveChangesAsync
|
|
} |