Skip to content

Commit ad04dd1

Browse files
Work around CoreCLR issue
1 parent 6f840b6 commit ad04dd1

File tree

1 file changed

+1
-1
lines changed
  • samples/angular/MusicStore/Apis/Models

1 file changed

+1
-1
lines changed

samples/angular/MusicStore/Apis/Models/Album.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Album()
2323
public string Title { get; set; }
2424

2525
[Required]
26-
[Range(0.01, 100.00)]
26+
[RangeAttribute(typeof(double), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172
2727
[DataType(DataType.Currency)]
2828
public decimal Price { get; set; }
2929

0 commit comments

Comments
 (0)