7b0b9c7365
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.
35 lines
1.8 KiB
C#
35 lines
1.8 KiB
C#
using ZB.MOM.WW.ScadaBridge.Commons.Types.Enums;
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.Commons.Entities.Instances;
|
|
|
|
public class Instance
|
|
{
|
|
/// <summary>Primary key.</summary>
|
|
public int Id { get; set; }
|
|
/// <summary>Foreign key to the template this instance is based on.</summary>
|
|
public int TemplateId { get; set; }
|
|
/// <summary>Foreign key to the site where this instance is deployed.</summary>
|
|
public int SiteId { get; set; }
|
|
/// <summary>Optional foreign key to the organisational area this instance belongs to.</summary>
|
|
public int? AreaId { get; set; }
|
|
/// <summary>System-wide unique name that identifies this instance.</summary>
|
|
public string UniqueName { get; set; }
|
|
/// <summary>Current lifecycle state of the instance.</summary>
|
|
public InstanceState State { get; set; }
|
|
/// <summary>Per-attribute value overrides applied on top of the template defaults.</summary>
|
|
public ICollection<InstanceAttributeOverride> AttributeOverrides { get; set; } = new List<InstanceAttributeOverride>();
|
|
/// <summary>Per-alarm configuration overrides applied on top of the template defaults.</summary>
|
|
public ICollection<InstanceAlarmOverride> AlarmOverrides { get; set; } = new List<InstanceAlarmOverride>();
|
|
/// <summary>Data-connection bindings that map template tags to site data sources.</summary>
|
|
public ICollection<InstanceConnectionBinding> ConnectionBindings { get; set; } = new List<InstanceConnectionBinding>();
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance with the required unique name.
|
|
/// </summary>
|
|
/// <param name="uniqueName">System-wide unique name for this instance.</param>
|
|
public Instance(string uniqueName)
|
|
{
|
|
UniqueName = uniqueName ?? throw new ArgumentNullException(nameof(uniqueName));
|
|
}
|
|
}
|