From 07c838773b4fa2c4a8fe1e7653fc670f6ebdee90 Mon Sep 17 00:00:00 2001 From: jaasen-livefront Date: Fri, 14 Nov 2025 11:52:32 -0800 Subject: [PATCH] add nullable enable --- src/Core/Vault/Entities/Cipher.cs | 3 ++- src/Core/Vault/Entities/CipherArchive.cs | 4 +++- .../Vault/Models/CipherArchive.cs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Core/Vault/Entities/Cipher.cs b/src/Core/Vault/Entities/Cipher.cs index d585c93288..c8271f2cb0 100644 --- a/src/Core/Vault/Entities/Cipher.cs +++ b/src/Core/Vault/Entities/Cipher.cs @@ -27,10 +27,11 @@ public class Cipher : ITableObject, ICloneable public string Key { get; set; } /// - /// Deprecated as of Nov 2025. + /// Deprecated as of 2025-11-13. /// Source of truth is now CipherArchive (CipherId + UserId). /// Kept for backward compatibility during phased migration. /// + [Obsolete("Use CipherArchive table instead. This property will be removed in a future release.")] public DateTime? ArchivedDate { get; set; } public void SetNewId() diff --git a/src/Core/Vault/Entities/CipherArchive.cs b/src/Core/Vault/Entities/CipherArchive.cs index 692ef43180..d678e3f5ef 100644 --- a/src/Core/Vault/Entities/CipherArchive.cs +++ b/src/Core/Vault/Entities/CipherArchive.cs @@ -1,4 +1,6 @@ -using Bit.Core.Entities; +#nullable enable + +using Bit.Core.Entities; namespace Bit.Core.Vault.Entities; diff --git a/src/Infrastructure.EntityFramework/Vault/Models/CipherArchive.cs b/src/Infrastructure.EntityFramework/Vault/Models/CipherArchive.cs index ce04d28c34..c603c673e3 100644 --- a/src/Infrastructure.EntityFramework/Vault/Models/CipherArchive.cs +++ b/src/Infrastructure.EntityFramework/Vault/Models/CipherArchive.cs @@ -1,4 +1,4 @@ -using Bit.Infrastructure.EntityFramework.Models; +#nullable enable namespace Bit.Infrastructure.EntityFramework.Vault.Models;