praktikum4/DAL/Helpers/DbInit.cs
2017-03-01 17:20:40 +02:00

25 lines
618 B
C#

using System.Data.Entity;
using Domain;
namespace DAL.Helpers
{
class DbInit: DropCreateDatabaseIfModelChanges<AppDbContext>
{
protected override void Seed(AppDbContext context)
{
// base.Seed doesn't really do anything
base.Seed(context);
//context.People.Add(new Person()
//{
// FirstName = "Arti",
// LastName = "Zirk"
//});
//context.People.Add(new Person()
//{
// FirstName = "Sala",
// LastName = "Kala"
//});
}
}
}