1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 17:12:49 -05:00

[PM-2943] Enable Nullable Repositories in Unowned Files (#4549)

* Enable Nullable In Unowned Repos

* Update More Tests

* Move to One If

* Fix Collections

* Format

* Add Migrations

* Move Pragma Annotation

* Add Better Assert Message
This commit is contained in:
Justin Baur
2024-07-24 09:48:09 -04:00
committed by GitHub
parent b5f09c599b
commit 1e0182008b
67 changed files with 8432 additions and 119 deletions

View File

@ -1,12 +1,14 @@
using System.ComponentModel.DataAnnotations;
#nullable enable
namespace Bit.Infrastructure.EntityFramework.Models;
public class Cache
{
[StringLength(449)]
public string Id { get; set; }
public byte[] Value { get; set; }
public required string Id { get; set; }
public byte[] Value { get; set; } = null!;
public DateTime ExpiresAtTime { get; set; }
public long? SlidingExpirationInSeconds { get; set; }
public DateTime? AbsoluteExpiration { get; set; }