"SF" open source. NET CORE Foundation Management System-Installation Chapter

Source: Internet
Author: User

"SF" open source. NET CORE Foundation Management System-series navigation1. Development of essential tools

ide:vs2017

Operating Environment: netcoreapp1.1

Database: SQL Server 2012+

2. Get the latest source code

Http://git.oschina.net/sframework/SF-Boilerplate

Clone to a local repository directly using the VS git tool

3. Open and compile the project

Open and compile the restore NuGet package, and if the restore fails, close vs re-open the project recompile.

If you visit a foreign NuGet server with unstable speed, you can use the NuGet image source of the blog park

NuGet Image source Address: Https://nuget.cnblogs.com/v3/index.json

How to add in Visual Studio:

4. Preparation of project operation

Manually create a new empty database Sf_team_2017_dev, and modify the following two database links

1, Appsettings.json

2, CoreDbContextFactory.cs

In the data migration I want entity, when I try to perform Enable-Migrations a step, I receive the following error in the Package Manager console:

The target context ‘CoreDbContext‘ is not constructible. Add a default constructor or provide an implementation of IDbContextFactory

So, I created a factory class that IDbContextFactory contained my project DbContext classes.

After completing the above two local modifications, rebuild the scenario, set the default startup entry, and select IIS Express to start the project by F5

The system runs automatically executes the database migration file, executes the initialization SQL script, and initializes the data.

5. Operation effect

Login account: Administrator

Login Password: 123456

To this end, a follow-up will introduce the system framework aspects.

SF is a basic management system based on the ASP. NET Core Mvc+efcore+bootstrap, which is fully open source code to help you solve C #. NET project, so that developers stay away from overtime work! SF official QQ Exchange Group: 306818375 Online Experience Address SF official demo address Code cloud: https://git.oschina.net/sframework/SF-Boilerplate

I firmly believe that: sharing to promote common progress

PS: Strong desire to conveniently spot star, watch, fork

"SF" open source. NET CORE Foundation Management System-Installation Chapter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.