Bill Greer
Bill Greer

Reputation: 3166

Extra table in database Entity Framework Code First With Database Migrations

Is it okay to have a table in the database that is not one of the entities when using code first with database migrations? Or will this interfere with the migrations? I want to put in a table to track some miscellaneous information.

Upvotes: 0

Views: 452

Answers (1)

Sean Kenny
Sean Kenny

Reputation: 1636

We do this with no issues. We do add the table through the migration though so we we can ensure all developers have the same schema. If you want to skip this and go via SQL Management studio then you should have no issued either.

Sql(@"CREATE TABLE.....")

Upvotes: 2

Related Questions