Files
dotNetStudyWithGPT/MySolution/InventoryManagement/Components/Product.cs

22 lines
547 B
C#
Raw Normal View History

2023-10-13 17:15:52 +09:00
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InventoryManagement.Components
{
[PrimaryKey(nameof(Id))]
[Index(nameof(Name), IsUnique = true)]
internal class Product
{
public int Id { get; }
public string Name { get; set; }
public int Quantity { get; set; }
2023-10-18 11:02:10 +09:00
public ICollection<Accessary> CompatibleAccessaries { get; set; }
2023-10-13 17:15:52 +09:00
}
}