- Mar 14, 2015 i try to enable Migration in many projects after update vs 2013 to update 4, but it take a long time and i must close my vs from task manager - and reopen it again for each task: 1. Enable migration. Add migration. Update database. in update 3 there is no problem?. so please can anyone tell me what is the problem here?
- I thought in that way because when I wanted to access my Visual Studio Projects on Windows system, I entered into from the directory named Home on 'Mac'(Y:) under Network Location (The exact path I followed is Computer-Home on 'Mac'(Y:)Under Network Location tab-Documents-Visual Studio 2015). Again, as the answer in the question the.
This article is rather small, but its target is to remind me how to enable migrations of database in Visual Studio.
Use the Visual Studio debugger to quickly find and fix bugs across languages. The Visual Studio for Mac debugger lets you step inside your code by setting Breakpoints, Step Over statements, Step Into and Out of functions, and inspect the current state of the code stack through powerful visualizations.
Thus, the steps are:
Download Visual Studio For Mac
- Press Ctrl + Q to go to the quick launch.
- In the quick launch write “Package Manager Console” and press enter.
- Make sure that you have selected the correct Default project in the console.
- In the console write> Enable-Migrations -EnableAutomaticMigrations and press enter.
- In the solution explorer, you get a folder migrations, in which a file Configuration.cs is present.
- If you open it, you may configure it this way (just an example, do not ever do AutomaticMigrationDataLossAllowed = true in production):
configuration.cs
2 4 6 | { this.AutomaticMigrationsEnabled=true; } |
And that is it!
![For For](/uploads/1/1/8/7/118747133/409107650.png)
Microsoft Visual Studio For Mac
Related posts:
Tagged with: Enable Migrations Visual Studio, Entity Framework