Activities of "Jurjen"

Yes, that works !! :-D Thank you!

thank you. I'll look into that.

Hi,

Took some time but at this time I can make migrations in my module, not really sure why. I suppose the code I initially added wasn't complete.

However the generated migration doesn't compile

it seems the SqlServerModelBuilderExtensions don't get recognised (see picture), it needs the package Microsoft.EntityFrameworkCore.SqlServer which doesn't seem to be installed in the generated module-project {ModuleName}.EntityFrameworkCore

After installing:

install-package Microsoft.EntityFrameworkCore.SqlServer

It compiles/builds again :-)

Quick question,

The last hour I've been wondering why the migrations of my module don't get picked up by de DbMigrator. Looking in an older project (v5) I found some code that was not in the EntityFrameworkCore{ApplicationName}DbSchemaMigrator in my V9.0.0 solution:

    /* 
     * Modules Migrations:
     * One call for each AbpModule DbContext.
     */

    await _serviceProvider
        .GetRequiredService<{ModuleName}.EntityFrameworkCore.{ModuleName}DbContext>()
        .Database
        .MigrateAsync();

After putting this in it worked like a charm. Is this code supposed to be generated when using 'abp add-module ....' ? or should we just add this manually because I couldn't find this in the documentation. In that case I would have to make a not of that ..

Showing 11 to 14 of 14 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
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 November 07, 2025, 08:20