Hi,
In a multi-tenancy setup with separate database for each tenant, how do we enable code-first migration for all tenant databases in the event we change the code? Currently i run the update-database on master but when i log into tenants, i will get the context changed error which is natural as tenant db is not updated.
Regards, Asrar
Hi,
I am using the function below to get a list of all roles:
var _rolesAsync = await _roleRepository.GetAllListAsync();
I am getting the right values here. The return object is List<Role>. How do I convert this object to ListResultDto<RoleListDto> so i can return it to my modal? _rolesAsync does not have a MapTo function hence stuck.
Thanks so much.
Hi,
I am trying to implement the EditionManager.
public class EditionManager : AbpEditionManager
{
public const string DefaultEditionName = "Standard";
public EditionManager(
IRepository<WWEdition> editionRepository,
IAbpZeroFeatureValueStore featureValueStore)
: base(
editionRepository,
featureValueStore
)
{
}
}
WWEdition is the Edition class, that extends Edition from Abp:
public class WWEdition : Edition
{
public WWEdition()
{
}
public WWEdition(string displayName)
: base(displayName)
{
}
}
The error am getting is in EditionManager on WWEdition on editionRepository in base
cannot convert from 'Abp.Domain.Repositories.IRepository<Platform.Editions.WWEdition>' to 'Abp.Domain.Repositories.IRepository<Abp.Application.Editions.Edition>'
Is there something am missing please?
Hi,
Pardon me as am still new to Angular. I am trying to create an Edit Modal for Tenancy. I have created the cshtml and js files. I have added the edit button on the listing page and can get the row id as well. I have added the following code in index.js:
vm.openTenantEditModal = function (tenant) { var modalInstance = $uibModal.open({ templateUrl: '/App/Main/views/tenants/editModal.cshtml', controller: 'app.views.tenants.editModal as vm', backdrop: 'static' }); };
I do hit this function but for some reason the modal is not displayed, no javascript errors are also displayed. In editModal.js I did a consol.log to see if it hits the js file but no luck.
Am i missing something please?