解决方案:
将context类下的方法“OnModelCreating”修改为:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
base.OnModelCreating(modelBuilder);
//throw new UnintentionalCodeFirstException();
}