feat(templates): GetTemplateStubsAsync untracked identity/edge projection

This commit is contained in:
Joseph Doherty
2026-10-22 06:06:27 -04:00
parent 15c9de0f4a
commit 6bcca4b344
4 changed files with 57 additions and 0 deletions
@@ -0,0 +1,19 @@
namespace ZB.MOM.WW.ScadaBridge.Commons.Types.Templates;
/// <summary>
/// Lightweight template identity/edge projection (no attributes, alarms, scripts or compositions)
/// for callers that only need names and the inheritance/folder/ownership edges.
/// </summary>
/// <param name="Id">Template ID.</param>
/// <param name="Name">Template name.</param>
/// <param name="ParentTemplateId">Base template, if any.</param>
/// <param name="FolderId">Containing folder, if any.</param>
/// <param name="IsDerived">True for auto-derived composition templates.</param>
/// <param name="OwnerCompositionId">Owning composition row for derived templates.</param>
public sealed record TemplateStub(
int Id,
string Name,
int? ParentTemplateId,
int? FolderId,
bool IsDerived,
int? OwnerCompositionId);