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.

27 lines
587 B

using System;
using Microsoft.EntityFrameworkCore;
namespace EFLib
{
public class LolContext : DbContext, IDisposable
{
public DbSet<ChampionEntity> Champions { get; set; }
public LolContext(DbContextOptions<LolContext> options)
: base(options)
{ }
public LolContext()
{ }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
if (!optionsBuilder.IsConfigured)
{
optionsBuilder.UseSqlite("Data Source=oiseaux.db");
}
}
}
}