How to perform code first approach on visual studio 2022 in MacBook m1

28 views Asked by At

How to add migration when working on razor pages with code first approach in visual studio 2022 on MacBook Air m1 because in tools we don’t get the option for package manager console from where we can add migration and update database

Anyone has the solution please share!!!

1

There are 1 answers

0
Mike Brind On

You can use the CLI commands instead. Open a terminal window, navigate to the directory containing your .csproj file and execute the commands from there.

Here's an example using the VS Code terminal: https://www.learnrazorpages.com/razor-pages/tutorial/bakery7/migration#create-the-migration