ComputerHardwareStore_YouAr.../ComputerHardwareStore/ComputerHardwareStoreDatabaseImplement/Models/Build.cs
2024-04-30 15:57:30 +04:00

23 lines
727 B
C#

using ComputerHardwareStoreDataModels.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ComputerHardwareStoreDatabaseImplement.Models
{
public class Build : IBuildModel
{
public int Id { get; private set; }
[Required]
public string Name { get; private set; } = string.Empty;
[Required]
public double Price { get; set; }
[Required]
public int VendorId { get; private set; }
public virtual Vendor Vendor { get; private set; } = new();
[ForeignKey("BuildId")]
public Dictionary<int, (IComponentModel, int)> BuildComponents => throw new NotImplementedException();
}
}