0 Replies - 1172 Views - Last Post: 20 October 2013 - 04:00 AM Rate Topic: -----

#1 tieugiang94  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 160
  • Joined: 07-December 11

Change data type of ASP.net Identity

Posted 20 October 2013 - 04:00 AM

namespace Microsoft.AspNet.Identity.EntityFramework
{
    public class IdentityUser : IUser
    {
        public IdentityUser();
        public IdentityUser(string userName);

        public virtual ICollection<IdentityUserClaim> Claims { get; }
        public virtual string Id { get; set; }
        public virtual ICollection<IdentityUserLogin> Logins { get; }
        public virtual string PasswordHash { get; set; }
        public virtual ICollection<IdentityUserRole> Roles { get; }
        public virtual string SecurityStamp { get; set; }
        public virtual string UserName { get; set; }
    }
}


This is new membership system of ASP.net ( go with Visual Studio 2013 released ).

The Datatype of ID is string. How to change it to int ( also auto increment).

The table name reflected of this table is "AspNetUsers" how to make it become "Users"

p/s: Is this a new version of SimpleMemberShip Provider ?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1