using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace EFLol { public class ChampionContext : DbContext { public DbSet Champions { get; set; } public ChampionContext() { } public ChampionContext(DbContextOptions options) : base(options) { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { //optionsBuilder.UseSqlServer("Data Source=loldb.db"); optionsBuilder.UseSqlite("Data Source=loldb.db"); } } } }