Introduce twMVC
list text here ASP.NET MVC 可以吃嗎?
ASP.NET MVC 的成功案例
什麼是 MVC
MVC 概觀
ASP.NET MVC 對物件導向的潛移默化
View 簡介
View Engine
HTML Helper
Partial View
Razer Helper 小技巧
ASP.NET MVC 的 Model 並不等同於 Entity Framework,這一次將說明如何使用 ADO.NET 來做為 MVC 的 Model,並且介紹 Enterprise Library Data Access Application Block以及實作分層讓 Model 讓 Web Forms 專案可以共用。
內容大綱為:
Architecture Overview
Design Principles and Patterns
Design of the System
Final Thoughts
Examples of Discussion
http://mvc.tw
ASP.NET MVC 的 Model 並不等同於 Entity Framework,這一次將說明如何使用 ADO.NET 來做為 MVC 的 Model,並且介紹 Enterprise Library Data Access Application Block以及實作分層讓 Model 讓 Web Forms 專案可以共用。
內容大綱為:
Architecture Overview
Design Principles and Patterns
Design of the System
Final Thoughts
Examples of Discussion
http://mvc.tw
ASP.NET Core MVC 2.2從開發到測試 - Development & Unit Testing江華 奚
說明從ASP.NET MVC 5遷移至ASP.NET Core 2.x會遭遇哪技術上的變更,要如何將既有專案項目移轉到新的ASP.NET Core環境,並做出哪些調整。同時運用ASP.NET Core內建的Dependency Injection相依性注入來註冊你的服務,以達成IoC控制反轉的目的。最後用ASP.NET Core內建的單元測試,包括MStest, NUnit, xUnit來測試專案Function,達到提升品質的目的。在測試的同時,一併介紹如何使用Test Explorer, Live Testing, Code Coverage工具來輔助測試。
碼魔法網站:https://www.codemagic.com.tw/
碼魔法FB : https://www.facebook.com/CodeMagicTw/
ASP.NET Core MVC 2.2 - Development & Unit Testing. How to Choose between NET Core and .NET Framework. Choose between ASP.NET Core 2.1 and ASP.NET Core 2.2.
TDD 貌似不難,但在實務上能推行與貫徹的團隊卻是少之又少,甚至被視為是一種不切實際的開發方式。在這次分享中,將搭配 demo 來介紹幾個貫徹 TDD 所需要的重要概念,
包含:
IoC
Unit testing
Web UI testing
BDD
期望讓大家在未來的工作上,也可以透過 TDD 快樂地開發。
by twMVC http://mvc.tw
講者:Bruce 陳傳興 http://blog.kkbruce.net/(現任MVP、ASP.NET MVC4網站開發美學作者)
簡介:ASP.NET Web API 是一個架構,讓開發者輕易建置 HTTP Service 並擴及廣大的用戶端範圍,包括瀏覽器和行動裝置。使用 ASP.NET Web API 的開發者不必再辛苦刻 Web Servvice ,苦命調 WCF 組態檔,讓開發者輕鬆且快速提供給多用戶存取的 HTTP Service。
本課程將介紹建置 HTTP Service 最佳代言人 ASP.NET Web API 及其開發方式,讓開發者快速入門輕鬆上手。
http://mvc.tw
25. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
ASP.NET MVC 4 RC 新增功能介紹
25
26. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
ASP.NET MVC 4 RC 新增功能介紹
26
27. 同 WCF Data Service ,且支援RESTful介面,但是它更簡化,更簡
單,易於實作。
只支援HTTP協定,透過 GET/POST 方式提供遠端使用XML或JSON資料格
式進行呼叫與使用。
更容易讓多種裝置使用:如平板、智慧型裝置、桌上型電腦、其他平台
服務、瀏覽器…
支援非同步執行特性,有更加之延展性
支援 ASP.NET MVC 的 Routing 功能
強行別的HttpRequestMessage與HttpResponseMessage,因此模型繫
結與驗證更加容易。
認識 ASP.NET Web API
27
28. Web API vs. WCF Service vs. WCF Data
Service
28
44. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
Enhancements to Default Project
Templates
44
46. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
46
47. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
47
51. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Azure SDK
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
51
52. 讓掌上型智慧裝置使用者也可以選擇使用PC版本檢視網頁
目前Yahoo、MSN 等大型入口網站皆提供此功能。
透過 User Agent 判斷,因此可以做到特定平台使用特定的
View
通常與 Display Modes 一起使用。
jQuery Mobile, the View Switcher, and
Browser Overriding
52
55. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
55
56. 新增可支援非同步作業傳回值的 Task 類別
在需要非同步執行的方法中使用 async 關鍵字
在實際需要等待傳回值的方法前使用 await 關鍵字來等待結果回傳。
新版非同步程式撰寫支援
public async Task<ActionResult> MyCustomers()
{
var myApi = new HttpClient();
myApi.BaseAddress = new Uri("http://localhost:1168");
Task<HttpResponseMessage> response = myApi.GetAsync("api/MyCusAPI/");
IEnumerable<Customers> result = await
response.Result.Content.ReadAsAsync<IEnumerable<Customers>>();
return View(result);
}
56
57. 新增可支援非同步作業傳回值的 Task 類別
在需要非同步執行的方法中使用 async 關鍵字
在實際需要等待傳回值的方法前使用 await 關鍵字來等待結果回傳。
新版非同步程式撰寫支援
public async Task<ActionResult> MyCustomers()
{
var myApi = new HttpClient();
myApi.BaseAddress = new Uri("http://localhost:1168");
Task<HttpResponseMessage> response = myApi.GetAsync("api/MyCusAPI/");
IEnumerable<Customers> result = await
response.Result.Content.ReadAsAsync<IEnumerable<Customers>>();
return View(result);
}
57
58. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
58
74. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
74
75. ASP.NET Web API
Enhancements to Default Project Templates
Mobile Project Template
Display Modes
jQuery Mobile, the View Switcher, and Browser Overriding
Task Support for Asynchronous Controllers
Database Migrations
Empty Project Template
Add Controller to any project folder
Bundling and Minification
75