namespace ZB.MOM.WW.ScadaBridge.Commons.Entities.Instances; public class Area { /// Gets or sets the database primary key. public int Id { get; set; } /// Gets or sets the id of the site this area belongs to. public int SiteId { get; set; } /// Gets or sets the display name of the area. public string Name { get; set; } /// Gets or sets the id of the parent area, or null for a root area. public int? ParentAreaId { get; set; } /// Gets or sets the child areas nested under this area. public ICollection Children { get; set; } = new List(); /// /// Initializes a new with the given name. /// /// Display name for the area. public Area(string name) { Name = name ?? throw new ArgumentNullException(nameof(name)); } }