I'm new in a project and there is this class for the seed data:
internal sealed class Configuration : DbMigrationsConfiguration<DAL.Context>
{
public Configuration()
{
AutomaticMigrationsEnabled = true;
}
And this code to start the seed:
protected override void Seed(Context context)
{
try
{
My question is: when is the Seed
method called? Only when a user does update-database
and the user doesn't have the database (basicly a new user), or also when the user with an existing database calls an update-database
?