Activities of "maliming"

It's not released yet, please wait for 7.1.1

hi

This is a problem with EF Core, Here is my test code with pure EF Core.

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDbContext<ApplicationDbContext>(options => options.UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=WebApplication1;Trusted_Connection=True;MultipleActiveResultSets=true"));

public class Employee
{
    public int Id { get; set; }
    public string Name { get; set; }
}

public class Employee2
{
    public int Id { get; set; }
    public string Name { get; set; }
}

public class ApplicationDbContext : DbContext
{
    public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
        : base(options)
    {
    }

    protected override void OnModelCreating(ModelBuilder builder)
    {
        builder.Entity<Employee>(b =>
        {
            b.ToTable("Employee", schema: null);
            b.Property(x => x.Name).IsRequired().HasMaxLength(100);
        });

        builder.Entity<Employee2>(b =>
        {
            b.ToTable("Employee", schema: null);
            b.Property(x => x.Name).IsRequired().HasMaxLength(100);
        });

        base.OnModelCreating(builder);
    }
}

public class ApplicationDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext>
{
    public ApplicationDbContext CreateDbContext(string[] args)
    {
        var optionsBuilder = new DbContextOptionsBuilder<ApplicationDbContext>();
        optionsBuilder.UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=WebApplication1;Trusted_Connection=True;MultipleActiveResultSets=true");

        return new ApplicationDbContext(optionsBuilder.Options);
    }
}

We will fix the issue in the next patch version, You question credit refunded.

hi

Try using AddDataMigrationEnvironment on your DbMigrator project.

https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/DbMigratorHostedService.cs#L31

hi

 > abp clean
 > dotnet build
 > abp bundle

: )

hi

Did you run the abp bundle on your blazor wasm project?

hi

Can you share a simple project? liming.ma@volosoft.com

You can also use a hacker way to solve problems temporarily:

Refresh the current page in your Index page and pass a parameter to the Index to prevent unlimited loop refresh.

You can register this event in any component to listen to the successful login or logout event.

Showing 7331 to 7340 of 11558 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.