System.InvalidOperationException: 'Unable to track an entity of type 'IdentityUserLogin<string>' because its primary key property 'TenantId' is null.' #879
MayurPatel-BlobStation
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"When I attempt to insert data into the AspNetUserLogin table, I encounter the following error: System.InvalidOperationException: 'Unable to track an entity of type 'IdentityUserLogin' because its primary key property 'TenantId' is null.'. However, inserting data into the AspNetUser table works correctly."
var userResult = await _userManager.FindByEmailAsync("abc@gmail.com");
var result = await _userManager.AddLoginAsync(userResult, externalLoginInfo);
Beta Was this translation helpful? Give feedback.
All reactions