This commit is contained in:
2023-10-13 17:15:52 +09:00
parent d4dc58c609
commit 428733668d
9 changed files with 421 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
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; }
}
}