c# - Integer for Id rather than GUID when using ASP.NET Identity w/ a custom data store -
i aware when using asp.net identity w/ entity framework following tell identity user class using int instead of guid id
public class user : identityuser<int>
however, since not using entityframework class declaration this:
public class user : iidentity { public virtual guid id { get; set; } = guid.newguid(); public virtual string username { get; set; } public virtual string email { get; set; } public virtual bool emailconfirmed { get; set; } public virtual string passwordhash { get; set; } public string normalizedusername { get; internal set; } public string authenticationtype { get; set; } public bool isauthenticated { get; set; } public string name { get; set; } }
can change guid int without running issues or have implement identityuser still? identityuser part of identity.entityframework package no longer installed in application.
Comments
Post a Comment