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 ..