0
I’m trying to generate a Scaffolfing
for the model below:
namespace OneeWeb_v2.Models
{
public class CombustivelModels
{
[Key]
public int CombustivelId { get; set; }
[Required]
public decimal km_inicial { get; set; }
[Required]
public decimal km_final { get; set; }
[Required]
public decimal litros { get; set; }
[Required]
[DataType(DataType.Currency)]
public decimal valor { get; set; }
}
}
However when trying to execute the error is returned:
Would anyone know why?
Sometimes it is necessary to perform a Build for scaffolding to work. Right-click on the project and click Build.
– Randrade
Perfect. It worked.
– Thomas Erich Pimentel