mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 17:12:49 -05:00
Turn on file scoped namespaces (#2225)
This commit is contained in:
@ -1,19 +1,18 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Cipher : Core.Entities.Cipher
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual ICollection<CollectionCipher> CollectionCiphers { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class CipherMapperProfile : Profile
|
||||
public class Cipher : Core.Entities.Cipher
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual ICollection<CollectionCipher> CollectionCiphers { get; set; }
|
||||
}
|
||||
|
||||
public class CipherMapperProfile : Profile
|
||||
{
|
||||
public CipherMapperProfile()
|
||||
{
|
||||
public CipherMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Cipher, Cipher>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Cipher, Cipher>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,20 +1,19 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Collection : Core.Entities.Collection
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual ICollection<CollectionUser> CollectionUsers { get; set; }
|
||||
public virtual ICollection<CollectionCipher> CollectionCiphers { get; set; }
|
||||
public virtual ICollection<CollectionGroup> CollectionGroups { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class CollectionMapperProfile : Profile
|
||||
public class Collection : Core.Entities.Collection
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual ICollection<CollectionUser> CollectionUsers { get; set; }
|
||||
public virtual ICollection<CollectionCipher> CollectionCiphers { get; set; }
|
||||
public virtual ICollection<CollectionGroup> CollectionGroups { get; set; }
|
||||
}
|
||||
|
||||
public class CollectionMapperProfile : Profile
|
||||
{
|
||||
public CollectionMapperProfile()
|
||||
{
|
||||
public CollectionMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Collection, Collection>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Collection, Collection>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class CollectionCipher : Core.Entities.CollectionCipher
|
||||
{
|
||||
public virtual Cipher Cipher { get; set; }
|
||||
public virtual Collection Collection { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class CollectionCipherMapperProfile : Profile
|
||||
public class CollectionCipher : Core.Entities.CollectionCipher
|
||||
{
|
||||
public virtual Cipher Cipher { get; set; }
|
||||
public virtual Collection Collection { get; set; }
|
||||
}
|
||||
|
||||
public class CollectionCipherMapperProfile : Profile
|
||||
{
|
||||
public CollectionCipherMapperProfile()
|
||||
{
|
||||
public CollectionCipherMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.CollectionCipher, CollectionCipher>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.CollectionCipher, CollectionCipher>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class CollectionGroup : Core.Entities.CollectionGroup
|
||||
{
|
||||
public virtual Collection Collection { get; set; }
|
||||
public virtual Group Group { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class CollectionGroupMapperProfile : Profile
|
||||
public class CollectionGroup : Core.Entities.CollectionGroup
|
||||
{
|
||||
public virtual Collection Collection { get; set; }
|
||||
public virtual Group Group { get; set; }
|
||||
}
|
||||
|
||||
public class CollectionGroupMapperProfile : Profile
|
||||
{
|
||||
public CollectionGroupMapperProfile()
|
||||
{
|
||||
public CollectionGroupMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.CollectionGroup, CollectionGroup>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.CollectionGroup, CollectionGroup>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class CollectionUser : Core.Entities.CollectionUser
|
||||
{
|
||||
public virtual Collection Collection { get; set; }
|
||||
public virtual OrganizationUser OrganizationUser { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class CollectionUserMapperProfile : Profile
|
||||
public class CollectionUser : Core.Entities.CollectionUser
|
||||
{
|
||||
public virtual Collection Collection { get; set; }
|
||||
public virtual OrganizationUser OrganizationUser { get; set; }
|
||||
}
|
||||
|
||||
public class CollectionUserMapperProfile : Profile
|
||||
{
|
||||
public CollectionUserMapperProfile()
|
||||
{
|
||||
public CollectionUserMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.CollectionUser, CollectionUser>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.CollectionUser, CollectionUser>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,16 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Device : Core.Entities.Device
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class DeviceMapperProfile : Profile
|
||||
public class Device : Core.Entities.Device
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
|
||||
public class DeviceMapperProfile : Profile
|
||||
{
|
||||
public DeviceMapperProfile()
|
||||
{
|
||||
public DeviceMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Device, Device>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Device, Device>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class EmergencyAccess : Core.Entities.EmergencyAccess
|
||||
{
|
||||
public virtual User Grantee { get; set; }
|
||||
public virtual User Grantor { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class EmergencyAccessMapperProfile : Profile
|
||||
public class EmergencyAccess : Core.Entities.EmergencyAccess
|
||||
{
|
||||
public virtual User Grantee { get; set; }
|
||||
public virtual User Grantor { get; set; }
|
||||
}
|
||||
|
||||
public class EmergencyAccessMapperProfile : Profile
|
||||
{
|
||||
public EmergencyAccessMapperProfile()
|
||||
{
|
||||
public EmergencyAccessMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.EmergencyAccess, EmergencyAccess>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.EmergencyAccess, EmergencyAccess>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,15 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Event : Core.Entities.Event
|
||||
{
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class EventMapperProfile : Profile
|
||||
public class Event : Core.Entities.Event
|
||||
{
|
||||
}
|
||||
|
||||
public class EventMapperProfile : Profile
|
||||
{
|
||||
public EventMapperProfile()
|
||||
{
|
||||
public EventMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Event, Event>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Event, Event>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,16 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Folder : Core.Entities.Folder
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class FolderMapperProfile : Profile
|
||||
public class Folder : Core.Entities.Folder
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
|
||||
public class FolderMapperProfile : Profile
|
||||
{
|
||||
public FolderMapperProfile()
|
||||
{
|
||||
public FolderMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Folder, Folder>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Folder, Folder>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,15 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Grant : Core.Entities.Grant
|
||||
{
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class GrantMapperProfile : Profile
|
||||
public class Grant : Core.Entities.Grant
|
||||
{
|
||||
}
|
||||
|
||||
public class GrantMapperProfile : Profile
|
||||
{
|
||||
public GrantMapperProfile()
|
||||
{
|
||||
public GrantMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Grant, Grant>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Grant, Grant>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Group : Core.Entities.Group
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual ICollection<GroupUser> GroupUsers { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class GroupMapperProfile : Profile
|
||||
public class Group : Core.Entities.Group
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual ICollection<GroupUser> GroupUsers { get; set; }
|
||||
}
|
||||
|
||||
public class GroupMapperProfile : Profile
|
||||
{
|
||||
public GroupMapperProfile()
|
||||
{
|
||||
public GroupMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Group, Group>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Group, Group>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +1,18 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class GroupUser : Core.Entities.GroupUser
|
||||
{
|
||||
public virtual Group Group { get; set; }
|
||||
public virtual OrganizationUser OrganizationUser { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class GroupUserMapperProfile : Profile
|
||||
public class GroupUser : Core.Entities.GroupUser
|
||||
{
|
||||
public virtual Group Group { get; set; }
|
||||
public virtual OrganizationUser OrganizationUser { get; set; }
|
||||
}
|
||||
|
||||
public class GroupUserMapperProfile : Profile
|
||||
{
|
||||
public GroupUserMapperProfile()
|
||||
{
|
||||
public GroupUserMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.GroupUser, GroupUser>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.GroupUser, GroupUser>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,16 +1,15 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Installation : Core.Entities.Installation
|
||||
{
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class InstallationMapperProfile : Profile
|
||||
public class Installation : Core.Entities.Installation
|
||||
{
|
||||
}
|
||||
|
||||
public class InstallationMapperProfile : Profile
|
||||
{
|
||||
public InstallationMapperProfile()
|
||||
{
|
||||
public InstallationMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Installation, Installation>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Installation, Installation>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,25 +1,24 @@
|
||||
using AutoMapper;
|
||||
|
||||
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<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; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class OrganizationMapperProfile : Profile
|
||||
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<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 class OrganizationMapperProfile : Profile
|
||||
{
|
||||
public OrganizationMapperProfile()
|
||||
{
|
||||
public OrganizationMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Organization, Organization>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Organization, Organization>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,16 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class OrganizationApiKey : Core.Entities.OrganizationApiKey
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class OrganizationApiKeyMapperProfile : Profile
|
||||
public class OrganizationApiKey : Core.Entities.OrganizationApiKey
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
|
||||
public class OrganizationApiKeyMapperProfile : Profile
|
||||
{
|
||||
public OrganizationApiKeyMapperProfile()
|
||||
{
|
||||
public OrganizationApiKeyMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.OrganizationApiKey, OrganizationApiKey>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.OrganizationApiKey, OrganizationApiKey>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,16 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class OrganizationConnection : Core.Entities.OrganizationConnection
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class OrganizationConnectionMapperProfile : Profile
|
||||
public class OrganizationConnection : Core.Entities.OrganizationConnection
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
|
||||
public class OrganizationConnectionMapperProfile : Profile
|
||||
{
|
||||
public OrganizationConnectionMapperProfile()
|
||||
{
|
||||
public OrganizationConnectionMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.OrganizationConnection, OrganizationConnection>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.OrganizationConnection, OrganizationConnection>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class OrganizationSponsorship : Core.Entities.OrganizationSponsorship
|
||||
{
|
||||
public virtual Organization SponsoringOrganization { get; set; }
|
||||
public virtual Organization SponsoredOrganization { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class OrganizationSponsorshipMapperProfile : Profile
|
||||
public class OrganizationSponsorship : Core.Entities.OrganizationSponsorship
|
||||
{
|
||||
public virtual Organization SponsoringOrganization { get; set; }
|
||||
public virtual Organization SponsoredOrganization { get; set; }
|
||||
}
|
||||
|
||||
public class OrganizationSponsorshipMapperProfile : Profile
|
||||
{
|
||||
public OrganizationSponsorshipMapperProfile()
|
||||
{
|
||||
public OrganizationSponsorshipMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.OrganizationSponsorship, OrganizationSponsorship>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.OrganizationSponsorship, OrganizationSponsorship>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +1,18 @@
|
||||
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; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class OrganizationUserMapperProfile : Profile
|
||||
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()
|
||||
{
|
||||
public OrganizationUserMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.OrganizationUser, OrganizationUser>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.OrganizationUser, OrganizationUser>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,16 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Policy : Core.Entities.Policy
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class PolicyMapperProfile : Profile
|
||||
public class Policy : Core.Entities.Policy
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
|
||||
public class PolicyMapperProfile : Profile
|
||||
{
|
||||
public PolicyMapperProfile()
|
||||
{
|
||||
public PolicyMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Policy, Policy>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Policy, Policy>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,15 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Provider : Core.Entities.Provider.Provider
|
||||
{
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class ProviderMapperProfile : Profile
|
||||
public class Provider : Core.Entities.Provider.Provider
|
||||
{
|
||||
}
|
||||
|
||||
public class ProviderMapperProfile : Profile
|
||||
{
|
||||
public ProviderMapperProfile()
|
||||
{
|
||||
public ProviderMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Provider.Provider, Provider>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Provider.Provider, Provider>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class ProviderOrganization : Core.Entities.Provider.ProviderOrganization
|
||||
{
|
||||
public virtual Provider Provider { get; set; }
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class ProviderOrganizationMapperProfile : Profile
|
||||
public class ProviderOrganization : Core.Entities.Provider.ProviderOrganization
|
||||
{
|
||||
public virtual Provider Provider { get; set; }
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
|
||||
public class ProviderOrganizationMapperProfile : Profile
|
||||
{
|
||||
public ProviderOrganizationMapperProfile()
|
||||
{
|
||||
public ProviderOrganizationMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Provider.ProviderOrganization, ProviderOrganization>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Provider.ProviderOrganization, ProviderOrganization>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class ProviderUser : Core.Entities.Provider.ProviderUser
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
public virtual Provider Provider { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class ProviderUserMapperProfile : Profile
|
||||
public class ProviderUser : Core.Entities.Provider.ProviderUser
|
||||
{
|
||||
public virtual User User { get; set; }
|
||||
public virtual Provider Provider { get; set; }
|
||||
}
|
||||
|
||||
public class ProviderUserMapperProfile : Profile
|
||||
{
|
||||
public ProviderUserMapperProfile()
|
||||
{
|
||||
public ProviderUserMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Provider.ProviderUser, ProviderUser>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Provider.ProviderUser, ProviderUser>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,15 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Role : Core.Entities.Role
|
||||
{
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class RoleMapperProfile : Profile
|
||||
public class Role : Core.Entities.Role
|
||||
{
|
||||
}
|
||||
|
||||
public class RoleMapperProfile : Profile
|
||||
{
|
||||
public RoleMapperProfile()
|
||||
{
|
||||
public RoleMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Role, Role>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Role, Role>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Send : Core.Entities.Send
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class SendMapperProfile : Profile
|
||||
public class Send : Core.Entities.Send
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
|
||||
public class SendMapperProfile : Profile
|
||||
{
|
||||
public SendMapperProfile()
|
||||
{
|
||||
public SendMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Send, Send>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Send, Send>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,16 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class SsoConfig : Core.Entities.SsoConfig
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class SsoConfigMapperProfile : Profile
|
||||
public class SsoConfig : Core.Entities.SsoConfig
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
|
||||
public class SsoConfigMapperProfile : Profile
|
||||
{
|
||||
public SsoConfigMapperProfile()
|
||||
{
|
||||
public SsoConfigMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.SsoConfig, SsoConfig>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.SsoConfig, SsoConfig>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class SsoUser : Core.Entities.SsoUser
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class SsoUserMapperProfile : Profile
|
||||
public class SsoUser : Core.Entities.SsoUser
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
|
||||
public class SsoUserMapperProfile : Profile
|
||||
{
|
||||
public SsoUserMapperProfile()
|
||||
{
|
||||
public SsoUserMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.SsoUser, SsoUser>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.SsoUser, SsoUser>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,15 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class TaxRate : Core.Entities.TaxRate
|
||||
{
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class TaxRateMapperProfile : Profile
|
||||
public class TaxRate : Core.Entities.TaxRate
|
||||
{
|
||||
}
|
||||
|
||||
public class TaxRateMapperProfile : Profile
|
||||
{
|
||||
public TaxRateMapperProfile()
|
||||
{
|
||||
public TaxRateMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.TaxRate, TaxRate>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.TaxRate, TaxRate>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Transaction : Core.Entities.Transaction
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class TransactionMapperProfile : Profile
|
||||
public class Transaction : Core.Entities.Transaction
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
public virtual User User { get; set; }
|
||||
}
|
||||
|
||||
public class TransactionMapperProfile : Profile
|
||||
{
|
||||
public TransactionMapperProfile()
|
||||
{
|
||||
public TransactionMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Transaction, Transaction>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.Transaction, Transaction>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
@ -1,23 +1,22 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class User : Core.Entities.User
|
||||
{
|
||||
public virtual ICollection<Cipher> Ciphers { get; set; }
|
||||
public virtual ICollection<Folder> Folders { get; set; }
|
||||
public virtual ICollection<CollectionUser> CollectionUsers { get; set; }
|
||||
public virtual ICollection<GroupUser> GroupUsers { get; set; }
|
||||
public virtual ICollection<OrganizationUser> OrganizationUsers { get; set; }
|
||||
public virtual ICollection<SsoUser> SsoUsers { get; set; }
|
||||
public virtual ICollection<Transaction> Transactions { get; set; }
|
||||
}
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class UserMapperProfile : Profile
|
||||
public class User : Core.Entities.User
|
||||
{
|
||||
public virtual ICollection<Cipher> Ciphers { get; set; }
|
||||
public virtual ICollection<Folder> Folders { get; set; }
|
||||
public virtual ICollection<CollectionUser> CollectionUsers { get; set; }
|
||||
public virtual ICollection<GroupUser> GroupUsers { get; set; }
|
||||
public virtual ICollection<OrganizationUser> OrganizationUsers { get; set; }
|
||||
public virtual ICollection<SsoUser> SsoUsers { get; set; }
|
||||
public virtual ICollection<Transaction> Transactions { get; set; }
|
||||
}
|
||||
|
||||
public class UserMapperProfile : Profile
|
||||
{
|
||||
public UserMapperProfile()
|
||||
{
|
||||
public UserMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.User, User>().ReverseMap();
|
||||
}
|
||||
CreateMap<Core.Entities.User, User>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user