473,322 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

What do Data Access Layer and Data Object Layer mean and related?

I'm confused about Data Access Layer and Data Object Layer. How are they
related? Which layer will be affected when the underlying database structure
is changed? Which layer will be affect when additonal information (more
columns and/or from more tables) from the database is needed?
Jun 26 '07 #1
3 3355

DAL means (to me) a layer that talks to a specific RDBMS (or any DataStore),
and returns certain type objects (not rdbms specific) to the business layer.

I think of a DAL returning:
DataSets (strong or weak, but usually strong)
IDataReaders
void (just run something, but return nothing)
int ( counts, number of rows affected, etc)
If you have a function like this

public IDataReader GetEmployees()
{

return something.ExecuteReader();
}

Then the code inside that method can be specific. ( it can return sql
server, oracle, access, excel, text file, etc).

THEN, when you're biz layer used the IDataReader, it can put the data into
objects.

.........

Because you return an IDataReader, today, it can be Sql Server, tomorrow,
Oracle.
See my full example at:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!140.entry
"Peter" <Pe***@discussions.microsoft.comwrote in message
news:DD**********************************@microsof t.com...
I'm confused about Data Access Layer and Data Object Layer. How are they
related? Which layer will be affected when the underlying database
structure
is changed? Which layer will be affect when additonal information (more
columns and/or from more tables) from the database is needed?

Jun 26 '07 #2

"Peter" <Pe***@discussions.microsoft.comwrote in message
news:DD**********************************@microsof t.com...
I'm confused about Data Access Layer and Data Object Layer. How are they
related? Which layer will be affected when the underlying database
structure
is changed? Which layer will be affect when additonal information (more
columns and/or from more tables) from the database is needed?
IMHO, they both means the same thing in Oops. One is more of a MS or .Net
terminology DAL, and the other one DOL is more of Java terminology.

In either case, if there is database change due to more tables added,
columns add or things removed etc, etc, then it's going to affect the
logical layer above it such as the Business Layer and possibly the UI layer.

If the underlying database changes from MS SQL Server to Oracle as an
example, then the DAL or DOL is going to be affected, along with the
Business Object Layer at a minimum.

And in either case, the terminology for both names mean using data as
objects.
Jun 26 '07 #3
AFAIK, both mean the same.

"Peter" wrote:
I'm confused about Data Access Layer and Data Object Layer. How are they
related? Which layer will be affected when the underlying database structure
is changed? Which layer will be affect when additonal information (more
columns and/or from more tables) from the database is needed?
Jun 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

52
by: Tony Marston | last post by:
Several months ago I started a thread with the title "What is/is not considered to be good OO programming" which started a long and interesting discussion. I have condensed the arguments into a...
6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
0
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
2
by: Jim in Arizona | last post by:
Being new, i experiment a lot and usually get results I'm not hoping for. My current problem is reading from a SQL 2000 table and populating an ASP dropdownlist with a column from the table. The...
6
by: ari | last post by:
hey all, i have a combo of dropdownlists and a textbox that allows a user to filter her dataset for a datagrid on a webform. the way i'm doing it now is i have an array that i pass from the ui,...
19
by: Charles Law | last post by:
Take a solution with a project hierarchy along the lines of an n-tier system, so that we have a data layer, business layer and presentation layer. The presentation layer is coupled to the business...
1
by: Anders S. Willumsen | last post by:
Hi, I'm implementing a 3-tier app (a shop) for the first time, and would like to have some of you guys comment on the design. Hope you can help me get rid of some confusion. I have a...
2
by: asad | last post by:
hello, how ru all pls tell me how can i create DAL and how can i use it in my ASP.NET pages thanks
17
Motoma
by: Motoma | last post by:
This article is cross posted from my personal blog. You can find the original article, in all its splendor, at http://motomastyle.com/creating-a-mysql-data-abstraction-layer-in-php/. Introduction:...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.