Ejemplo n.º 1
0
        public TenantManagementBase()
        {
            ObjectMapperContext = typeof(AbpTenantManagementBlazorModule);

            CreatePolicyName = TenantManagementPermissions.Tenants.Create;
            UpdatePolicyName = TenantManagementPermissions.Tenants.Update;
            DeletePolicyName = TenantManagementPermissions.Tenants.Delete;

            TenantInfo = new TenantInfoModel();
        }
Ejemplo n.º 2
0
        protected virtual async Task OpenEditConnectionStringModalAsync(Guid id)
        {
            var tenantConnectionString = await AppService.GetDefaultConnectionStringAsync(id);

            TenantInfo = new TenantInfoModel
            {
                Id = id,
                DefaultConnectionString = tenantConnectionString,
                UseSharedDatabase       = tenantConnectionString.IsNullOrWhiteSpace()
            };

            ManageConnectionStringModal.Show();
        }
Ejemplo n.º 3
0
        public TenantManagement()
        {
            LocalizationResource = typeof(AbpTenantManagementResource);
            ObjectMapperContext  = typeof(AbpTenantManagementBlazorModule);

            CreatePolicyName = TenantManagementPermissions.Tenants.Create;
            UpdatePolicyName = TenantManagementPermissions.Tenants.Update;
            DeletePolicyName = TenantManagementPermissions.Tenants.Delete;
            ManageConnectionStringsPolicyName = TenantManagementPermissions.Tenants.ManageConnectionStrings;
            ManageFeaturesPolicyName          = TenantManagementPermissions.Tenants.ManageFeatures;

            TenantInfo = new TenantInfoModel();
        }
Ejemplo n.º 4
0
        protected virtual async Task OpenEditConnectionStringModalAsync(TenantDto entity)
        {
            ManageConnectionStringValidations.ClearAll();

            var tenantConnectionString = await AppService.GetDefaultConnectionStringAsync(entity.Id);

            TenantInfo = new TenantInfoModel
            {
                Id = entity.Id,
                DefaultConnectionString = tenantConnectionString,
                UseSharedDatabase       = tenantConnectionString.IsNullOrWhiteSpace()
            };

            ManageConnectionStringModal.Show();
        }