473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DALC vs DAO

Leo
I'll make it brief: are DALC (Data Access Layer Components) and DAO
(Data Access Objects) the same thing? They appear to be from what I've
read on MSDN. I'm quite familiar with the DAO pattern from my J2EE
background and was trying to figure out if this is just Microsoft just
giving a new name to an old pattern or if it's something I should be
looking into instead of DAO.

Thanks,
Leo

Jul 21 '05 #1
3 8493
I do not know the exactly meaning when you are talking DAO in J2EE. It may
has the same or similar context there as DALC. But in MS world, DAO has
specific meaning and is not the same or similar as DALC. DAO is, like other
MS data access technology, such as ODBC, OLEDB, ADO, ADO.NET, used by
application developer t build their DALC on top it. Since you are asking the
question in a .NET NG, just remind you .NET does not use DAO, it uses
ADO.NET instead, it can communicate with DAO through Interop, though.

"Leo" <le******@fmr.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I'll make it brief: are DALC (Data Access Layer Components) and DAO
(Data Access Objects) the same thing? They appear to be from what I've
read on MSDN. I'm quite familiar with the DAO pattern from my J2EE
background and was trying to figure out if this is just Microsoft just
giving a new name to an old pattern or if it's something I should be
looking into instead of DAO.

Thanks,
Leo

Jul 21 '05 #2
Leo
Ah...I should clarify. When I mention DAO, it's not DAO as in the
alternative for ADO back in the day. DAO is a design pattern. I think
it is a GOF design pattern or at least a branch off of that. This
might be why MS refers to it as DALC (if that's the case), in order to
prevent confusion for MS developers.

Jul 21 '05 #3
"Leo" <le******@fmr.com> wrote:
Ah...I should clarify. When I mention DAO, it's not DAO as in the
alternative for ADO back in the day. DAO is a design pattern. I think
it is a GOF design pattern or at least a branch off of that. This
might be why MS refers to it as DALC (if that's the case), in order to
prevent confusion for MS developers.


The J2EE DAO (Data Access Object) pattern is, according to
Fowler's "Patterns of Enterprise Application Architecture",
equivalent to a "Table Data Gateway" or "Row Data Gateway"
(no, that is not a Microsoft term).

http://www.martinfowler.com/eaaCatal...taGateway.html
http://www.martinfowler.com/eaaCatal...taGateway.html

In Microsoft technology a "Table Data Gateway" would
encapsulate the logic, SQL and/or stored procedure access to
create, retrieve, update and delete result sets from the a
single table in the database and place them inside an
ADO.NET DataSet (possibly strongly typed). Note that the
DataSet may hold more than one table but each table would be
handled by a separate gateway.

Gateways tend to be used with applications that use Table
Modules.
http://www.martinfowler.com/eaaCatalog/tableModule.html

An ADO.NET DataSet can be used as a Table Module - but it
can in fact contain multiple DataTables.

More sophisticated applications would tend to use Domain
Objects
http://www.martinfowler.com/eaaCatalog/domainModel.html

which tend to be managed by Data Mappers
http://www.martinfowler.com/eaaCatalog/dataMapper.html

In a layered architecture the Active Record tends to be
avoided as it blurs the distinction between Data Access
Component and Business Component.
http://www.martinfowler.com/eaaCatal...iveRecord.html

So Data Access Logic Components could contain gateways, or
data mappers or both. If you were using SQL-Server,
references to System.Data.SqlClient should be limited to
this layer. Ideally the same should be true for System.Data
(ADO.NET) however most of the time this will not be the case
- mainly because of the data state tracking and integration
with some GUI components.

For some patterns in the .NET context see:

Enterprise Solution Patterns Using Microsoft .NET
http://msdn.microsoft.com/library/de...s/html/esp.asp
http://www.microsoft.com/downloads/d...displaylang=en
Data Access Logic Components usually refers to all
components the reside in the (architectural) 'Data Access
Layer':

- UI Components
- UI Process Components
- Business Service Interfaces
- Business Workflow | Components | Entities
- Data Access Logic Components | Service Agents
- Data Sources | Services

see
http://msdn.microsoft.com/library/de...ml/distapp.asp

Ideally only data transfer objects (for simple applications)
or domain objects (for sophisticated applications) would
travel to and from the business layer.

In reality ADO.NET DataSets (due to their integration with
GUI components such as the DataGrid) will often travel all
the way to the presentation layer ultimately exposing the
relational data model to every layer of the application.
Application Architecture for .NET: Designing Applications
and Services
http://msdn.microsoft.com/library/de...ml/distapp.asp
http://www.microsoft.com/downloads/d...displaylang=en
'Any fool can write code that a computer can understand.
Good programmers write code that humans can understand.'
Martin Fowler,
'Refactoring: improving the design of existing code', p.15
Jul 21 '05 #4

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

Similar topics

0
874
by: jacobryce | last post by:
I am trying to create dalc's for the following information: Each employee may be a member of one or more groups. Each group must have one or more members. The following tables have been...
1
1514
by: jacobryce | last post by:
I'm new to using .net and data access logic components and I'm getting a bit confused on the best way to design the data layer. I have a table called Document that has a 1 to many relationship with...
0
2205
by: David Veeneman | last post by:
What is the better way to connect a DALC component and a domain model; an interface, or an event? I'm creating an application that looks like this: --> --> --> o- Messages drill down...
0
1040
by: Marcel Cugini | last post by:
I am writing some 'Data Access Logic Components'. The designer generates procedure InitializeComponent(). Within this procedure an OleDbConnection object will be created and assigned to all...
0
1060
by: Jason | last post by:
I am in the beginning phases of architecting a multilayered ASP.NET Extranet application and am thinking it might make sense to implement the DALC layer as a singleton and expose them to the...
4
3311
by: Alex Stevens | last post by:
Well, It's 4:10 on Friday Afternoon and I am now in a state of turmoil....... I've just spoken with a trainer (who's opinion would be in far higher regard than mine), and he's just told me that...
3
857
by: Leo | last post by:
I'll make it brief: are DALC (Data Access Layer Components) and DAO (Data Access Objects) the same thing? They appear to be from what I've read on MSDN. I'm quite familiar with the DAO pattern...
3
1500
by: kanimozhiz | last post by:
Hi I have created the DAL component using stored procedures but I am unable to insert,update and delete the records in the Database. But retrieve is done as a whole and unable to retrieve a...
1
1454
by: kanimozhiz | last post by:
Hi Can anyone tell me how to invoke the DALC(Data Access Logic Component) class using stored procedures in C# .net I have created the DALC using stored procedure but I was unable to execute it....
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.