From 9a453da7bc6126b2537029c55e17cd213ee62ba5 Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Thu, 6 Oct 2022 20:42:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Disable=20nullable=20reference?= =?UTF-8?q?=20types=20in=20the=20Data=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Data/Data.csproj | 1 - Sources/Data/EF/Players/PlayerEntity.cs | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Sources/Data/Data.csproj b/Sources/Data/Data.csproj index 4018f87..1aa3210 100644 --- a/Sources/Data/Data.csproj +++ b/Sources/Data/Data.csproj @@ -3,7 +3,6 @@ net6.0 enable - enable $(MSBuildProjectDirectory) diff --git a/Sources/Data/EF/Players/PlayerEntity.cs b/Sources/Data/EF/Players/PlayerEntity.cs index 45af6b3..b7f1714 100644 --- a/Sources/Data/EF/Players/PlayerEntity.cs +++ b/Sources/Data/EF/Players/PlayerEntity.cs @@ -7,9 +7,9 @@ namespace Data.EF.Players { public Guid ID { get; set; } - public string? Name { get; set; } + public string Name { get; set; } - public override bool Equals(object? obj) + public override bool Equals(object obj) { if (obj is not PlayerEntity) { @@ -18,9 +18,9 @@ namespace Data.EF.Players return Equals(obj as PlayerEntity); } - public bool Equals(PlayerEntity? other) + public bool Equals(PlayerEntity other) { - return other is not null && this.ID == other!.ID && this.Name == other.Name; + return other is not null && this.ID == other.ID && this.Name == other.Name; } public override int GetHashCode() @@ -28,7 +28,7 @@ namespace Data.EF.Players return HashCode.Combine(ID, Name); } - public override string? ToString() + public override string ToString() { return $"{ID.ToString().ToUpper()} -- {Name}"; }