Add ProfileView entity mapped to VWREC_PROFILE view

Introduced the ProfileView entity as a record to represent data from the VWREC_PROFILE database view. Registered ProfileView in RecDbContext and configured its property mappings and primary key in OnModelCreating. This enables querying profile data via EF Core.
This commit is contained in:
2025-12-15 13:51:00 +01:00
parent 289b6109e4
commit 5404530785
2 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
namespace ReC.Domain.Entities;
public record ProfileView
{
public long ProfileGuid { get; init; }
public bool Active { get; init; }
public byte TypeId { get; init; }
public string Type { get; init; } = string.Empty;
public string Mandantor { get; init; } = string.Empty;
public string ProfileName { get; init; } = string.Empty;
public string? Description { get; init; }
public byte LogLevelId { get; init; }
public string LogLevel { get; init; } = string.Empty;
public short LanguageId { get; init; }
public string Language { get; init; } = string.Empty;
public string AddedWho { get; init; } = string.Empty;
public DateTime AddedWhen { get; init; }
public string? ChangedWho { get; init; }
public DateTime? ChangedWhen { get; init; }
public DateTime? FirstRun { get; init; }
public DateTime? LastRun { get; init; }
public string? LastResult { get; init; }
}