CopyPastor

Detecting plagiarism made easy.

Score: 0.8599461913108826; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2020-10-18
by Chameera

Original Post

Original - Posted on 2016-08-12
by Steve Greene



            
Present in both answers; Present only in the new answer; Present only in the old answer;

f you just made the changes in the last migration, you can rollback that migration. Otherwise, just adjust your models and the changes will be picked up in the next migration. To remove a table, simply remove the corresponding `DbSet<MyClass>` and any references to that class in other parts of your model and EF will add a DropTable to the migration automatically. If you are no longer using the class for non-Entity Framework purposes you can delete it.
remove your
public DbSet<TableClassName> TableClassNameSet { get; set; }
If you just made the changes in the last migration, you can [rollback][1] that migration. Otherwise, just adjust your models and the changes will be picked up in the next migration. To remove a table, simply remove the corresponding `DbSet<MyClass>` and any references to that class in other parts of your model and EF will add a DropTable to the migration automatically. If you are no longer using the class for non-Entity Framework purposes you can delete it.

[1]: https://stackoverflow.com/questions/21312103/how-do-i-undo-the-last-add-migration-command

        
Present in both answers; Present only in the new answer; Present only in the old answer;