你的位置:首页 > 软件开发 > ASP.net > 创建ABPboilerplate模版项目

创建ABPboilerplate模版项目

发布时间:2016-11-29 18:02:48
本文是根据角落的白板报的《通过ABPboilerplate模版创建项目》一文的学习总结,感谢原文作者角落的白板报。1 准备开发环境:Visual Studio 2015 update3SQL Server 2012 2 创建Demo项目2.1 进入ABP官网:http://w ...

本文是根据角落的白板报的《通过ABPboilerplate模版创建项目》一文的学习总结,感谢原文作者角落的白板报。

1 准备

开发环境:

Visual Studio 2015 update3

SQL Server 2012

 

2 创建Demo项目

2.1 进入ABP官网:http://www.aspnetboilerplate.com/

2.2 进行如下图选择和输入:

创建ABPboilerplate模版项目

2.3 根据提示,输入验证码,即进入下载。

创建ABPboilerplate模版项目

2.4 进入下载的同时,页面跳转到提示页。下一步我们将按照这些提示进行操作。

  • Open your solution on Visual Studio 2013 or later.(使用Visual Studio 2013及以上版本打开解决方案)
  • Select the 'Web' project as startup project.(选择Web项目为启动项目)
  • Open Package Manager Console, select 'EntityFramework' project as Default project and run the EntityFramework's 'Update-Database' command. This will create the database.(打开程序包管理器控制台,选择“EntityFramework”项目为默认项目,并运行“Update-Database”命令,将自动生成数据文件)
  • Run the application. User name is 'admin' and password is '123qwe' as default.(运行程序,输入账号“admin” 密码“123qwe”)

3 配置

3.1 将下载的Demo.zip文件解压到Demo文件夹,使用Visual Studio 2015打开项目。

创建ABPboilerplate模版项目

3.2 鼠标解决方案右键“还原NuGet包”。

创建ABPboilerplate模版项目

3.3 将Demo.Web项目设为启动项目。

创建ABPboilerplate模版项目

3.4 根据实际需要,修改数据库连接配置。

在Demo.Web项目的Web.config文件中,

<add name="Default" connectionString="Server=localhost; Database=Demo; Trusted_Connection=True;" providerName="System.Data.SqlClient" />

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:创建ABPboilerplate模版项目

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录