Add UpdateProfileProcedure record for profile updates
Introduced a new namespace `ReC.Application.Common.Procedures.UpdateProcedure`. Added the `UpdateProfileProcedure` record implementing the `IUpdateProcedure` interface. This record includes several nullable properties such as `Active`, `TypeId`, `Name`, `Description`, and others. Added the `ToObjectProcedure` method to convert the record into an `UpdateObjectProcedure` instance, setting the entity to "PROFILE" and supporting optional change tracking via `ChangedBy`.
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
namespace ReC.Application.Common.Procedures.UpdateProcedure;
|
||||||
|
|
||||||
|
public record UpdateProfileProcedure : IUpdateProcedure
|
||||||
|
{
|
||||||
|
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 DateTime? FirstRun { get; set; }
|
||||||
|
public DateTime? LastRun { get; set; }
|
||||||
|
public string? LastResult { get; set; }
|
||||||
|
|
||||||
|
public UpdateObjectProcedure ToObjectProcedure(long guid, string? changedWho = null)
|
||||||
|
{
|
||||||
|
return new UpdateObjectProcedure
|
||||||
|
{
|
||||||
|
Entity = "PROFILE",
|
||||||
|
Guid = guid,
|
||||||
|
Profile = this
|
||||||
|
}.ChangedBy(changedWho);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user