c# - Error after removing 2 columns from 'AspNetUsers' table -
during initial create migration of asp.net identity project, removed columns 'phonenumber' & 'phonenumberconfirmed' aspnetusers table. when attempt register new users, error:
[sqlexception (0x80131904): invalid column name 'phonenumber'. invalid column name 'phonenumberconfirmed'.] source file: \controllers\accountcontroller.cs line: 155 line 153: { line 154: var user = new applicationuser { username = model.email, email = model.email }; line 155: var result = await usermanager.createasync(user, model.password); line 156: if (result.succeeded) line 157: {
i'm guessing need update model , remove "phonenumber' , 'phonenumberconfirmed' fields, can't locate them in solution?
Comments
Post a Comment