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:
40
src/ReC.Domain/Entities/ProfileView.cs
Normal file
40
src/ReC.Domain/Entities/ProfileView.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user