PIbd-22_Smirnov_A.A._Securi.../SecuritySystem/SecuritySystemDatabaseImplement/Models/SecureSensor.cs
2024-05-07 17:56:47 +04:00

28 lines
601 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SecuritySystemDatabaseImplement.Models
{
public class SecureSensor
{
public int Id { get; set; }
[Required]
public int SecureId { get; set; }
[Required]
public int SensorId { get; set; }
[Required]
public int Count { get; set; }
public virtual Sensor Sensor { get; set; } = new();
public virtual Secure Secure { get; set; } = new();
}
}