namespace DigitalData.Core.Abstraction.Application.DTO;
///
/// Represents a base Data Transfer Object (DTO) with an identifier.
///
/// The type of the identifier.
/// The identifier of the DTO.
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
public record BaseDTO(TId Id) where TId : notnull
{
///
/// Returns the hash code for this instance, based on the identifier.
/// This override ensures that the hash code is derived consistently from the identifier.
///
/// A hash code for the current object, derived from the identifier.
public override int GetHashCode() => Id.GetHashCode();
}