PIbd-21_Potapov_N.S._Securi.../SecuritySystem/SecuritySystemDatabaseImplement/Models/SecureComponent.cs

19 lines
493 B
C#

using System.ComponentModel.DataAnnotations;
namespace SecuritySystemDatabaseImplement.Models
{
public class SecureComponent
{
public int Id { get; set; }
[Required]
public int SecureId { get; set; }
[Required]
public int ComponentId { get; set; }
[Required]
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Secure Secure { get; set; } = new();
}
}