473,657 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DALC Architecture

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:

[UI] --> [App Manager] --> [Domain Model] --> o-[DALC]

Messages drill down (calls) and bubble up (events); each object knows about
the object to its right. The domain model is responsible for loading and
saving itself, which it delegates to a DALC. The domain model's load and
save methods are programmed to an interface (IWhatever) that the DALC
implements.

Would it be a better approach to have the domain model fire an event that
data needs to be saved? That way, the domain model need know nothing about
the DALC. The DALC subscribes to the event and reads what needs to be saved
from the domain model's properties. That way, we can change the DALC all we
want without breaking the domain model.

Does the benefit of uncoupling the domain model from the DALC outweigh the
cost of the event mechanism?

Thanks in advance for your advice.

David Veeneman
Foresight Systems
Nov 17 '05 #1
0 2229

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

Similar topics

25
5599
by: David Noble | last post by:
We've been developing a web site using 3-tier architecture for 18 months now. There is a common layer that defines the classes - using XML schemas. The data layer acts as a wrapper to 3 databases - SQL Server, Oracle and AS400. The business layer exposes web services which communicate with the front end, ASP.Net. All 3 tiers are on different boxes. This works well. Now I am leading a team to build a winforms app. I need some advice as
1
1532
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 the Reference table. A reference is unimportant outside the context of its document. When displaying the document, I need to display all of its references and when updating the document, I need to update its references. Is it appropriate to place...
3
8541
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 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
0
1045
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 commands. My problem now, how can I use a global allocated connection object, because I need transaction support over more than one DALC ? Code generated by the designer should not be changed manually, because it could be thrown away during a new...
0
1071
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 Business Objects layer via Remoting. Are there pros or cons to this approach?
6
3658
by: carsonbj | last post by:
I have an issue where the below operation works on a little-endian architecture but not on a big-endian architecture. I was under the impression that pointer arithmetic is architecture independant and bitwise operations are architecture dependant. The intention is to store two bytes, as chars, extracted from a short input parameter as: <code> void foo(short id_pair) { char *ptr = &id_pair;
13
7159
by: rrs.matrix | last post by:
hi i have to detect the type of CPU. whether it is 32-bit or 64-bit.. how can this be done.. can anyone please help me.. thanks.
0
4919
by: srikar | last post by:
Hi all, I am having a problem, when I am compiling the code in 32 bit option on a 64 bit machine using the macro CPPFLAGS= -m32 I am getting the following warnings from the linker . /`../bin/amd64_stat_gnu_02015/WriteFault.o' is incompatible with i386:x86-64 output /usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_02015/WriteLogic.o' is incompatible with i386:x86-64 output /usr/bin/ld: warning: i386...
1
1465
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. Can anyone plz help me how to do this. Reply me as soon as possible its very urgent. Regards, kani.Z
0
8413
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7352
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
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 we have to send another system
2
1970
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.