Re: aspcore.identity with MySQL database
Posted by: George Wu
Date: August 30, 2016 10:18PM

I have the same issue, this problem is caused by the "LockoutEnd" field. In previous version of Identity, it's a "DateTime", in asp.net core, it's "DateTimeOffset".
You can configure it with e.Property(p => p.LockoutEnd).HasColumnType("datetime") in OnModelCreating method.
But when lockout occured, it will throw an exception, mysql can not accept "DateTimeOffset"(such as "2016/8/31 4:20:59 +00:00").
You can solve this by rewrite the UserStore and IdentityUser, or just wait mysql provider update.

Options: ReplyQuote


Subject
Written By
Posted
Re: aspcore.identity with MySQL database
August 30, 2016 10:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.