A
aiax
Rafey,
Our current structure has a single DAL assembly, but we correspond each
class in the assembly with a table or view in the database. For instance, a
database for an e-store might contain the following tables: Customers,
Orders, Inventory. We would have a class Customers, class Orders and class
Inventory. Each class handles updating, inserting, loading (populating
properties), retrieving (returning sqldatareader) with code that also joins
transactions using Microsoft Application Blocks for .NET. So our DAL is
directly related to the structure of the database. We use the business
logic layer (BLL) to tie everything together, and our BLL corresponds to the
presentation layer, not the DAL. So in the presentation layer, we may have
a page and class called ShoppingCart.aspx/ShoppingCart.aspx.vb. In BLL, we
would also have a class ShoppingCart.vb. The presentation layer would call
ShoppingCart.vb in BLL to do everything it needs to have processed, and
ShoppingCart.vb will instantiate DAL.Customers, DAL.Orders and DAL.Inventory
to put everything together and give it back as a single structure of
information to the presentation layer, relieving the amount of actual
business logic code that must exist in the presentation layer. This leave
presentation layer to concentrate on the actual "presentation" of the data
and interaction with the user. BLL is the go between for user to database,
putting everything together, and also BLL is where the majority of the code
is being stored. DAL simply interacts with the database.
I hope our scenario for construction helps you understand a bit better,
Aiax
Our current structure has a single DAL assembly, but we correspond each
class in the assembly with a table or view in the database. For instance, a
database for an e-store might contain the following tables: Customers,
Orders, Inventory. We would have a class Customers, class Orders and class
Inventory. Each class handles updating, inserting, loading (populating
properties), retrieving (returning sqldatareader) with code that also joins
transactions using Microsoft Application Blocks for .NET. So our DAL is
directly related to the structure of the database. We use the business
logic layer (BLL) to tie everything together, and our BLL corresponds to the
presentation layer, not the DAL. So in the presentation layer, we may have
a page and class called ShoppingCart.aspx/ShoppingCart.aspx.vb. In BLL, we
would also have a class ShoppingCart.vb. The presentation layer would call
ShoppingCart.vb in BLL to do everything it needs to have processed, and
ShoppingCart.vb will instantiate DAL.Customers, DAL.Orders and DAL.Inventory
to put everything together and give it back as a single structure of
information to the presentation layer, relieving the amount of actual
business logic code that must exist in the presentation layer. This leave
presentation layer to concentrate on the actual "presentation" of the data
and interaction with the user. BLL is the go between for user to database,
putting everything together, and also BLL is where the majority of the code
is being stored. DAL simply interacts with the database.
I hope our scenario for construction helps you understand a bit better,
Aiax