Skip to content

Commit 79c39d0

Browse files
committed
change Range Attribute typeof double to decimal to match Price type
1 parent 39f7f16 commit 79c39d0

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

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

2525
[Required]
26-
[RangeAttribute(typeof(double), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172
26+
[RangeAttribute(typeof(decimal), "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

@@ -37,4 +37,4 @@ public Album()
3737

3838
public virtual ICollection<OrderDetail> OrderDetails { get; set; }
3939
}
40-
}
40+
}

0 commit comments

Comments
 (0)