19 lines
527 B
C#
19 lines
527 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ShopOnline.Api.Entities
|
|
{
|
|
public class Product
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string ImageURL { get; set; }
|
|
public decimal Price { get; set; }
|
|
public int Quantity { get; set; }
|
|
public int CategoryId { get; set; }
|
|
|
|
[ForeignKey("CategoryId")]
|
|
public ProductCategory ProductCategory { get; set; }
|
|
}
|
|
}
|