From a2af50e436bfa7f4153517d9a400037c8fb158f6 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 14:00:20 +0100 Subject: [PATCH] Add Connection entity mapped to TBDD_CONNECTION table Introduce a new `Connection` class in the `ReC.Domain.Entities` namespace. The class is mapped to the `TBDD_CONNECTION` database table and includes properties for various columns such as `Id`, `Bezeichnung`, `SqlProvider`, and others. Attributes like `[Key]`, `[Column]`, and `[DatabaseGenerated]` are used for database mapping. Nullable types are used for all properties. Added necessary `using` directives for annotations and schema mapping. --- src/ReC.Domain/Entities/Connection.cs | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/ReC.Domain/Entities/Connection.cs diff --git a/src/ReC.Domain/Entities/Connection.cs b/src/ReC.Domain/Entities/Connection.cs new file mode 100644 index 0000000..e936284 --- /dev/null +++ b/src/ReC.Domain/Entities/Connection.cs @@ -0,0 +1,53 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace ReC.Domain.Entities; + +[Table("TBDD_CONNECTION")] +public class Connection +{ + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + [Column("GUID")] + public short? Id { get; set; } + + [Column("BEZEICHNUNG")] + public string? Bezeichnung { get; set; } + + [Column("SQL_PROVIDER")] + public string? SqlProvider { get; set; } + + [Column("SERVER")] + public string? Server { get; set; } + + [Column("DATENBANK")] + public string? Datenbank { get; set; } + + [Column("USERNAME")] + public string? Username { get; set; } + + [Column("PASSWORD")] + public string? Password { get; set; } + + [Column("BEMERKUNG")] + public string? Bemerkung { get; set; } + + [Column("AKTIV")] + public bool? Aktiv { get; set; } + + [Column("ERSTELLTWER")] + public string? ErstelltWer { get; set; } + + [Column("ERSTELLTWANN")] + public DateTime? ErstelltWann { get; set; } + + [Column("GEANDERTWER")] + public string? GeandertWer { get; set; } + + [Column("GEAENDERTWANN")] + public DateTime? GeaendertWann { get; set; } + + [Column("SYS_CONNECTION")] + public bool? SysConnection { get; set; } +} \ No newline at end of file