
For example when your project have migration called context1 (Refer above image "For Context 1" statement)
update-database -configuration Sarasa.ERP.Data.Migrations.Configuration -force -verbose
in this statement the red colored text is the migration folder name for context1.
So when you want to update database within the context2 you only have to change the migration floder name in above statement, looks like example below. (Refer above image "For Context 2" statement)
update-database -configuration Sarasa.ERP.Data.Migrations2.Configuration -force -verbose
some error found on that code...
ReplyDeleteWhat is the error Mr.Sanjeewa
Deletewhat is the Sarasa.ERP.Data.. please explain that............
Delete...
Cant you see that in the figure.. Sarasa.ERP.Data is the project that contain the Migrations for database.
Deleteplease briefly explain that. i think some error in that update statement..
Delete