mirror of
https://github.com/bitwarden/server.git
synced 2026-02-09 18:33:11 +08:00
Split out repositories to Infrastructure.Dapper / EntityFramework (#1759)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class OrganizationUser : Core.Entities.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<Core.Entities.OrganizationUser, OrganizationUser>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user