In Move ASP.NET Identity store to EF Sql database zoidbergi described an issue similar to that which I\'m experiencing, but which was not completely answered. I am receiving
(INELEGANT?) SOLUTION:
I watched this excellent video https://www.youtube.com/watch?v=elfqejow5hM by Alexander Schmidt and at 33:00 the author reveals that the connection string should not be an EF connection string (using the EF provider) but should be a vanilla MYSQL/SQLServer connection string specifically set up for security, ie:
and similarly the identity model should be adjusted to:
Public Class ApplicationDbContext
Inherits IdentityDbContext(Of ApplicationUser)
Public Sub New()
MyBase.New("IMSSecurityEntities")
End Sub
This makes me nervous about accessing the security entities through the ORM - but I guess may well be by design so maybe no loss.