Exercise Files
This commit is contained in:
18
Ch02/02_03_End/Common/Models/Review.cs
Normal file
18
Ch02/02_03_End/Common/Models/Review.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace HPlusSports.Models
|
||||
{
|
||||
public class Review
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string SKU { get; set; }
|
||||
|
||||
[Range(minimum: 1, maximum: 5)]
|
||||
public int Rating { get; set; }
|
||||
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string Comments { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user