| Castle is an open source project under .NET framework. Offering a set of tools from data accessing framework to IOC container for web application, Castle helps you get more done with less code.As part of the Castle Project, MonoRail is a web designing framework developed by C# and using the idea of Ruby on Rails. It's based on the front controller mode, which made it more fit for complicated page logic. Starting from traditional MVC developing mode results in clearly differentiating responsibilities of program developers in business logics, data and view. All of these provides a brief developing mode for program developer.Castle ActiveRecord is a data accessing framework, it's also one subsystem of Castle.It is built on top of NHibernate, but it use attribute instead of mapping files. Easy o/r mapping result in database development simply and promptly. At the same time, HQL queries, lazy load, validation and other properties increased the flexibility of realizing data object.In this thesis first I discuss several Web program-developing technologies in the framework of Monorail, then accompany with real project to illustrate. Wanfang business information platform is a comprehensive system consisting of the company's information, industrypark information, business report, company's award information etc. CIUS system is one of subsystem under business information platform. Its goal lies in resolution of data sources and updates of parent system, and it also satisfies the needs of the parent system from aspects including: efficiency, security, expansibility. Not only is the platform capable of possessing sufficient data sources and timely data updates, but also can prevent users from modifying database without authorization.The main functions of CIUS system include company information module, industrypark module, user management module and so on. The system can achieve authentication, data search, data statistics, user management, data operation and other functions. CIUS system adopts four layer architecture, User Interface layer, Business Layer, Data Persistence Layer and Database Layer. The system used Castle MonoRail framework in program development and Castle ActiveRecord in Data Persistence Layer to accomplish data persistence and O/R mapping. |