Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio mac for mac missing of identity class

Hi i downloaded visual studio for mac 2017 community version. I created a default MVC Core 2.0 project and i noticed that there is missing class of Account controllers where it used to have register and account other handler functions.

i created the same project in windows .In windows i can see that there is identity class and controller created.

how do i generate this authentication class in visual studio for mac Core 2.0?

I tried creating the default project in windows and copy to mac and it works!!! After i change the connection string to the server.Identity framework works fine in mac. But why is microsoft not generating the code for mac?

like image 406
MVC newbie Avatar asked Aug 15 '17 14:08

MVC newbie


1 Answers

ok this is the command to include authentication for mac ok visual studio 2017 core 2.0.

 dotnet new mvc -o moviemvc --auth Individual

once u register a new account. it will create a new database in the folder with app.db which is filebase database i believe. open db use this sql lite browser to open it and view the content of it.

if you want to use sql server instead then you will need to add this into the line when create new project with terminal. add it in front of --auth will do

-uld
like image 95
MVC newbie Avatar answered Sep 28 '22 17:09

MVC newbie