Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand ASP.NET MVC5 website development

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "how to understand ASP.NET MVC5 website development". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

I. Development environment

1. Development environment: Visual Studio 2013

2. Database: Sql Server 2012

3. Code management: TFS (provided by Microsoft for free)

Description: VS2013 and vs2012 feel little change, I downloaded the Pro version, the database is vs2013's own sqlserver database. Code management uses tfs provided by Microsoft for free (now called Visual Studio Online, the free version includes 5 users, unlimited team projects and private code repositories, which is enough for individuals), I am often out of town, using other computers, the purpose of using tfs is code sharing; the second is to make a backup.

Second, the technology used

The first four items are added by default to create a project. I haven't thought about whether to use Easyui or not. Sometimes I think that as a website project, non-management software can be used or not as much as possible.

Let's talk about mvc5. Look at the introduction. Mvc5 and MVC4 have not changed much.

1 、 One ASP.NET . This is a new feature of asp.net, should not be MVC, roughly means that you can mix Web Forms,MVC,Web API and so on into a project, mvc can add webforms things, you can add api, and so do other projects.

2 、 ASP.NET Identity . The new membership system (membership), one is based on OWIN, and the other is managed by Entity Framework Code First, which can expand user fields and so on.

3 、 Bootstrap . It's a good interface. It's a pity that I don't understand. I just want to study this time.

III. Project structure

Web project: a MVC project that interacts with the user. The attempt and controller part of the MVC, and appropriately define the attempt model (suffixed with ViewModel) for the interaction between the view and the controller. Contains two areas: Member (user area) and Manage (administrative area).

Models project: a model class, typically a class that interacts data with a database or project (excluding the attempt model).

Common project: place some common methods, such as encryption, transformation, generation of CAPTCHA, etc.

IDAL project: data access layer interface that defines how to operate with the database through EF.

DAL project: the data access layer, which inherits from IDAL and implements its defined methods.

IBLL project: the business logic layer interface that defines methods for providing services to Web projects by invoking the data access layer and processing.

BLL project: the business logic layer, which inherits from IBLL and implements its defined methods.

This is the end of "how to understand ASP.NET MVC5 website Development". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report