473,385 Members | 1,888 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,385 software developers and data experts.

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 8480
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.