entity framework - Migrations is enabled for context 'ApplicationDbContext' but the database does not ex -
i`m trying extend useridentity, using code first migration(ef 6.0.0.0). first try of code first migration.
public class applicationuser : identityuser { public string nameofuser { get; set; } }
add-migration "nameofuser" - ok update-database - ok
field in db created , marked "allow null"
but when using action in accountcontroller app throw error
migrations enabled context 'applicationdbcontext' database not exist or contains no mapped tables. use migrations create database , tables, example running 'update-database' command package manager console.
how can resolve prob?
Comments
Post a Comment