23 lines
727 B
C#
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();
|
|||
|
}
|
|||
|
}
|