I made TenantaCacheExtended:
public class TenantaCacheExtended : TenantCache<Tenant, User>
{
public TenantaCacheExtended(
ICacheManager cacheManager,
IRepository<Tenant> tenantRepository,
IUnitOfWorkManager unitOfWorkManager) : base(cacheManager, tenantRepository, unitOfWorkManager)
{
}
protected override TenantCacheItem CreateTenantCacheItem(Tenant tenant)
{
return new TenantCacheItem
{
Id = tenant.Id,
Name = tenant.Name,
TenancyName = tenant.TenancyName,
EditionId = tenant.EditionId,
ConnectionString = SimpleStringCipher.Instance.Decrypt(tenant.ConnectionString),
IsActive = tenant.IsActive,
CustomData = SimpleStringCipher.Instance.Decrypt(tenant.AzureStorageConnectionString),
};
}
}
and it is located in Core project, same place where Tenant class is.
I tried to add IocManager.Register<ITenantCache, TenantaCacheExtended>(DependencyLifeStyle.Transient); to Core modules Initialize, PostInitialize and finally Application modules Initialize methods, but class is not being used. I had breakpoint at line "return new TenantCacheItem" but it newer got fired.
At the method where this custom data is supposed to be read, it is null.
Any advise?
Is it possible to add this new item to tenant cache?
Hi I need to add azure storage connection string for every tenant, if default is not used. So basically same functions as db connection string. Could you provide me some directions how to handle this.
Mika
Hi alper. I got that far, but now I am about to create appservice and I was wondering how to create query for jointable, since IRepository<StudentCources> is not possible.
Hi
Is there predefined practice for many-to-many join tables. I have object1 and object2 with many to many connection and for that connection I have join table with both objects id:s. IRepository needs entity with primary key, but I was wondering if there is allready some other way without the need of id for jointable.
Thank you. If anyone else is doing the same, here are Abp and AbpZero localization xml file locations: AbpZero [https://github.com/aspnetboilerplate/aspnetboilerplate/tree/master/src/Abp.Zero.Common/Zero/Localization/Source]) [https://github.com/aspnetboilerplate/aspnetboilerplate/tree/master/src/Abp.ZeroCore/Zero/Localization/SourceExt]) (I combined these two sources to one AbpZero-fi.xml)
Abp [https://github.com/aspnetboilerplate/aspnetboilerplate/tree/master/src/Abp/Localization/Sources/AbpXmlSource])
Thank you for your response! It worked. But can I create my own xml file for finnish language, so I don't need to translate all again on published sites? Where those files are located on Core + Angular(Merged) project?
Why tenant spesific logo is shown in image where w=168 and h=33, but uploaded logo is supposed to be w=139 and h=35?
account.component.html
logo
logo
Default email template there is also w=168. At header.component.html there is w=139 and h=35 for both tenant and defaultLogo. Mika
Same issue here, [https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=3986&hilit=language+change&start=10])
Hi
Merget Angular project, added new language (fi) and everything else seems to work, but angular confirmation messages are not translating AreYouSure, Cancel and Yes texts. I changed for test DE and it works, but my added language is not working. I double checked that I have AreYouSure key with fi value.
I added new xml file as embedded file and added new ApplicationLanguage to DefaultLanguagesCreator.
Is there some other steps I should take to make it work?