How to solve this error when Enable-Migrations [Resolved]

Posted by Jayakumars under C# on 3/31/2017 | Points: 10 | Views : 188 | Status : [Member] [MVP] | Replies : 1
hi

how to solve this How to solve this error when Enable-Migrations

this is error

i enter pm console


The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))


How to run migration script in asp.net?

Mark as Answer if its helpful to you


Responses

Posted by: Rajnilari2015 on: 4/2/2017 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Follow the steps

If we are changing the Model once the DB tables has been created, then we need to

1. Enable-Migrations,
2. add-migration
3. update-database


hope that helps

--
Thanks & Regards,
RNA Team

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response