Add DeleteResultProcedure for RESULT entity deletion
Introduced a new `DeleteResultProcedure` record in the `ReC.Application.Common.Procedures.DeleteProcedure` namespace. This record implements the `IDeleteProcedure` interface and provides properties for specifying a range of GUID/IDs (`Start` and `End`) and a `Force` flag. Added a `ToObjectProcedure` method to convert the record into a `DeleteObjectProcedure` with the entity set to "RESULT".
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
namespace ReC.Application.Common.Procedures.DeleteProcedure;
|
||||
|
||||
public record DeleteResultProcedure : IDeleteProcedure
|
||||
{
|
||||
/// <summary>
|
||||
/// Start GUID/ID (inclusive)
|
||||
/// </summary>
|
||||
public long Start { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// End GUID/ID (inclusive). If 0, will be set to Start value.
|
||||
/// </summary>
|
||||
public long End { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Force parameter (not used for RESULT entity as it has no dependencies)
|
||||
/// </summary>
|
||||
public bool Force { get; set; }
|
||||
|
||||
public DeleteObjectProcedure ToObjectProcedure()
|
||||
{
|
||||
return new DeleteObjectProcedure
|
||||
{
|
||||
Entity = "RESULT",
|
||||
Start = Start,
|
||||
End = End,
|
||||
Force = Force
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user