Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "marble68"

11.01 MVC CORE

The rad tool lets us create 1 to 1 navigation properties or one to many, dropdown or lookup table.

This is great.

However - since it doesn't do many to many - what's the best approach to this?

Scenario: "Package entity" - the user can create a package, let's call it the Package entity. The user can also create services such as wash, oil change, wipers, tiers, and windshield, lets call that entity CarService

Thus:

Package 1 could have an oil change and tiers Package 2 could have an oil change and wash Package 3 could have wash and tires

I tried to do a 1<>many of Package and service. If I Edit Service, I can add a CarService to the package.

However, I can only add that carservice to one package?

If a CarService can belong to multiple Packages, should I do the entity relationship the other way? As in, do a master detail on the CarService entity?

Would the best approach to this be to create a new entity with navigation properties to both Package and CarService for creating these manually, but eventually modifying the user interface to provide more elegant matching (perhaps with drag drop or something)? In other words, do it this way, then modify the views and view objects to get the relationships?

Or is there a better approach that is right in front of me?

Thanks for any advice

Version 11.01, MVC, .net Core

Using the method listed here:

https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Core-Angular-Sign-In-Without-Specifying-Tenant

How do I move a user from one tenant to another, as the host?

Since the user is associated with the Tenant, when logged in as host, the framework doesn't return these users.

My scenario is where a tenant will have users who have specific data associated with them, not the tenant. They may be a customer of tenant A, but then move to tenant B.

The associated data would move with the user, of course.

How would I approach creating a tool for the host to search and work with all user accounts across all tenants? IRepository seems to block this?

Rather than put the entity at the tenant level, we want to edit a tenants departments at the host level.

If I use the radtool - the Tenant isn't available as a navigation property.

We would like to search across tenants and all departments for a specific department sometimes, whie logged in as host.

In addition, we don't want the tenant being able to add or remove departments.

Would it be better to add this to the tenant and host, then define a role for the tenant so they have no access to departments?

Not sure of the best approach. Any advice is appreciated.

has anyone tried this?

abp docs arent correct either.

ive been unable to get it to work.

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 11.0.1
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .Net Core

I downloaded 11.0.1 Core MVC Jquery. This is a clean install, no modified code except as instructed in links.

I'm using the latest MySql connector (8.0.28), MySql.EntityFramework.Core (6.0.0).

I went through instructions detailed here: https://aspnetboilerplate.com/Pages/Documents/EF-Core-MySql-Integration :

  • Changed builder.UseMySql(connectionString) in DbContextConfigurer, Configure Method.
  • Deleted all migration classes and snapshot from EntityFrameworkCore project and recreated them from scratch.

As referenced in this ticket: https://support.aspnetzero.com/QA/Questions/10340/Update-Database-does-not-seed-data , the solution was to then run the migrator.

When I run the migrator I get the following error:

MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'surpathv2.abpeditions' doesn't exist

From Package Manager Console, with Web.Mvc as startup project, and EntityFrameworkCore as Default project, I run add-migration Initial_Migration

It generates the error:

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.Storage.TypeMappingSourceDependencies' while attempting to activate 'MySql.EntityFrameworkCore.Storage.Internal.MySQLTypeMappingSource'.

In my database, the only table is __efmigrationshistory

My database configurater file reads as follows:

` public static class AspNetZeroDbContextConfigurer { public static void Configure(DbContextOptionsBuilder

    public static void Configure(DbContextOptionsBuilder<AspNetZeroDbContext> builder, DbConnection connection)
    {
        //builder.UseSqlServer(connection);
        builder.UseMySQL(connection);
    }
}

`

I cleaned and rebuit my solution as detailed here: https://support.aspnetzero.com/QA/Questions/7462/Support-for-MySQL

No luck. Can someone please help me?

Thank you!

WARNING: The download page does not properly detect the same namespace is entered and will use one of your project slots if you download an upgrade

In case anyone is looking at this - when you buy Aspnetzero, you get two namespaces to use for your project.

This is extremely important for a multitude of reasons, especially to do an update and change namespace because of a conflict. This is the scenario I'm in now, and I'm royally screwed by this.

When you create a project and need to get latest version to update your code - do not (I REPEAT DO NOT) enter the same namespace and download the latest version.

The site considers that a different namespace, even if it is the exactly the same project.

If you need to download an updated version, scroll down to recent downloads and there's a link to get that project, and if you click that it lets you get the latest version.

I made this mistake when I first started, and months later my client wants me to change my namespace.

ANZ - if you look at my downloads, you can see the issue - is there a way to get rid of one of those so I can get my project moved to the new namespace?

Prerequisites

8.9 MVC Core

UI Issue

Using default metronic theme -

If I have a row, in the first column is a label and the 2nd has an input - how can I get the label to vertically center?

I can't find the correct class to assign it.

Anyone know which one I should use?

Prerequisites

v8.9 MVC Core

Regenerate entity fails silently

I tried to regenerate an entity to add a property. When I click generate, nothing happens. No error or anything.

If I view changes to the project, it says my depdency, the dll, the runtimeconfig my entities json file, Linq, and cryptography dlls were changed.

Also, it appears to have added core 2.1?

However, nothing else happens.

Installed SDKs: 2.1.202 [C:\Program Files\dotnet\sdk] 2.1.514 [C:\Program Files\dotnet\sdk] 2.1.516 [C:\Program Files\dotnet\sdk] 2.1.517 [C:\Program Files\dotnet\sdk] 2.1.518 [C:\Program Files\dotnet\sdk] 3.1.402 [C:\Program Files\dotnet\sdk]

Any ideas?

Prerequisites

ver 8.9 MVC .net Core

Import users throws error if phone number is blank

When going through the import process, if the user leaves a column blank, the columns shift and the data is invalid.

Is there a way to to prevent this that anyone knows of?

Thanks!

8.9/ JQuery Developed on windows, deployed to Azure. Azure doesn't have windows time zones.

Tried modifying the time service to do translation. Sort of works, but my solution depends heavily on time zone conversions.

Logged in as host, changed Host's timezone to (UTC-06:00) Central Time (US & Canada), and save it.

In AbpSetting Table - it sets the value to the Windows Time Zone name.

Of course, when I go back to settings, it's incorrect, because it can't find "Central Standard Time".

How do I configure ABP to always use IANA timezoninfo, even on Windows?

Thanks!

Showing 21 to 30 of 68 entries