change Range Attribute typeof double to decimal to match Price type
This commit is contained in:
parent
39f7f1649f
commit
79c39d0f6c
|
|
@ -23,7 +23,7 @@ namespace MusicStore.Models
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[RangeAttribute(typeof(double), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172
|
[RangeAttribute(typeof(decimal), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172
|
||||||
[DataType(DataType.Currency)]
|
[DataType(DataType.Currency)]
|
||||||
public decimal Price { get; set; }
|
public decimal Price { get; set; }
|
||||||
|
|
||||||
|
|
@ -37,4 +37,4 @@ namespace MusicStore.Models
|
||||||
|
|
||||||
public virtual ICollection<OrderDetail> OrderDetails { get; set; }
|
public virtual ICollection<OrderDetail> OrderDetails { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue