Classe champion et champion contexte

pull/2/head
nathan boileau 2 years ago
parent 42a673402c
commit 4c1dbe4cef

@ -8,5 +8,7 @@ namespace EFLol
{
internal class Champion
{
public string Name { get; set; }
public string Bio { get; set; }
}
}

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace EFLol
{
internal class ChampionContext : DbContext
{
public DbSet<Champion> Champions { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite("Data Source=Champions.db");
}
}
}
Loading…
Cancel
Save