|
|
@ -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");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|