Activities of "maliming"

Thanks

sure.

What is your azure environment? Can you introduce it?

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

Showing 7321 to 7330 of 11546 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 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.