mirror of
https://github.com/bitwarden/server
synced 2025-12-24 12:13:17 +00:00
21 lines
592 B
C#
21 lines
592 B
C#
using AutoMapper;
|
|
using Bit.Infrastructure.EntityFramework.AdminConsole.Models;
|
|
using Bit.Infrastructure.EntityFramework.Models;
|
|
|
|
namespace Bit.Infrastructure.EntityFramework.Vault.Models;
|
|
|
|
public class Cipher : Core.Vault.Entities.Cipher
|
|
{
|
|
public virtual User User { get; set; }
|
|
public virtual Organization Organization { get; set; }
|
|
public virtual ICollection<CollectionCipher> CollectionCiphers { get; set; }
|
|
}
|
|
|
|
public class CipherMapperProfile : Profile
|
|
{
|
|
public CipherMapperProfile()
|
|
{
|
|
CreateMap<Core.Vault.Entities.Cipher, Cipher>().ReverseMap();
|
|
}
|
|
}
|