From d1099c64527180b9b64580af87afe494c376b0bb Mon Sep 17 00:00:00 2001 From: Jon Sagara Date: Sun, 19 Nov 2023 10:48:49 -0800 Subject: [PATCH] Timestamp needs to be nullable. Comment out SourceLink PackageReference to see if SourceLink still works. --- Directory.Build.props | 2 +- src/Sagara.Core.Data/Models/Entity.cs | 2 +- src/Sagara.Core.Data/Models/IEntity.cs | 2 +- src/Sagara.Core/Sagara.Core.csproj | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 46760d4..3221c9a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,7 +5,7 @@ 12.0 - 2.0.6 + 2.0.7 2.0.0 2.0.0 Jon Sagara diff --git a/src/Sagara.Core.Data/Models/Entity.cs b/src/Sagara.Core.Data/Models/Entity.cs index 2a363c0..b4a7775 100644 --- a/src/Sagara.Core.Data/Models/Entity.cs +++ b/src/Sagara.Core.Data/Models/Entity.cs @@ -28,7 +28,7 @@ public abstract class Entity : IEntity [Timestamp] // Required by EF Core for SQL Server Timestamp functionality. #pragma warning disable CA1819 // Properties should not return arrays - public byte[] Timestamp { get; set; } = null!; + public byte[]? Timestamp { get; set; } #pragma warning restore CA1819 // Properties should not return arrays /// diff --git a/src/Sagara.Core.Data/Models/IEntity.cs b/src/Sagara.Core.Data/Models/IEntity.cs index 2ad6329..ae145bc 100644 --- a/src/Sagara.Core.Data/Models/IEntity.cs +++ b/src/Sagara.Core.Data/Models/IEntity.cs @@ -34,7 +34,7 @@ public interface IEntity /// // Justification: Required by EF Core for the SQL Server timestamp to function. #pragma warning disable CA1819 // Properties should not return arrays - byte[] Timestamp { get; set; } + byte[]? Timestamp { get; set; } #pragma warning restore CA1819 // Properties should not return arrays } diff --git a/src/Sagara.Core/Sagara.Core.csproj b/src/Sagara.Core/Sagara.Core.csproj index 393417f..16b15b6 100644 --- a/src/Sagara.Core/Sagara.Core.csproj +++ b/src/Sagara.Core/Sagara.Core.csproj @@ -30,10 +30,10 @@ - +