refactor(BaseDto): update to compile only in net
This commit is contained in:
parent
0dd4930f1b
commit
dfa3cd1a58
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user