Files
ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/Entities/Instances/Area.cs
T
Joseph Doherty 7b0b9c7365 refactor: rename ScadaLink → ZB.MOM.WW.ScadaBridge (code + projects + namespaces)
Solution + 23 src projects + 26 test projects renamed; folders, csproj,
namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated.
ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated.
SQL roles/logins, LDAP domains, CLI command name, and CLI config dir
(~/.scadalink → ~/.scadabridge) also renamed.

Build green; 5 Host.Tests fail awaiting SQL login rename in next commit.
Pre-existing StaleTagMonitor timing flakes unchanged.

Rename script committed at tools/rename-to-scadabridge.sh.
2026-05-28 09:37:45 -04:00

25 lines
969 B
C#

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