feat: add position and size properties to ElementAnnotation entity

- Added `X`, `Y`, `Width`, and `Height` properties with `float` database mapping.
- Retains existing fields and database annotations.
- Prepares the entity for spatial layout handling in documents.
This commit is contained in:
tekh 2025-10-28 14:10:32 +01:00
parent 6feb601670
commit 9d200800c5

View File

@ -36,6 +36,34 @@ public class ElementAnnotation
[Column("TYPE", TypeName = "nvarchar(50)")] [Column("TYPE", TypeName = "nvarchar(50)")]
public string Type { get; set; } public string Type { get; set; }
[Column("POSITION_X", TypeName = "float")]
public double
#if NET
?
#endif
X { get; set; }
[Column("POSITION_Y", TypeName = "float")]
public double
#if NET
?
#endif
Y { get; set; }
[Column("WIDTH", TypeName = "float")]
public double
#if NET
?
#endif
Width { get; set; }
[Column("HEIGHT", TypeName = "float")]
public double
#if NET
?
#endif
Height { get; set; }
[Required] [Required]
[Column("ADDED_WHEN", TypeName = "datetime")] [Column("ADDED_WHEN", TypeName = "datetime")]
public DateTime AddedWhen { get; set; } public DateTime AddedWhen { get; set; }
@ -52,10 +80,10 @@ public class ElementAnnotation
ChangedWho { get; set; } ChangedWho { get; set; }
[ForeignKey("ElementId")] [ForeignKey("ElementId")]
public virtual Signature public virtual Signature
#if NET #if NET
? ?
#endif #endif
Element { get; set; } Element { get; set; }
} }