2020-01-08 21:34:49 -05:00
|
|
|
|
using System.Collections.Generic;
|
2020-01-08 21:38:32 -05:00
|
|
|
|
using System.Text.Json;
|
2020-01-08 21:34:49 -05:00
|
|
|
|
using AutoMapper;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Models.EntityFramework
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Organization : Table.Organization
|
|
|
|
|
|
{
|
2020-01-08 21:38:32 -05:00
|
|
|
|
private JsonDocument _twoFactorProvidersJson;
|
|
|
|
|
|
|
2020-01-08 21:34:49 -05:00
|
|
|
|
public ICollection<Cipher> Ciphers { get; set; }
|
2020-01-08 21:38:32 -05:00
|
|
|
|
|
|
|
|
|
|
public JsonDocument TwoFactorProvidersJson
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _twoFactorProvidersJson;
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
TwoFactorProviders = value.ToString();
|
|
|
|
|
|
_twoFactorProvidersJson = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2020-01-08 21:34:49 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class OrganizationMapperProfile : Profile
|
|
|
|
|
|
{
|
|
|
|
|
|
public OrganizationMapperProfile()
|
|
|
|
|
|
{
|
|
|
|
|
|
CreateMap<Table.Organization, Organization>().ReverseMap();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|