Mark DeleteOutResCommand and related classes as obsolete
Added the [Obsolete("Use the related procedure or view.")] attribute to DeleteOutResCommand, its handler, and its validator to indicate these should no longer be used and to guide consumers toward the recommended procedure or view.
This commit is contained in:
@@ -11,6 +11,7 @@ namespace ReC.Application.OutResults.Commands;
|
|||||||
/// Deletion can be performed by providing either an <see cref="ActionId"/> or a <see cref="ProfileId"/>.
|
/// Deletion can be performed by providing either an <see cref="ActionId"/> or a <see cref="ProfileId"/>.
|
||||||
/// At least one of these properties must be set for the operation to proceed.
|
/// At least one of these properties must be set for the operation to proceed.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
[Obsolete("Use the related procedure or view.")]
|
||||||
public record DeleteOutResCommand : IRequest
|
public record DeleteOutResCommand : IRequest
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -27,6 +28,7 @@ public record DeleteOutResCommand : IRequest
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handles the execution of the <see cref="DeleteOutResCommand"/>.
|
/// Handles the execution of the <see cref="DeleteOutResCommand"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Use the related procedure or view.")]
|
||||||
public class DeleteOutResCommandHandler(IRepository<OutRes> repo) : IRequestHandler<DeleteOutResCommand>
|
public class DeleteOutResCommandHandler(IRepository<OutRes> repo) : IRequestHandler<DeleteOutResCommand>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ using FluentValidation;
|
|||||||
|
|
||||||
namespace ReC.Application.OutResults.Commands;
|
namespace ReC.Application.OutResults.Commands;
|
||||||
|
|
||||||
|
[Obsolete("Use the related procedure or view.")]
|
||||||
public class DeleteOutResCommandValidator : AbstractValidator<DeleteOutResCommand>
|
public class DeleteOutResCommandValidator : AbstractValidator<DeleteOutResCommand>
|
||||||
{
|
{
|
||||||
public DeleteOutResCommandValidator()
|
public DeleteOutResCommandValidator()
|
||||||
|
|||||||
Reference in New Issue
Block a user