mirror of
https://github.com/bitwarden/server.git
synced 2026-02-10 02:43:17 +08:00
18 lines
369 B
C#
18 lines
369 B
C#
|
|
using AutoMapper;
|
|||
|
|
|
|||
|
|
namespace Bit.Infrastructure.EntityFramework.Models
|
|||
|
|
{
|
|||
|
|
public class Device : Core.Entities.Device
|
|||
|
|
{
|
|||
|
|
public virtual User User { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class DeviceMapperProfile : Profile
|
|||
|
|
{
|
|||
|
|
public DeviceMapperProfile()
|
|||
|
|
{
|
|||
|
|
CreateMap<Core.Entities.Device, Device>().ReverseMap();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|