حل ارور Remove-Migration
سلام خسته نباشید من وقتی تویserver.database database Connection String را پاک کردم و Remove-database را نوشتم این ارور
Remove-database : The term 'Remove-database' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Remove-database
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Remove-database:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException را می دهد
پاسخ ها
![user](/_ipx/f_webp&q_50&blur_3&s_10x10/codeyad/assets/img/UserAvatars/50655e66-86e5-4e25-9c29-7f4f3980c193.jpg)
محمد اشرافی
سلام ، Remove-database توی ef core نداریم اگر میخواید دیتابیس رو پاک کنید باید از drop استفاده کنید
لیست command های er core رو می تونید توی لینک زیر ببینید
https://docs.microsoft.com/en-us/ef/core/cli/powershell#drop-database