I was able to fix this myself by replacing the OrganizationUnitManagerservice and override the MoveAsync method so that it calledOrganizationUnitRepository.UpdateAsync after making any changes to properties of any OrganizationUnit.
That means MongoDb repository doesn't update it. I'll open an issue for this problem and try to reproduce it. We'll fix this in the next version if there's a bug.
Issue no: #4357
because Suite cannot determine project UI and it's trying to create AutoMapper class for MVC. But you are using Angular. This is because you are using module source-code in the application. can you just try to create the entity without modules source-code included.
How to customize the logo of Blazor project?
sorry but this is not supported. you can only generate code in your application or in the module solution itself. you cannot generate code across modules and application.
Each module can define its database table prefix. For example Blog module sets its database table as Blg
. This is done in the module. See BloggingDbProperties.cs . If you want to overwrite this prefix you can do it in your Domain Module class as below.
Volo.Blogging.BloggingDbProperties.DbTablePrefix = "Xyz"
For Identity Server module you can set it as below
Volo.Abp.IdentityServer.AbpIdentityServerDbProperties.DbTablePrefix = "Ids";
This behavour is same for other modules as well.
The essential framework modules have Abp
prefix. Check out the documentation
https://docs.abp.io/en/abp/latest/Entity-Framework-Core-Migrations#table-prefixes
In your application, your table prefix is App
by default. You can change this in the following file:
Acme.BookStore\src\Acme.BookStore.Domain\BookStoreConsts.cs
namespace Acme.BookStore
{
public static class BookStoreConsts
{
public const string DbTablePrefix = "Xyz"; //<----- this is the variable to set your table prefix
public const string DbSchema = null;
}
}
This change requires the re-creation of migrations. To do this; delete your existing migrations in the Migrations folder Acme.BookStore.EntityFrameworkCore.DbMigrations\Migrations\
and then add migrations using add-migration Initial
ABP creates database tables with prefix. For example some tables have Abp
prefix like "AbpUsers", and some tables have App
prefix like "AppBooks" and some tables have Blg
like "BlgBlogs".
How can I change database tables prefix?
Publish your Angular application and copy the output to wwwroot of your Host. Then a middleware like this in the Host side
app.Use(async (context, next) =>
{
await next();
if (context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value))
{
context.Request.Path = "/index.html";
await next();
}
});
You can use SetSubItemOrder
method to set an order in YourProjectMenuContributor.cs
class.
private static async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
var l = context.GetLocalizer<SAMResource>();
context.Menu.AddItem(new ApplicationMenuItem(
SAMMenus.Home,
l["Menu:Home"],
"/",
icon: "fas fa-home",
order: 1
));
//Administration
var administration = context.Menu.GetAdministration();
administration.Order = 2;
//Administration->Saas
administration.SetSubItemOrder(SaasHostMenus.GroupName, 1);
//Administration->Identity
administration.SetSubItemOrder(IdentityProMenus.GroupName, 2);
//Administration->Language Management
administration.SetSubItemOrder(LanguageManagementMenus.GroupName, 3);
//Administration->Text Template Management
administration.SetSubItemOrder(TextTemplateManagementMenus.GroupName, 4);
//Administration->Audit Logs
administration.SetSubItemOrder(AbpAuditLoggingMenus.GroupName, 5);
//Administration->Settings
administration.SetSubItemOrder(SettingManagementMenus.GroupName, 6);
}
I want to keep the Administration
menu item at the end.