1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

fixes for databasecontext and json types

This commit is contained in:
Kyle Spearrin
2020-01-09 07:57:33 -05:00
parent 002efaafd4
commit 8026912eeb
9 changed files with 130 additions and 74 deletions

View File

@ -10,6 +10,7 @@ namespace Bit.Core.Models.EntityFramework
public User User { get; set; }
public Organization Organization { get; set; }
[IgnoreMap]
public JsonDocument DataJson
{
get => _dataJson;
@ -19,6 +20,7 @@ namespace Bit.Core.Models.EntityFramework
_dataJson = value;
}
}
[IgnoreMap]
public JsonDocument AttachmentsJson
{
get => _attachmentsJson;

View File

@ -9,7 +9,8 @@ namespace Bit.Core.Models.EntityFramework
private JsonDocument _twoFactorProvidersJson;
public ICollection<Cipher> Ciphers { get; set; }
[IgnoreMap]
public JsonDocument TwoFactorProvidersJson
{
get => _twoFactorProvidersJson;

View File

@ -10,6 +10,7 @@ namespace Bit.Core.Models.EntityFramework
public ICollection<Cipher> Ciphers { get; set; }
[IgnoreMap]
public JsonDocument TwoFactorProvidersJson
{
get => _twoFactorProvidersJson;