Open utterances-bot opened 2 years ago
Hi Anto. Excellent and detailed article.
After adding the Module, is it possible to change the branding for this new module? I tried to add a new ModuleABrandingProvider class in the ModuleA.Web folder and inherited DefaultBrandingProvider. i override the AppName property with a custom app name and also overwrite the logo property. But it doesnt seem to work. Is there a different way to do this, if it is even possible?
Thank you so much in advance.
@redbinkieresearchlabs I think It should work. Branding is done in the Main App. So try to change it in the Main App.
Hi Anto, Thanks for the response.
For the main app its not an issue, I am able to do it. What i was attempting to do is, for the new module, i am trying to have a separate logo when i land on the index of the new module. the new module is an MVC project. Do I have to create a new branding file in the main app named after the new module? or is there a reference i am missing?
Thanks so much.
thank you very much for your guidance on this issue, works very well. I run into a problem when I tried to access the original database. and getting this error when trying to link one of my tables with a primary database table. Wwould you be able to provide any insight on this? Thank you!
The entity type 'ExtraPropertyDictionary' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.
{
builder.Entity<CommunityAgent>(b =>
{
b.ToTable(DataManagementDbProperties.DbTablePrefix + "CommunityAgents", DataManagementDbProperties.SchemaCommunity);
b.ConfigureByConvention();
b.HasKey(x => new
{
x.CommunityId,
x.OrgUserId
});
b.HasOne<Community>()
.WithMany()
.IsRequired()
.HasForeignKey(x => x.CommunityId)
.OnDelete(DeleteBehavior.NoAction);
b.HasOne<AppUser>()
.WithMany()
.IsRequired()
.HasForeignKey(x => x.OrgUserId)
.OnDelete(DeleteBehavior.NoAction);
});
Add a new Module to the Tiered ABP App with separate database for the module | Anto Subash
Anto's personal blog.
https://blog.antosubash.com/posts/abp-add-new-module-with-seperate-db