Skip to content

Documentation on SCIM Persistence does not mention the need of database migration with EnsureEfStoreMigrated #901

@LuukGlorie

Description

@LuukGlorie

I was following the documentation to get started with the SCIM server by using the scimempty template. After that, I wanted to add persistence using EF Core, so I followed the instructions in the Configuring Entity Framework Core for Different Databases section.

However, this did not work as expected — the database was not created, and no migrations were applied automatically. Initially, I assumed the setup would handle this, but nothing happened at runtime. It was only after I generated a new project using the scim template with the SQLSERVER type that I noticed the missing piece: calling EnsureEfStoreMigrated() during startup to run the migrations.

To help others avoid the same confusion, it would be helpful to explicitly mention in the documentation that you must also call EnsureEfStoreMigrated() as part of the default setup when using EF Core. Including this in the setup guide would make the instructions clearer and more complete for first-time users.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions