This commit reorganizes namespaces from `DigitalData.Core.Abstractions` and `DigitalData.Core.DTO` to `DigitalData.Core.Application.Interfaces` and `DigitalData.Core.Application.DTO`, improving maintainability and clarity. Updated using directives across multiple files to reflect the new structure, ensuring functionality remains intact. Project references in `DigitalData.Core.API.csproj` have been consolidated to include the new Application project. Introduced new classes and interfaces such as `BaseDTO`, `CookieConsentSettings`, `DataResult`, `Notice`, and `Result` to enhance data transfer and service result handling. Updated `IRepository`, `ICRUDRepository`, and `IEntityMapper` interfaces to facilitate CRUD operations and entity mapping. Added extension methods in `Extensions.cs` to improve repository usability. New interfaces for HTTP client services have been added, enhancing external API call handling. Overall, these changes reflect a significant restructuring aimed at improving organization and preparing for future development.
22 lines
1.3 KiB
C#
22 lines
1.3 KiB
C#
using DigitalData.Core.Abstractions;
|
|
|
|
namespace DigitalData.Core.Application.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Implements a simplified CRUD service interface that uses a single Data Transfer Object (DTO) type for all CRUD operations,
|
|
/// streamlining the process for entities where the same DTO can be used for creating, reading, updating, and deleting entities.
|
|
/// This interface inherits from the ICRUDService interface, applying the same DTO type for all generic type parameters,
|
|
/// thereby simplifying the usage for cases where a single DTO is sufficient for all operations on an entity.
|
|
/// </summary>
|
|
/// <typeparam name="TDto">The type of the Data Transfer Object used for all CRUD operations.</typeparam>
|
|
/// <typeparam name="TEntity">The type of the entity this service maps to.</typeparam>
|
|
/// <typeparam name="TId">The type of the identifier for the entity.</typeparam>
|
|
/// <remarks>
|
|
/// This interface is useful for entities that do not require different DTOs for different operations,
|
|
/// allowing for a more concise and maintainable codebase when implementing services for such entities.
|
|
/// </remarks>
|
|
public interface IBasicCRUDService<TDto, TEntity, TId> : ICRUDService<TDto, TDto, TEntity, TId>
|
|
where TDto : class, IUnique<TId> where TEntity : class, IUnique<TId>
|
|
{
|
|
}
|
|
} |