Deprecate methods and classes in UserManager.Application

Introduce `[Obsolete]` attributes to various methods and classes, suggesting alternatives such as MediatR and IRepository. Mark multiple DTOs and repository classes as obsolete, recommending the use of DigitalData.Core.Exceptions and .Middleware or Repository. This change aims to enhance maintainability and clarity in the codebase.
This commit is contained in:
2025-06-26 13:37:59 +02:00
parent 5d3f73bb13
commit 39a9181257
9 changed files with 9 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ namespace DigitalData.UserManager.Application
/// <typeparam name="TDbContext">The type of the DbContext to use for the repositories.</typeparam>
/// <param name="services">The IServiceCollection to which the services will be added.</param>
/// <returns>The updated IServiceCollection.</returns>
[Obsolete("Use MediatR")]
public static IServiceCollection AddUserManagerApplication(this IServiceCollection services)
=> services
.AddAutoMapper(typeof(UserMappingProfile).Assembly)

View File

@@ -2,6 +2,7 @@
namespace DigitalData.UserManager.Application.DTOs.Group
{
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
public record GroupReadDto
(
int Id,

View File

@@ -4,6 +4,7 @@ using DigitalData.UserManager.Application.DTOs.User;
namespace DigitalData.UserManager.Application.DTOs.GroupOfUser
{
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
public record GroupOfUserReadDto(
int Id,
int UserId,

View File

@@ -4,6 +4,7 @@ using DigitalData.UserManager.Application.DTOs.User;
namespace DigitalData.UserManager.Application.DTOs.UserRep
{
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
public record UserRepReadDto(
int Id,
int? UserId,