-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Open
Labels
10.0.NET 10.NET 10Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issuearea-identityaspnet-core/svcdoc-enhancementsecurity/subsvc
Description
Description
When Identity options that affect the model are used, such as
.AddDefaultIdentity<ApplicationUser>(options =>
{
options.Stores.SchemaVersion = IdentitySchemaVersions.Version2;
options.Stores.MaxLengthForKeys = 256;
options.SignIn.RequireConfirmedAccount = false;
})
EF tooling might not pick them up when generating or applying migrations, see dotnet/efcore#36314
To make sure that they are used consistently the app needs to be specified as the startup project when running the tools or, alternatively, implement IDesignTimeDbContextFactory
:
Page URL
Content source URL
Document ID
8750939b-6ae5-3b9a-6c32-5e84b7fea22c
Platform Id
e4bc952a-aa0d-f291-ecc1-9a6c25503108
Article author
Metadata
- ID: d9869895-9ba2-5027-46cd-89d1d995cba4
- PlatformId: e4bc952a-aa0d-f291-ecc1-9a6c25503108
- Service: aspnet-core
- Sub-service: security
Tjorbenn
Metadata
Metadata
Assignees
Labels
10.0.NET 10.NET 10Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issuearea-identityaspnet-core/svcdoc-enhancementsecurity/subsvc