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.
21 lines
632 B
C#
21 lines
632 B
C#
namespace ReC.Application.Common.Procedures.InsertProcedure;
|
|
|
|
public record InsertEndpointParamsProcedure : IInsertProcedure
|
|
{
|
|
public bool? Active { get; set; }
|
|
public string? Description { get; set; }
|
|
public short? GroupId { get; set; }
|
|
public byte? Sequence { get; set; }
|
|
public string? Key { get; set; }
|
|
public string? Value { get; set; }
|
|
|
|
public InsertObjectProcedure ToObjectProcedure(string addedWho = "Rec.API")
|
|
{
|
|
return new InsertObjectProcedure
|
|
{
|
|
Entity = "ENDPOINT_PARAMS",
|
|
EndpointParams = this,
|
|
AddedWho = addedWho
|
|
};
|
|
}
|
|
} |