Console Application
Ctrl + Shift + B generates an EXE file under the Bin/debug directory in File explorer
Windows Forms Applications (WinForm)
Generates an EXE file under the Bin/debug directory in File explorer
Files that end with an. exe suffix like this are called executables double-click Use
For this kind of file either copy or download to the computer but not necessarily be able to use
Because this is written in the C # language, the. NET Framework must be installed to use on top of the. NET Platform.
When you double-click an executable file, compile the exe file into an intermediate language through the. NET Framework
Then compile the machine code (binary code) by JIT (Instant compiler) and run the code inside
C/S client/server
Then this EXE file acts as a client role
How can we call it the C/s structure? EXE itself has no data to connect the database to get data
Like this is called C/s structure
Feature: All the code is running on the local computer and is converted to an intermediate language through the. NET Framework
Then by JIT compiled into machine code (binary code) to the CPU to execute.
It is precisely because of this that it leads to its advantages:
The code executes efficiently and consumes less performance on the server.
Disadvantage: Each time the system updates, maintenance, must re-download the new client.
And a little bit of us. Each server has a small amount of support for the client, and each region must have a separate server set up.
The server database for each region must be synchronized to the total database every day.
and synchronize updates from the overall database every day. This way, if there is a problem with the server database on one day
Then it will result in data loss, the total database or yesterday's data, today's data is lost.
This is also a disadvantage of C/s structure
So we introduced another model called B/S (Browser/server)
WEB Application
After compiling, the. dll file is generated in the Bin directory in File Explorer without debug
This is called a non-executable file, there is an alias called the Dynamic link library
You must use a server computer and upload the DLL file to this server.
Open a browser in the computer output the page to be requested hit enter, then send a request to the server
The server takes advantage of IIS to receive this request and then to the processing mapping pool to find the suffix of the request
Find this request forwarded to the Aspnet_isapi.all intermediate handler and pass
When the intermediate handler is forwarded to the ASP. NET Framework, the corresponding
The content response is sent back to the browser and the page content is displayed in the browser.
Relative C/S structure
Features: All the code is running on the server this leads to a disadvantage to the server pressure
High performance requirements for servers
Pros: No need to download the installer, data centralized management
-----------------
C # ADO SQL These are servers that run on the server language
HTML CSS JS These run on the browser side called Browser language
BS Structure and CS structure