PIbd-23_Yakobchuk_S.V._Moto.../MotorPlant/MotorPlantDatabaseImplement/EngineComponent.cs

18 lines
488 B
C#
Raw Normal View History

2024-05-11 10:55:49 +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();
}
}