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.

20 lines
696 B

using EntityFrameworkLib;
using Microsoft.EntityFrameworkCore;
using Model;
namespace DBEntitiesWithStub
{
public class ChampionsDBEntitiesWithStub : LolContext
{
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<ChampionEntity>().HasData(
new ChampionEntity { Name = "Yone", Bio = "Bio de Yone", Icon = "Icon de Yone" },
new ChampionEntity { Name = "Akali", Bio = "Bio de Akali", Icon = "Icon de Akali" },
new ChampionEntity { Name = "Bard", Bio = "Bio de Bard", Icon = "Icon de Bard" }
);
}
}
}