mirror of
https://github.com/bitwarden/server.git
synced 2026-02-03 15:45:19 +08:00
* Move Api files * Move Core files * Move Infrastructure files * Move Sql Files * Move Api Sync files to Vault * Move test vault files * Update Sql.sqlproj paths * Update Codeowners * Fix vault file paths in sqlproj * Update CipherDetails.sql path in sqlproj * Update Core models and entities namespaces * Update namespaces Core Services and Repositories * Missed service namespaces * Update Api namespaces * Update Infrastructure namespaces * Move infrastructure queries that were missed * Tests namespace updates * Admin and Events namespace updates * Remove unused usings * Remove extra CiphersController usings * Rename folder * Fix CipherDetails namespace * Sqlproj fixes * Move stored procs into folders by table * using order fix
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using AutoMapper;
|
|
using Bit.Infrastructure.EntityFramework.Vault.Models;
|
|
|
|
namespace Bit.Infrastructure.EntityFramework.Models;
|
|
|
|
public class Organization : Core.Entities.Organization
|
|
{
|
|
public virtual ICollection<Cipher> Ciphers { get; set; }
|
|
public virtual ICollection<OrganizationUser> OrganizationUsers { get; set; }
|
|
public virtual ICollection<Group> Groups { get; set; }
|
|
public virtual ICollection<Policy> Policies { get; set; }
|
|
public virtual ICollection<Collection> Collections { get; set; }
|
|
public virtual ICollection<SsoConfig> SsoConfigs { get; set; }
|
|
public virtual ICollection<SsoUser> SsoUsers { get; set; }
|
|
public virtual ICollection<Transaction> Transactions { get; set; }
|
|
public virtual ICollection<OrganizationApiKey> ApiKeys { get; set; }
|
|
public virtual ICollection<OrganizationConnection> Connections { get; set; }
|
|
public virtual ICollection<OrganizationDomain> Domains { get; set; }
|
|
}
|
|
|
|
public class OrganizationMapperProfile : Profile
|
|
{
|
|
public OrganizationMapperProfile()
|
|
{
|
|
CreateMap<Core.Entities.Organization, Organization>().ReverseMap();
|
|
}
|
|
}
|