I'm new to Code-first migration world and i need some help to understand how to rollback without problems.
I made the following EF migrations :
201512050853073_InitialCreate
201512050919315_AutomaticMigration
201512050922156_AutomaticMigration
201512051442428_add_SourceProperty
201512051447812_add_TargetProperty
The last Migration : i add property[Target
] to my class and add that migration.then update my database successfully .
Now if i want to rollback the last migration :
Should i just Run update-database -TargetMigration "add_SourceProperty" -verbose
?
or run the previous command then delete the [Target]
property and delete also the
`201512051447812_add_TargetProperty.cs` file ?