entity framework - Code first with existing database migrations new table creation -
I have an existing database. I am using the code before the existing database. I am able to add a new column to an existing table by using the add-migration and update database command.
But when I want to create a new table using a new table, it has not been made. For example, I want to create a new table locale resource. I have created a new class. I have removed the add-migration locale and then update the database command. But is not making any new tables. I am using the unit framework 6.1.
Please help me how.
To create a migration, you need to add a new table in your reference.
Public Virtual DBset & lt; Local Resources & gt; Local Resources (Receive); Set;}
Otherwise the migration macro does not know about your new table.
If you are not sure where this was built just search for your project for DBST
Comments
Post a Comment