Why does this violate the type constraint?

前端 未结 3 1532
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 00:19

I\'m trying to customise ASP.NET Identity 3 so that it uses integer keys:

public class ApplicationUserLogin : IdentityUserLogin { }
public class Ap         


        
3条回答
  •  有刺的猬
    2020-12-06 00:22

    Ran into this problem as well. I had to add IdentityRole key type also, because it was still throwing the same error.

            services.AddIdentity>()
                .AddEntityFrameworkStores()
                .AddDefaultTokenProviders();
    

提交回复
热议问题