25 lines
618 B
C#
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"
|
|
//});
|
|
}
|
|
}
|
|
}
|