473,406 Members | 2,745 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,406 software developers and data experts.

Bouncing Tiers

Can anyone tell me if I'm insane or not?

I have a problem where I have a data tier where every class represents a
table, and a class can have properties which are object of another class.
For instance:
Data.Car.Driver ' A Driver class
Data.Car.Passengers ' A Passenger collection class

The problem is, if I then have a business layer that inherits from the data
layer, and I then use the business layer in my UI, the object namespaces can
get out of whack, for instance:
Business.Car.Driver ' Driver comes back as Data.Car.Drvier, because the
implementation code says to return a data driver class.

Now, there's not much I can do about that. So I came up with this idea:
The UI uses the Data objects, which inherits from the Business objects (the
opposite of before). So now in my Data code when I want a property that
isn't an object, say Data.Car.VIN the code looks something like this:
Public Property VIN() As String
Get
' Database implementation code
' Gets the data from the database
' Hands it to the Base (Business) which does its magic
Return(MyBase.VIN)
End Get
Set (ByVal Value As String)
MyBase.VIN = Value
' Database implementation code
End Set
End Property

So basically the DAL gets the data first then hands it off to the Business
which does what it needs to do, then that data goes back to the DAL and
either inserts/updates or outputs. Hence why I call it "Bouncing Tiers".

Now does anyone have a problem with this? I'm very interested in hearing
anyone's opinion.

Horribly Frustrated
Nov 19 '05 #1
1 1141
Hi Freaky

You said
|| Business.Car.Driver ' Driver comes back as Data.Car.Drvier,
because the
|| implementation code says to return a data driver class.

I don't understand the problem yet, can you show us some code?
Maybe we can then dry those tiers of frustration.

Regards,
Fergus

ps. If you can still ask the question, you're probably not insane. But you
are a little freaky, lol.
Nov 19 '05 #2

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

Similar topics

0
by: Benny Alexander | last post by:
Hi, I have a small form to Email script, to test my server, With CDONTS. The Mails is bouncing to bad mail folder, and I do not know the reason why. anyone can help. <%@language = VBScript%>...
2
by: steve | last post by:
I'm trying to create a PHP script to send mail to a list of addresses. I'm sending mail okay, because the messages arrive in an account that I can check, but messages to a known bad address aren't...
2
by: TS | last post by:
If I have custom data entity objects that are simple classes with properties storing data for a particular entity, then I want to pass this object to another server, how does the other server know...
1
by: ken | last post by:
Dear all does any recommend books for develop middle tiers for .ne recently, i develop asp.net only aspx/dll, database , two tier and vb.net only frm/dll, database, two tiers
1
by: Rupert | last post by:
I am developing a system in ASP.NET and am new to the technology. I am running everything on the laptop I am developing on (windows xp). The DB is Oracle and my aspx pages and C# code behind...
12
by: Kristoffer Arfvidson | last post by:
Hello, does anybody have a bouncing prograssbar control? Like in xp, you have a normal progressbar but instead of going from left to right and fill out the whole progressbar and then stop. I...
5
by: Ronald S. Cook | last post by:
We have a Windows app which contains UI code and all classes that perform business logic and make calls to database stored procs (located on a database server - i.e. not local to the app). My...
8
by: Henrik Dahl | last post by:
Hello! In some situations I have a collection of objects which it in different situations could be relevant to deal with at the UI-tier and sometimes at other tiers. Typically my concept is a...
5
by: runtime | last post by:
Hello! First time posting... Question about the difference between layers and tiers: How many tiers are in the WAMP environment? This is not an exam question, but the answer will help me...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
0
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
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,...

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.