The difference between. NET, C #, and Asp.net,asp.net MVC four

Source: Internet
Author: User

From:http://www.cnblogs.com/wwym/p/5555772.html

Often, some people do not understand. NET and the relationship between C # and ASP. What are they? What is the relationship between them? Today I will briefly summarize it for you.

First: what is. NET?

. NET is a development platform under Microsoft Corporation. NET core is the. NET framwork (. NET Framework) is the environment in which. NET programs are developed and run, and can be developed in different languages under this platform, because. NET is a cross-language platform. The language can be c#,f#,j#,vb.net and so on. By the way, the difference between the Java and. Net of sum company is that Java is cross-platform, not cross-lingual. NET cross-platform is limited to Android system and iOS Apple system.

The composition of the 1..net framework is divided into two parts: the CLR: The common language runtime, which provides features such as intrinsic management, code security detection, and so on

FLC:. NET Framework class library, the class library has many threads of resources can be used (such as: classes, methods, properties), provide a large number of application class library, improve development efficiency

Structure of the 2.CLR: CLS: Common Language Specification, getting various languages translated into a uniform syntax specification.

CTS: A common type system that converts data types in various languages into uniform types

JIT: The real-time compiler (instant compiler) is used to compile the converted language into a binary language, which is given to the CPU for execution.

3. NET-run mechanism flow

Various languages (c#,f#,j# and other corresponding source programs) ——-— cls,cts first compilation ——————— > Uniform specification Language (intermediate language) MSIL (. Exe. DLL) ———— JIT second compilation ———— > Binary language —————— > running in the CPU

Extrapolate, know that the operating mechanism of. NET can understand the operation mechanism of Java in the way, the principle is actually almost

. Java ———— compile ——— > Bytecode files (. CLASS) ——— JVM explanation (JVM virtual machine) ——— > Binary Language —————— > running in the CPU

Some people say: learning the. NET Framework is a must for all. NET developers, otherwise developed. NET program is always stuck in ' drilling ', the. NET Framework is one of the ' internal skills ' of the. NET development guru.

4.c# is a. NET platform for a programming language, just a language, that's all. The programming language is a tool to facilitate communication between developers and computers. The relationship between C # and. NET can be seen from the running mechanism of the. NET above, and the screen reader makes the brain imagination.

5.ASP. NET is a Web development technology and is an application model in the. NET Framework. (Its history is very long-term, I do not write its origin, the personal understanding is its mother is ASP, do not understand the Niang bar) using ASP. To develop Web applications and maintain their operation is simpler than other development languages. Compared to advanced technologies such as Java, PHP, and Perl, ASP. NET has the advantages of convenience, flexibility, high production efficiency, high security and object-oriented, and is one of the most popular network programming technologies at present.

6. With regard to ASP. NET MVC, I often don't understand their names when I first approached this technology. I believe that many of the ASP. NET developers are starting to come into contact with MVC and should be as much of a reason as I do, and would mistakenly think that MVC has nothing to do with ASP. NET is a framework for creating Web applications, and MVC is a more advanced architecture that can be used to organize and manage code in a better way, so it could be called ASP. We can call the original ASP. ASP. NET Webforms, and the new MVC is called ASP.

MVC is a model of software architecture, which can be said to be equivalent to the design patterns we often say. The main include three modules, as the name implies. Just as the MVC name shows: Model, view, controller, and so on. The models and Views (view) in MVC are completely different from the models and Views (view) in the three-tier architecture.

Features of the model in MVC:

① has the right to direct data access, such as: access to the database;

The ② model does not depend on Views and controllers (Controller), i.e. the model does not care how it is displayed or how it is manipulated;

Changes in the data in the ③ model are generally "advertised" through a refresh mechanism;

④ in order to implement the view in ③ that the "mechanism" used to monitor this model must be registered on this model beforehand. Thus, the view can understand the changes that have occurred on the data model.

View , where the view is basically the same as the view in the three layer, all to show the data, there is no logic on the program. In order to refresh the data on the view, the view needs to access the model it monitors, so it should be registered with the data it is monitoring.

Controller, This concept is a concept that does not exist in layer three. It primarily acts on different levels of organization, and is used to control the flow of applications. Handles the event and makes the appropriate action.

These are the conceptual differences between the three-layer structure and MVC. (What is a three-layer structure?) Baidu a bit, you know. )

There is a good saying: learning without thinking is blind, thinking and not learning is almost, learning programming not only to know it, but also to know its why, to better understand and realize the magic of programming and wonderful.

The difference between. NET, C #, and Asp.net,asp.net MVC four

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.