asp.net MVC5 website Development Overview (a) _ Practical skills

Source: Internet
Author: User

Some time ago has been using MVC4 to write a website development demo, because just started to learn all the code is written in a project, the more confusion, to later some of the code themselves are not clear. Just see others in the MVC5 write things, the new I immediately downloaded Visual Studio 2013, fortunately MVC4 to MVC5 changes, this time to MVC5 to write a demo. Every time I look at the previous code has put it into the recycling station impulse, in fact, there is no perfect code, can solve the problem of code is good code, but I still decided to write a study of the demo, I hope this can be improved, I hope this can be finished!

I. Development environment
1. Development environment: Visual Studio 2013

2. Database: SQL Server 2012

3. Code management: TFS (courtesy of Microsoft)

Description: VS2013 and vs2012 feel little change, I downloaded the Pro version, the database is the vs2013 of the SQL Server database. Code management uses Microsoft's free TFS (now called Visual Studio Online, Free edition includes 5 users, unlimited team projects and private code repositories, enough for individuals), I am a regular field, using other computers, the purpose of using TFS is code sharing The second is to make a backup.

Second, the use of technology

The first 4 items for the creation of the default add, to Easyui whether this use I have not thought well, and sometimes feel as a Web site project, the management of the software can not be used or as far as possible.

Next MVC5 bar, see Introduction mvc5 and MVC4 change is not big.

1, one asp.net. This is a new feature of ASP.net, not MVC, which roughly means that the Web Forms,mvc,web API can be blended into one project, and MVC can add webforms things, add APIs, and other projects.

2, ASP.net Identity. The new Membership System (membership), one is based on Owin, and the other is managed using the entity Framework Code, which can extend the user fields themselves.

3, Bootstrap. Do the interface of a good thump. Unfortunately, I do not understand, just this time to learn.

III. Structure of the project

Web project: an MVC project that interacts with the user. An attempt and controller section in MVC, and an attempt model (with ViewModel suffix) that defines the interaction between the view and the controller. Contains two zone member (user area), Manage (admin area).
Models Project: A model class, typically a class that interacts with data from a database or project (excluding an attempt model).
Common project: put some public methods, such as encryption, conversion, generate verification code.
Idal Project: The data Access layer interface, which defines how to operate through the EF and the database.
dal project: A data access layer that inherits from Idal and implements the methods of its definition.
IBLL Project: A business Logic layer interface that defines a method that provides services to a Web project by invoking the data access layer and processing it.
BLL Project: The business logic layer that inherits from IBLL and implements its definition.

The above is the ASP.net MVC5 website development Practice Overall overview,

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.