Added `[Table]` attributes to `Connection`, `Endpoint`, `EndpointAuth`, and `Profile` classes to define database table mappings. Updated `Profile` with schema information. Introduced a `Profile` navigation property in `RecAction` with a `[ForeignKey]` attribute to establish a relationship with the `Profile` entity. Temporarily marked it as `[NotMapped]` due to a foreign key type mismatch, with a `TODO` to resolve this in the future. Included `System.ComponentModel.DataAnnotations.Schema` in `using` directives to support these changes.
34 lines
796 B
C#
34 lines
796 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ReC.Domain.Entities;
|
|
|
|
[Table("TBREC_CFG_ENDPOINT")]
|
|
public class Endpoint
|
|
{
|
|
[Key]
|
|
[Column("GUID")]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long Id { get; set; }
|
|
|
|
[Column("ACTIVE")]
|
|
public bool? Active { get; set; }
|
|
|
|
[Column("DESCRIPTION")]
|
|
public string? Description { get; set; }
|
|
|
|
[Column("URI")]
|
|
public string? Uri { get; set; }
|
|
|
|
[Column("ADDED_WHO")]
|
|
public string? AddedWho { get; set; }
|
|
|
|
[Column("ADDED_WHEN")]
|
|
public DateTime? AddedWhen { get; set; }
|
|
|
|
[Column("CHANGED_WHO")]
|
|
public string? ChangedWho { get; set; }
|
|
|
|
[Column("CHANGED_WHEN")]
|
|
public DateTime? ChangedWhen { get; set; }
|
|
} |