28 lines
601 B
C#
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();
|
|
}
|
|
}
|