"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