Activities of "mmaldonado@emscltd.com"

Hi,

Can you share the full steps? thanks.

  1. Create the entity Agency (class) (Domain)
  2. Create the entity AgencyUser (Class) (Domain)
  3. Create the map for entities on separate files (EntityFrameworkCore )
  4. Add dbSet for AgencyUser and Agency to dbContext
  5. Call the maps from dbContext
  6. Add reference to package: Volo.Abp.IdentityServer.Domain to EntityFrameworkCore and Domain projects ( I add this package to get the user as FK)

there are no more steps.

Could you guide me how should I solve this? or which should be the correct implementation for this ?

  • ABP Framework version: 5.3.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): microservices

I need to create the next structure on code

!

The table AbpUsers is on AbpIdentity Database The tables AgencyUser and Agency has to be on Agency Database I need to add the navigation property to the user to get some properties about the user

The documentation related to this case on FAQ are related on the same database, so the map and solutions do not work complete for me.

Current progress

Add reference to package: Volo.Abp.IdentityServer.Domain on Company.Project.AgencyService.EntityFrameworkCore and Company.Project.AgencyService.Domain

Entity Class

public class AgencyUser : FullAuditedTenantEntity<Guid>
{

    // Foreign key referenceing the AbpUser
    public Guid IdentityUserId { get; set; }
    public IdentityUser IdentityUser { get; set; }

    public Guid AgencyId { get; set; }
    public Agency Agency { get; set; }
}
`
> Mapp

`
public class AgencyUserMap : IEntityTypeConfiguration<AgencyUser>
{

    public void Configure(EntityTypeBuilder<AgencyUser> builder)
    {
        builder.ConfigureByConvention();

        builder.ToTable("AgencyUser");

        builder.HasKey(x => x.Id);

        builder.Property(x => x.Id).ValueGeneratedOnAdd();

        builder.HasOne< IdentityUser >().WithMany().HasForeignKey(x => x.IdentityUserId);
        builder.HasOne< Agency >().WithMany().HasForeignKey(x => x.AgencyId);

        builder.Navigation(x => x.IdentityUser).AutoInclude();
        builder.Navigation(x => x.Agency).AutoInclude();
    }
}
  • The problem that I am facing is when I try to generate the migration EF tries to generate IdentityUser tables.
  • I need guidance please your help
  • ABP Framework version: 5.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / microservices

How may I use tag helper on angular?

Answer

I couldn't understand well but if you want to change layout. You just remove abp-dynamic-layout. and add <router-outlet> and are ready to go. if you want to use <abp-sidemenu> you can use it. Just add in HTML.

Result

I would like to re use your components, like your menu, to create a secondary menu

my secondary menu is dinamic based on the context and role, but as you can see, the style, the behavior are not the same, so I have to create a component to fit your style, so is better if I could re-use your component.

also I need to work with breadcrumb

Answer

Would you describe what is your purpose for using Abp Side Menu? What do you want to do ?

also to keep working with guards, I am thinking is better to re use instead of write new component for same functionallity, full functionallity about menu, permissions, style,

Answer

re use component to avoid write new menu, and keep look and feel and style for sub menus

Answer

No problem. hope it solves...

the code that you sent me was just related to product, I still need to create the ng proxies for my services

Answer

is this problem fixed on the new Abp.CLI 5.3.3 ?

Question
  • ABP Framework version: 5.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): microservices template

I would like to implement a sub menu, using <router-outlet></router-outlet>, and reuse the component abp-sidebar, do you have documentation or any example that I can use to take a look?

Answer

thank you so much

Showing 31 to 40 of 64 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11