Base solution for your next web application

Activities of "giel83"

Hello,

For a client of ours I need to target a few databases to extract and insert information. Now, I've tried creating the following classes in the EntityFrameworkCore project:

  • SecondDbContext.cs
  • SecondDbContextConfigurer.cs
  • SecondDbContextFactory.cs

I've also added the following in the Preinitialize() of the FirstInterfaceEntityFrameworkCoreModule.cs:

//add linkedin robot db context
                Configuration.Modules.AbpEfCore().AddDbContext<SecondDbContext>(configuration =>
                {
                    SecondDbContextConfigurer.Configure(configuration.DbContextOptions, configuration.ConnectionString);
                });

But for some reason when I try to use an appservice for the second database, it says table not found because it is trying to connect with the first database.

I'm not sure what i'm doing wrong here? :( Thanks in advance!

Question

Hi!

I am creating a menu-tree, which looks as following: Menu A -> Submenu A -> Submenu item A -> Submenu item B

Now, when I click on submenu item A or B, the entire menu tree closes. I want the tree to stay opened when I click on Submenu item A or B. I think I'm doing something wrong in the MpaNavigationProvider and PageNames class. But i'm not sure what is going wrong there.

(P.S, it's a MPA project)

Help is much appreciated! Thanks :)

Hi,

I'm using ABP 0.83 (I think) with asp net zero and I'm getting an error when I'm trying to edit a user. The error is thrown at the UserAppService.cs: await UserManager.SetRoles(user, input.AssignedRoleNames); It cannot save the roles and the following error occurs:

Value cannot be null.\r\nParameter name: source

Attached are the properties of the user, and the assignedRoleNames are also filled properly (at least that is what it looks like)

Any idea what's going wrong and how to solve this?

Thanks

Question

Hi,

I'm trying to implement some client side validation, but I can't get it to work. I also added the unobtrusive libraries and did rebinding after AJAX calls (like this: <a class="postlink" href="https://xhalent.wordpress.com/2011/01/24/applying-unobtrusive-validation-to-dynamic-content/">https://xhalent.wordpress.com/2011/01/2 ... c-content/</a>)

But under no circumstances am I able to get it to work, and I have tried a lot of things now.

My HTML elements look OK: <input class="form-control text-box single-line" data-val="true" data-val-length="The field Description must be a string with a maximum length of 255." data-val-length-max="255" data-val-required="The Description field is required." id="Assignments_2__Description" name="Assignments[2].Description" required="required" type="text" value=""> <span class="field-validation-valid text-danger" data-valmsg-for="Assignments[2].Description" data-valmsg-replace="true"></span>

This is generated by the Html.EditorFor helper.

What is the solution / best practice to enable client side validation in abp?

Showing 1 to 4 of 4 entries