locked
What is DAL, BLL RRS feed

  • Question

  • User1672366045 posted

    How we use DAL and BLL in asp.net , for which prupose  they used 

    Saturday, September 20, 2008 7:13 AM

Answers

  • User169219854 posted

    hi,

    Both are parts of Layered architecture. We generally use architecture for developing application.

    DAL (Data Access Layer) :

    Basically we include services which communicate to database directly. xsd files mainly. This layer is responsible for all database interaction. No outside method is allowed to communicate with database.

     

    BLL (Business Logic Layer) :

    Here we include all business logic serving services. This is nothing but seperation of business logic into classes which can be reused in entire application.

     

    for more info:

    http://bytes.com/forum/thread501612.html

     http://www.tek-tips.com/viewthread.cfm?qid=1489074&page=10

     

    I hope this is sufficient for you (brief introduction), If it does please mark it as answer.

    Thank you

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, September 20, 2008 12:32 PM
  • User1806792307 posted

    Microsoft has introduced a technology to ASP.NET 3.5 SP1 called Dynamic Data that makes BLL much easier with web development. If you want to apply the concepts of BLL, definitely evaluate Dynamic Data.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, September 20, 2008 2:40 PM
  • User-132834496 posted

    If you want in simple words, DAL is a layer which communicates directly with the databases. The connection strings are used here and the statements to communicate with the database are written here. In BLL you write the logic about what to do to the data and to communicate with the DAL layer. This layer separation is done because if you have to make a change in one layer, you can do so easily without even touching the other layers. Also this helps in reusability also.

    In short Presentation Layer communicates with BLL which in turn communicates with DAL. This DAL communicates with database.

    Presentation Layer-->BLL-->DAL-->Database

    If you want an easy and good explanation, pls follow this link:

    http://www.buzzycode.com/ShowArticles-id_3-stat_1.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, September 20, 2008 11:44 PM

All replies