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.

22 lines
566 B

using DTO;
using Microsoft.EntityFrameworkCore;
namespace EntityFramwork
{
public class BDDContext : DbContext
{
public BDDContext() { }
public BDDContext(DbContextOptions<BDDContext> option) : base(option) { }
public DbSet<EntityChampions> Champions { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
if (!optionsBuilder.IsConfigured)
{
optionsBuilder.UseSqlite($"Data Source=BDD-APILOL.db"); ;
}
}
}
}