程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> 關於.NET >> 【翻譯】Asp.net Core介紹,asp.netcore介紹

【翻譯】Asp.net Core介紹,asp.netcore介紹

編輯:關於.NET

【翻譯】Asp.net Core介紹,asp.netcore介紹


ASP.NET Core is a significant redesign of ASP.NET. This topic introduces the new concepts in ASP.NET Core and explains how they help you develop modern web apps.

Asp.net Core是重新設計過得新一代Asp.Net。此篇文章介紹Asp.net Core 如何幫助你開發先進的web應用。

What is ASP.NET Core?

什麼是Asp.net Core

ASP.NET Core is a new open-source and cross-platform framework for building modern cloud based internet connected applications, such as web apps, IoT apps and mobile backends. ASP.NET Core apps can run on .NET Core or on the full .NET Framework. It was architected to provide an optimized development framework for apps that are deployed to the cloud or run on-premises. It consists of modular components with minimal overhead, so you retain flexibility while constructing your solutions. You can develop and run your ASP.NET Core apps cross-platform on Windows, Mac and Linux. ASP.NET Core is open source at GitHub.

Asp.Net Core 是一個新的、開源的、跨平台的開發框架,為了更好的構建基於雲網絡的先進應用,比如web app、IoT(物聯網) app和移動後端。Asp.net Core應用能夠運行在.Net Core或者.Net Framework環境下。這種新架構為應用部署到雲或者本地提供了高性能開發框架。它是由模塊化組件構成,這樣你就能很靈活的構建自己的解決方案。你可以在Windows、Mac和Linux下開發和運行你的Asp.net Core 應用。Asp.Net Core在GitHub上已經開源。

Why build ASP.NET Core?

為什麼構建Asp.Net Core?

The first preview release of ASP.NET came out almost 15 years ago as part of the .NET Framework. Since then millions of developers have used it to build and run great web apps, and over the years we have added and evolved many capabilities to it.

作為.Net框架的一部分,Asp.Net從第一個預覽版到現在已經過去15年了。數以百萬計的開發者使用它開發和運行優秀的web app,這麼多年來我們也不斷的升級和添加更多的功能。

ASP.NET Core has a number of architectural changes that result in a much leaner and modular framework. ASP.NET Core is no longer based on System.Web.dll. It is based on a set of granular and well factored NuGet packages. This allows you to optimize your app to include just the NuGet packages you need. The benefits of a smaller app surface area include tighter security, reduced servicing, improved performance, and decreased costs in a pay-for-what-you-use model.

Asp.Net Core從架構上有很多的改變,這些改變從而使它成為一個靈活性和模塊化的框架。Asp.Net Core 不再基於System.Web.dll。它是基於顆粒狀和分解的 NuGet 包。這使你可以優化你的應用程序僅僅包含所需的 NuGet 包。這種pay-for-what-you-use(按需使用)模式的好處包括加強安全、減少維護、提高性能和降低成本。

With ASP.NET Core you gain the following foundational improvements:

使用Asp.net Core你將獲得以下改進的功能:

  • A unified story for building web UI and web APIs

  • web UI和web Apis使用統一的庫

  • Integration of modern client-side frameworks and development workflows

  • 現代客戶端框架和開發工作流的集合

  • A cloud-ready environment-based configuration system

  • 一個適合雲計算環境的配置系統

  • Built-in dependency injection

  • 內置的依賴注入

  • New light-weight and modular HTTP request pipeline

  • 全新的輕量級和模塊化HTTP請求管道

  • Ability to host on IIS or self-host in your own process

  • 在自己的進程中運行IIS或者Self-host的能力

  • Built on .NET Core, which supports true side-by-side app versioning

  • 以.Net Core為基礎,支持真正的多應用版本管理

  • Ships entirely as NuGet packages

  • 完全使用NuGet包管理

  • New tooling that simplifies modern web development

  • 新的簡化的現代化web開發工具

  • Build and run cross-platform ASP.NET apps on Windows, Mac and Linux

  • 在Windows,Mac和Linux下構造和運行多平台的Asp.Net的應用

  • Open source and community focused

  • 開源社區共同管理

Build web UI and web APIs using ASP.NET Core MVC

在Asp.Net Core MVC中構建Web UI和Web APIs

  • You can create well-factored and testable web apps that follow the Model-View-Controller (MVC) pattern. See MVC and Testing.

  • 你能創建一個遵循MVC模式的可分解和可測試的Web應用。詳見 MVC 和 Testing。

  • You can build HTTP services that support multiple formats and have full support for content negotiation. See Formatting Response Data

  • 你可以構建支持多格式和完全支持內容協議的HTTP服務。詳見 Formatting Response Data。

  • Razor provides a productive language to create Views

  • Razor 提供了一種創建視圖的高效語言。

  • Tag Helpers enable server-side code to participate in creating and rendering HTML elements in Razor files

  • 在Razor文件中,標簽助手使服務器端代碼參與創建和渲染Html元素成為可能。

  • You can create HTTP services with full support for content negotiation using custom or built-in formatters (JSON, XML)

  • 你可以創建完全支持使用自定義或者內置格式化(Json,Xml)內容協商的Http服務。

  • Model Binding automatically maps data from HTTP requests to action method parameters

  • 自動的從Http請求中的action方法參數中映射數據進行模型綁定。

  • Model Validation automatically performs client and server side validation

  • 自動執行前端和服務端的模型驗證。

Client-side development

前端開發

ASP.NET Core is designed to integrate seamlessly with a variety of client-side frameworks, including AngularJS, KnockoutJSand Bootstrap. See Client-Side Development for more details.

Asp.Net Core的核心目的是為了和各式各樣的前端框架無縫連接,包括了AngularJS,KnockoutJS和Bootstrap。詳見Client-side Development。

寫在最後

接觸Asp.Net大概已經十年了,經歷了每個版本,這次Asp.Net Core的推出讓我非常興奮,感覺.Net工程師的春天來了,經歷那麼多知道.Net和Java之間雖然只是語言的差別,但在工作選擇上差別實在太大,現在好了,春天到了,相信不就將來.Net和Java將會平分秋色。

第一次翻譯,基本上加入的都是自己的理解,有些硬翻譯可能不對,希望大家能夠發郵件給我,後續會把這個翻譯系列做完。

原文鏈接:https://docs.microsoft.com/zh-cn/aspnet/core/

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved