Added [Table] and [ForeignKey] attributes to entity classes to explicitly map them to database tables/views and define relationships. Updated using directives as needed. Improves entity mapping clarity and robustness against schema changes.
35 lines
759 B
C#
35 lines
759 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ReC.Domain.Entities;
|
|
|
|
[Table("TBDD_CONNECTION")]
|
|
public class Connection
|
|
{
|
|
public short? Id { get; set; }
|
|
|
|
public string? Bezeichnung { get; set; }
|
|
|
|
public string? SqlProvider { get; set; }
|
|
|
|
public string? Server { get; set; }
|
|
|
|
public string? Datenbank { get; set; }
|
|
|
|
public string? Username { get; set; }
|
|
|
|
public string? Password { get; set; }
|
|
|
|
public string? Bemerkung { get; set; }
|
|
|
|
public bool? Aktiv { get; set; }
|
|
|
|
public string? ErstelltWer { get; set; }
|
|
|
|
public DateTime? ErstelltWann { get; set; }
|
|
|
|
public string? GeandertWer { get; set; }
|
|
|
|
public DateTime? GeaendertWann { get; set; }
|
|
|
|
public bool? SysConnection { get; set; }
|
|
} |