Visual Studio mac for mac 缺少身份类 [英] visual studio mac for mac missing of identity class

查看:21
本文介绍了Visual Studio mac for mac 缺少身份类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我下载了 Visual Studio for mac 2017 社区版.我创建了一个默认的 MVC Core 2.0 项目,我注意到缺少 Account 控制器类,它曾经用于注册和帐户其他处理程序功能.

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.

我在 windows 中创建了相同的项目.在 windows 中我可以看到创建了标识类和控制器.

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

如何在 Visual Studio for mac Core 2.0 中生成此身份验证类?

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

我尝试在 windows 中创建默认项目并复制到 mac 并且它有效!!!在我将连接字符串更改为 server.Identity 框架后,在 mac 中工作正常.但是为什么微软没有为mac生成代码?

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?

推荐答案

ok 这是包含 mac ok Visual Studio 2017 core 2.0 身份验证的命令.

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

 dotnet new mvc -o moviemvc --auth Individual

一旦您注册一个新帐户.它将在带有 app.db 的文件夹中创建一个新数据库,我相信这是文件库数据库.open db 使用这个sql lite浏览器打开它并查看它的内容.

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.

如果您想改用 sql server,则需要在使用终端创建新项目时将其添加到行中.把它加在 --auth 前面就行了

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

这篇关于Visual Studio mac for mac 缺少身份类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆