Geeks With Blogs

News Ashraful Alam Joy

Create Your Badge

Ashraful Alam is a Software Architect, who has 8 years of professional experience in Software Development industry. This Bangladeshi national is involved with project management and development of several US based software projects from his country. Already he has managed and developed several software projects, which are being used by several users of different countries, such as USA, Canada, Australia, and Bangladesh. While developing and managing a team, he contains and maintains a set of well defined engineering practices developed by him and other online developer communities.

Due to his willingness to give effort to improve and share better software development practices, Ashraf has been awarded as “Most Valuable Professional” (MVP) in ASP.NET category by Microsoft since year 2007 multiple times, which is a rare honor and prestigious reorganization among the developers around the world.

Check his portfolio to know more about him and his works.


.NETTER Characters... Every part of your life is best, if you can know yourself and thus create your life like an artist!

BLL classes can be defined with respect to physical or logical business entities, DAL classes, as vice versa. This mapping process can include one to one, one to many or many to many technique.

For example, we have two business entities (physical or logical), named “Order Summery” and “Order Items” for an e-commerce application. Having a one-to-many mapping relation with BLL and DAL in class level can contain one separate BLL class, as “OrderBLL”, and two separate two separate DAL classes, as “OrderSummeryDAL” and “OrderItemsDAL”. The “CreateOrder” method of the “OrderBLL” class can call the “CreateOrderSummery” and “CreateOrderItem” method of “OrderSummeryDAL” and “OrderItemsDAL” respectively to complete the entire database create operation for a whole order, as shown in the figure below.

clip_image002

Figure The class level one-to-many mapping process between DAL and BLL

Even having a one-to-one relation with BLL and DAL classes can include a one-to-many relation in method level. For example we have one BLL class “OrderBLL” and one DAL class “OrderDAL”. Having a one-to-many relation in method level, will include a “Create” method in OrderBLL which basically calls the “CreateOrderSummery” and “CreateOrderItem” methods, as shown in the figure below.

clip_image004

Figure The method level one-to-many mapping process between DAL and BLL

The appropriate design issues needs to be defined at this point.

Technorati Tags: ,,
Posted on Sunday, April 20, 2008 1:27 PM | Back to top


Comments on this post: Design Factors 10: What are the mapping criteria for BLL classes and CRUD methods?

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Ashraf Alam | Powered by: GeeksWithBlogs.net