18 lines
408 B
C#
18 lines
408 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PARR.DAL.Models
|
|
{
|
|
[Table("ResponseAreas")]
|
|
public class ResponseArea
|
|
{
|
|
[Key]
|
|
public int Code { get; set; }
|
|
|
|
[Required]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public ICollection<Host> Hosts { get; set; } = new HashSet<Host>();
|
|
}
|
|
}
|