2022-06-29 19:46:41 -04:00
|
|
|
|
using AutoMapper;
|
2020-01-08 20:28:16 -05:00
|
|
|
|
|
2022-08-29 14:53:16 -04:00
|
|
|
|
namespace Bit.Infrastructure.EntityFramework.Models;
|
|
|
|
|
|
|
|
|
|
|
|
public class Cipher : Core.Entities.Cipher
|
2020-01-08 20:28:16 -05:00
|
|
|
|
{
|
2022-08-29 14:53:16 -04:00
|
|
|
|
public virtual User User { get; set; }
|
|
|
|
|
|
public virtual Organization Organization { get; set; }
|
|
|
|
|
|
public virtual ICollection<CollectionCipher> CollectionCiphers { get; set; }
|
|
|
|
|
|
}
|
2020-01-08 20:28:16 -05:00
|
|
|
|
|
2022-08-29 14:53:16 -04:00
|
|
|
|
public class CipherMapperProfile : Profile
|
|
|
|
|
|
{
|
|
|
|
|
|
public CipherMapperProfile()
|
2020-01-08 20:28:16 -05:00
|
|
|
|
{
|
2022-08-29 14:53:16 -04:00
|
|
|
|
CreateMap<Core.Entities.Cipher, Cipher>().ReverseMap();
|
2020-01-08 20:28:16 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|