visual studio mac for mac missing of identity class

后端 未结 3 807
借酒劲吻你
借酒劲吻你 2020-12-30 14:52

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

3条回答
  •  青春惊慌失措
    2020-12-30 15:22

    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
    

提交回复
热议问题