refactor(BaseDto): update to compile only in net

This commit is contained in:
Developer 02 2025-09-30 16:57:05 +02:00
parent 0dd4930f1b
commit dfa3cd1a58

View File

@ -1,4 +1,5 @@
namespace DigitalData.Core.Abstraction.Application.DTO; #if NET
namespace DigitalData.Core.Abstraction.Application.DTO;
/// <summary> /// <summary>
/// Represents a base Data Transfer Object (DTO) with an identifier. /// Represents a base Data Transfer Object (DTO) with an identifier.
@ -14,4 +15,5 @@ public record BaseDTO<TId>(TId Id) where TId : notnull
/// </summary> /// </summary>
/// <returns>A hash code for the current object, derived from the identifier.</returns> /// <returns>A hash code for the current object, derived from the identifier.</returns>
public override int GetHashCode() => Id.GetHashCode(); public override int GetHashCode() => Id.GetHashCode();
} }
#endif