本系列文章將示範如果利用Spring.Net+NHibernate+Asp.Net mvc+ExtJs構建多層應用程式.架構具有松耦合性,介面編程,並且有很強的可擴充性.比較適合企業系統開發相關的產品開發. 充分利用Spring.Net的IOC,AOP等特性,並且作為整個架構的容器,NHibernate使整個架構更物件導向,並且支援多資料庫.Asp.net Mvc一改以往Webform的方式,使介面和後台代碼完全分開.Extjs則建立出更美觀,使用者體驗更好的介面,能夠很方便的完成asp.net webform很難完成的功能和介面.
解決方案:
在開始之前,先介紹下開發環境:
1. VS.NET 2008 + SQL Server 2005
2. Spket IDE extjs編輯工具 http://www.spket.com/ 安裝及配置請看http://www.blogjava.net/H-bomb/archive/2008/02/02/179051.html
3.Spring .NET 1.2.0 M1 下載http://springframework.net/download.html
4.Nhibernate 2.0.0 GA 下載http://sourceforge.net/project/showfiles.php?group_id=73818&package_id=73969
5. Asp.Net mvc Preview 下載http://codeplex.com/aspnet
6. ExtjJs 下載http://extjs.com/products/extjs/download.php
為了挑起大家的興趣,先展示幾個介面.
相關資源: 最近發現國外也已經有人在討論或者是使用類似的架構.
ASP.NET MVC with NHibernate sharp-architecture http://code.google.com/p/sharp-architecture/
MS MVC, Spring.NET, NHibernate, jQuery and Ajax http://blogger.forgottenskies.com/?p=81
系列索引
Spring.Net+NHibenate+Asp.Net mvc +ExtJs 系列 1----準備
Spring.Net+NHibenate+Asp.Net mvc +ExtJs 系列 2----整體架構
Spring.Net+NHibenate+Asp.Net mvc +ExtJs 系列 3 ----資料訪問層
Spring.Net+NHibenate+Asp.Net mvc +ExtJs 系列 4 ----商務邏輯層
Spring.Net+NHibenate+Asp.Net mvc +ExtJs 系列 5 ----asp.net MVC+Extjs
Spring.Net+NHibenate+Asp.Net mvc +ExtJs 系列 6 ----asp.net MVC+Extjs
作者:孤獨俠客(似水流年)
出處:http://lonely7345.cnblogs.com
本文著作權歸作者和部落格園共有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文串連,否則保留追究法律責任的權利。