Skip to content

Conversation

@thomasvdb
Copy link

Upgrade the project to .NET 10 so solve the issue of a MissingMethodException.

@oycbox
Copy link

oycbox commented Dec 4, 2025

upgrading the package version only would give error:
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Private.CoreLib.dll: 'The entity type 'IdentityUserPasskey' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'

There may be more fix need to be done.

@thomasvdb
Copy link
Author

Correct, we added the following line to our ApplicationDbContext to solve the issue as we don't need this support:
builder.Ignore<IdentityUserPasskey<string>>();

I don't know if this is something that should be the default or a correct implementation should be provided?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants