PIAPS_CW/DatabaseImplement/Models/Product.cs

27 lines
575 B
C#

using DataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseImplement.Models
{
public class Product : IProduct
{
[Required]
public Guid Id { get; set; }
[Required]
public string Name { get; set; } = string.Empty;
[Required]
public double Price { get; set; }
[Required]
public double Rate { get; set; }
[Required]
public bool IsBeingSold { get; set; }
[Required]
public int Amount { get; set; }
}
}