PC Review


Reply
Thread Tools Rate Thread

Another DALC design question

 
 
=?Utf-8?B?amFjb2JyeWNl?=
Guest
Posts: n/a
 
      1st Aug 2004
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 the viewAllReferences() and insertReference() operations into the Document DALC, or should I create a Reference DALC to host these?
 
Reply With Quote
 
 
 
 
William Gower
Guest
Posts: n/a
 
      2nd Aug 2004
Since a reference doesn't make sense without a document and since a
reference can't exist without a document you can have the document dalc
perform the access functions on the reference. Or, you could create a
DocumentBusObj that creates a Document DA Object and creates a Reference DA
Object and performs the appropriate data access. My preference would be to
have the Document data access perform the reference data access as long as
in the future there is no likelihood of the need to ever access a reference
without a document. I assume that you will have a Document business entity
and it will have a collection or dataset of References.


"jacobryce" <(E-Mail Removed)> wrote in message
news:3C07575F-7639-4A6C-8137-(E-Mail Removed)...
> 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 the viewAllReferences() and insertReference() operations into the
Document DALC, or should I create a Reference DALC to host these?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DALC Architecture David Veeneman Microsoft C# .NET 0 6th Oct 2005 04:22 PM
DALC vs DAO Leo Microsoft Dot NET 3 20th Jan 2005 06:36 PM
Does it make sense to implement the DALC layer as a Singleton? Jason Microsoft ASP .NET 0 12th Oct 2004 03:01 PM
Common connection for DALC's Marcel Cugini Microsoft ASP .NET 0 18th Nov 2003 03:55 PM
Re: Basic table design - design question John Vinson Microsoft Access Getting Started 1 26th Jun 2003 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 AM.