PIAPS_CW/DatabaseImplement/Models/Product.cs

27 lines
575 B
C#
Raw Normal View History

using DataModels.Models;
using System;
2024-06-11 12:18:10 +04:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2024-06-11 12:18:10 +04:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseImplement.Models
{
public class Product : IProduct
2024-06-11 12:18:10 +04:00
{
[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; }
2024-06-11 12:18:10 +04:00
}
}