Introduction to ASP. NET Core (Introduction to ASP. NET Core), coreintroduction
ASP. NET Core is a cross-platform, high-performance, open-source framework used to generate cloud-based and Internet-connected new applications. We can use ASP. NET Core:
- Generate Web applications and services, IoT applications, and mobile backend.
- Use your favorite development tools on Windows, macOS, and Linux.
- Deploy to cloud or local
- Run on. NET Core or. NET Framework.
Why ASP. NET Core?
Millions of developers are using ASP. NET to create Web applications. ASP. NET Core is a re-designed ASP. NET, which changes the architecture and provides a simpler modular framework.
ASP. NET Core has the following advantages:
- Generate a unified scenario of Web UI and Web API.
- Integration of the new client framework and development workflow.
- Environment-based cloud ready Configuration System.
- Built-in dependency injection.
- Lightweight, high-performance, and modular HTTP request pipeline.
- It can be hosted on IIS or in its own processes.
- It can run on. NET Core and supports real version control for parallel applications.
- Simplified New Web development tools.
- It can be generated and run in Windows, macOS, and Linux.
- Open source and focus on communities.
ASP. NET Core is provided as part of the NuGet package. This can optimize the application so that it only contains the required NuGet package. The advantages of small application drawing areas include enhanced security, reduced maintenance, and improved performance.
Use ASP. NET Core MVC to generate Web API and Web UI
ASP. NET Core MVC provides functions to help generate Web APIs and Web applications:
- The Model-View-Controller (MVC) mode makes Web APIs and Web applications testable.
- Razor page (new feature in 2.0) is a page-based programming mode that makes Web UI generation simpler and more efficient.
- The Razor Syntax provides efficient languages for Razor pages and MVC views.
- Mark the help program so that the server code can participate in the creation and rendering of HTML elements in the Razor file.
- The built-in multi-data format and content negotiation support allows Web APIs to access multiple clients, including browsers and mobile devices.
- Model binding automatically maps data from HTTP requests to operation method parameters.
- Model Verification automatically performs client and server verification.
Client development
ASP. NET Core is well-designed and can be seamlessly integrated with a variety of client frameworks, including AngularJS, KnockoutJS, and Bootstrap. For more information, see client development.