Updated IInsertProcedure and all implementations to accept an optional 'addedWho' parameter in ToObjectProcedure, defaulting to "Rec.API". This enables tracking of the entity responsible for insert operations.
22 lines
658 B
C#
22 lines
658 B
C#
namespace ReC.Application.Common.Procedures.InsertProcedure;
|
|
|
|
public record InsertProfileProcedure : IInsertProcedure
|
|
{
|
|
public bool? Active { get; set; }
|
|
public byte? TypeId { get; set; }
|
|
public string? Mandantor { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? Description { get; set; }
|
|
public byte? LogLevelId { get; set; }
|
|
public short? LanguageId { get; set; }
|
|
|
|
public InsertObjectProcedure ToObjectProcedure(string addedWho = "Rec.API")
|
|
{
|
|
return new InsertObjectProcedure
|
|
{
|
|
Entity = "PROFILE",
|
|
Profile = this,
|
|
AddedWho = addedWho
|
|
};
|
|
}
|
|
} |