Presentation Layer
The whole web site is the presentation layer and therefore should only have code related to presentation logic. That is one of my goals in designing this framework. This web site was built using ASP.NET. It consists of:
When working in the web site I try to make sure that all of my code is presentation logic, providing a mapping between business object properties and methods to visual controls for intuitive user interaction.
Business Layer
All business logic for the core framework modules is handled by mojoPortal.Business.dll or other business layer dlls for various features
When developing in the business layer I try to think of the most natural way to represent or abstract business entities as objects in a way that can be easily consumed by the UI.
Data Access Layer
All data access logic for mojoPortal.Business.dll is handled by mojoPortal.Data.dll. There are different versions of mojoPortal.Data.dll for each of the supported databases, MS SQL, MySQL, PostgreSQL, Firebird Sql, and SQLite. You can put any version in the bin folder of the web along with mojoPortal.Business.dll, and the site is happy as long as a valid database exists for the provided connection strings.
When developing in the data layer I try to think like the database and optimise operations according to its capabilities.
The whole web site is the presentation layer and therefore should only have code related to presentation logic. That is one of my goals in designing this framework. This web site was built using ASP.NET. It consists of:
- .aspx pages
- .ascx user controls
- a Global.asax file
- a Web.config file
- a Culture.config file
- mojoPortal.Web.dll, which contains all the presentation logic for the core framework
When working in the web site I try to make sure that all of my code is presentation logic, providing a mapping between business object properties and methods to visual controls for intuitive user interaction.
Business Layer
All business logic for the core framework modules is handled by mojoPortal.Business.dll or other business layer dlls for various features
When developing in the business layer I try to think of the most natural way to represent or abstract business entities as objects in a way that can be easily consumed by the UI.
Data Access Layer
All data access logic for mojoPortal.Business.dll is handled by mojoPortal.Data.dll. There are different versions of mojoPortal.Data.dll for each of the supported databases, MS SQL, MySQL, PostgreSQL, Firebird Sql, and SQLite. You can put any version in the bin folder of the web along with mojoPortal.Business.dll, and the site is happy as long as a valid database exists for the provided connection strings.
When developing in the data layer I try to think like the database and optimise operations according to its capabilities.
No comments:
Post a Comment