mirror of
https://github.com/bitwarden/server.git
synced 2026-02-02 23:23:15 +08:00
22 lines
605 B
C#
22 lines
605 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Text.Json;
|
|||
|
|
using AutoMapper;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.Models.EntityFramework
|
|||
|
|
{
|
|||
|
|
public class OrganizationUser : Table.OrganizationUser
|
|||
|
|
{
|
|||
|
|
public virtual Organization Organization { get; set; }
|
|||
|
|
public virtual User User { get; set; }
|
|||
|
|
public virtual ICollection<CollectionUser> CollectionUsers { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class OrganizationUserMapperProfile : Profile
|
|||
|
|
{
|
|||
|
|
public OrganizationUserMapperProfile()
|
|||
|
|
{
|
|||
|
|
CreateMap<Table.OrganizationUser, OrganizationUser>().ReverseMap();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|