private void Initialize(OrganizationRoleInputDto organizationRole, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <OrganizationRole>(() => new OrganizationRoleCommandRepository());

            RootEntity = new OrganizationRole
            {
                Id = new OrganizationRoleId
                {
                    OrganizationId = organizationRole.OrganizationId,
                    RoleId         = organizationRole.RoleId
                }
            };

            Enqueue(new InsertEntityCommandOperation <OrganizationRole>(RootEntity, dependencies));
        }
 public CreateOrganizationRoleCommandAggregate(OrganizationRoleInputDto organizationRole, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(SchoolRoleOrganizationAddressConnectionClass.GetConnectionName()))
 {
     Initialize(organizationRole, dependencies);
 }