Aparyan.ISE-22.MotorPlant/Aparyan.ISE_22.MotorPlant/MotorPlantDatabaseImplement/Models/EngineComponent.cs
2024-03-29 21:44:42 +04:00

18 lines
488 B
C#

using System.ComponentModel.DataAnnotations;
namespace MotorPlantDatabaseImplement.Models
{
public class EngineComponent
{
public int Id { get; set; }
[Required]
public int EngineId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Engine Engine { get; set; } = new();
}
}