PIbd-21_Afanasev_S.S_MotorP.../MotorPlant/MotorPlantDatabaseImplement/EngineComponent.cs

18 lines
488 B
C#
Raw Normal View History

2024-03-09 01:59:54 +04:00
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();
}
}