0
I’m studying ASP.NET MVC5, so I created a model called RelatorioTagModels
:
public class RelatorioTagModels
{
[Key]
public int TagID { get; set; }
[Required]
public decimal Tag { get; set; }
[Required]
public decimal Fabricante { get; set; }
[Required]
public decimal Modelo { get; set; }
[Required]
public decimal Fluido { get; set; }
[Required]
public decimal Vedacao { get; set; }
[Required]
public decimal Criticidade { get; set; }
[Required]
public decimal Mtbf { get; set; }
}
I managed via Scaffolding, the Controller
and the Views
, am using Entity Framework.
However, when rotating the command Add-Migratin
it generates a file without changes:
public partial class relatorioTag : DbMigration
{
public override void Up()
{
}
public override void Down()
{
}
}
My question is, how do I set the table in the database?