I have a model, called CombustivelModels
, where I made a Scaffolding
generating Controller
and Views
, my doubt is, when doing a revision in this Model
, you can update via Scaffolding
o Controller
and View
?
Old model:
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; }
}
Model Revised:
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; }
[Required]
public string UserId { get; set; }
}