How does the command Enable-Migration know whether to generate the migration code files?
I have the following in a project using the standard MVC 5 template in Visual Studio:
public class UsersContext : IdentityDbContext<ExtendedUser> { public DbSet<Log> Logs { get; set; } public UsersContext() : base() { } public UsersContext(string ConnectionString) : base(ConnectionString) { } } public class Log { public Int32 Id { get; set; } public DateTime Time { get; set; } public string Message { get; set; } } When I run Enable-Migrations, the Migrations folder is created but there is only the Configuration.cs file. There is no code generated to handle the creation of the Logs table.
A second related question is: do I have to run Add-Migration every time there are model changes after the previous Add-Migration was run?