I have two projects in my solution, one is simple mvc project and the other one is web api.I have used Entity Framework. I have also used asp.net identity which generated the local db that has many columns in AspNetUsers table. Now I want to add and delete some columns from AspNetUsers table. I have included Migrations folder in my project which has configuration.cs and initial create.cs classes
CreateTable(
"dbo.AspNetUsers",
c => new
{
Id = c.String(nullable: false, maxLength: 128),
Email = c.String(maxLength: 256),
EmailConfirmed = c.Boolean(nullable: false),
PasswordHash = c.String(),
SecurityStamp = c.String(),
PhoneNumber = c.String(),
PhoneNumberConfirmed = c.Boolean(nullable: false),
TwoFactorEnabled = c.Boolean(nullable: false),
LockoutEndDateUtc = c.DateTime(),
LockoutEnabled = c.Boolean(nullable: false),
AccessFailedCount = c.Int(nullable: false),
UserName = c.String(nullable: false, maxLength: 256),
})
.PrimaryKey(t => t.Id)
.Index(t => t.UserName, unique: true, name: "UserNameIndex");
I have also tried to update database using Package Manager Console but nothing happened. So how can I add another column in AspNetUsers table? Thanks in advance.
AspNetUsersentity, then useadd-migrationcommand refer coding.abel.nu/2012/03/ef-migrations-command-reference/… also refer msdn.microsoft.com/en-us/data/jj591621.aspx