A hands-on tutorial series based on ASP.net core MVC and entityframework core-1

Source: Internet
Author: User
Tags button type


This series of articles for translation plus my personal understanding of the use of learning, I want to help programmers love to learn. Treasure Statement: This series of articles will be a little different from the original text, stripped of the Luo-li-suo.

Original: Getting Started with asp.net core MVC and Entity Framework core using Visual Studio

2017-3-7 22:01:58 This time is the time I started translating this series as well as the vs2017 press conference. I wish. Net core getting better foreword

The Contoso University sample project is a development based on visual Studio 2015, using the. NET core 1.0mvc and EntityFramework Core1.0.
Function Description:
This program is a fictitious Contoso University website, he includes enrollment, curriculum management, teacher management and other functions. This is a series of tutorials that tell you if you're building a Contoso University program from scratch.

EF Core1.0 is the latest version of EF, but he doesn't have all the ef6.x features. (Translator: So when you use the pit you meet yourself) Prerequisites: Visual Studio 2017: We must have used 2017.

. Net Core 1.1 Contoso University web program

The following is the text, the original author Rory The word I will not say. The basic is that users can view and modify students, courses, teachers of information.
Here's a screenshot:

For this tutorial to focus on how to use EntityFramework, the user interface style of the site is based on the content of the page generated by the VS2015 built-in template. Create a project that asp.net Core mvc

I've developed it with VS2017 RTM.

Open Visual Studio 2017 and create a new asp.net Core MVC project with a name: "Contosouniversity". From the File menu, select New Item select Web selection asp.net Core Web application (. NET core) Project input "Contosouniversity" as name from the left window and click OK

Foreigner patience is good, write so detailed not too tired

Then click Change to authenticate for no authentication, cancel hosting in the Cloud, and click OK

Here you can choose. Netcore 1.1

If you are not careful to enable authentication, then delete the item. Module of Microsoft Identity I'm empty, time to translate it alone, now we go on. change the layout and style of the site

Simple adjust the menu layout, home View information

Open the path to "views/shared/_layout.cshtml" modified under the heading name "Contosouniversity" for "Contoso University" To add menu Navigation view information, students,courses, Instructors and departments then delete the Contant menu


<! DOCTYPE html> 
Related Article

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.