Added `[Obsolete("Use MediatR")]` attributes to various controller and service classes to indicate deprecation in favor of MediatR. Simplified generic type constraints in `CRUDControllerBase` and related files by removing `IUnique<TId>`. Improved structure and documentation in `CSPMiddleware.cs`. Introduced new extension methods in `EntityExtensions.cs` for safer retrieval of 'Id' properties. Removed `IUnique.cs` interface and updated project dependencies in `DigitalData.Core.Application.csproj` for caching. Overall, these changes enhance code maintainability and clarity.
18 lines
596 B
C#
18 lines
596 B
C#
using DigitalData.Core.Application.Interfaces;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DigitalData.Core.API
|
|
{
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
[Obsolete("Use MediatR")]
|
|
public class BasicCRUDControllerBase<TCRUDService, TDto, TEntity, TId> : CRUDControllerBase<TCRUDService, TDto, TDto, TDto, TEntity, TId>
|
|
where TCRUDService : ICRUDService<TDto, TDto, TEntity, TId>
|
|
where TDto : class
|
|
where TEntity : class
|
|
{
|
|
public BasicCRUDControllerBase(ILogger logger, TCRUDService service) : base(logger, service)
|
|
{
|
|
}
|
|
}
|
|
} |