Why does this violate the type constraint?

前端 未结 3 1555
伪装坚强ぢ
伪装坚强ぢ 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:43

    Ran into this problem. It was crashing on the startup.cs file. changed

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

    to

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

    declaring the key type seemed to get past the crash

提交回复
热议问题