添加迁移不起作用,数据库不同步

时间:2014-08-29 01:49:17

标签: c# entity-framework asp.net-mvc-4 ef-migrations

我以某种方式管理我的数据库不同步。我在构建此MVC 4 C#时使用了代码优先方法。

public class RandomTable
{
    public int Id { get; set; }
    public int UserId { get; set; }
    public string FullName { get; set; }
    public string Link { get; set; }
    public bool? Verified { get; set; }
}

在将新表添加到现有模型中时,我尝试使用add-migration RandomTable然后更新数据库。

但是我注意到迁移是空的,所以我认为它完全不同步。

如何恢复?

0 个答案:

没有答案