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

n tier design help

I'm designing some .net extensions for an existing system. The existing
system system has user configurable fields, basically most of the relevant
the data is saved in a table with text fields f1 to f40. These fields are
rendered with different names and as different types on the client by
refernceing meta data for each field from other tables.

Now if i am to make this data available via asp.net forms or a webservice or
remoting i cannot decide how to split the tiers. The business logic funtions
should be called using the field names as the user sees them not the actual
db field names (easier for 3rd parties to then use),

eg GetRecord("where name = fred") where as the actual db query would be

GetRecord("where f1 = fred")

Now should the conversion to actual db queries be done in the data access
layer or should this be done in the business logic layer first then passed
on to the data access layer?

I'm thinking of using datasets then changing column names to represent the
friendly names rather than actual db cols, good idea?

cheers

jb
Nov 18 '05 #1
1 1008
"J_ B" <a@b.com> wrote in news:#o**************@TK2MSFTNGP14.phx.gbl:
Now should the conversion to actual db queries be done in the data
access layer or should this be done in the business logic layer first
then passed on to the data access layer?
I think the conversion should be done on the data access layer. Your
business log layer should still use the user column names - it'll be easier
when you do your business rules.

I'm thinking of using datasets then changing column names to represent
the friendly names rather than actual db cols, good idea?


You might want to avoid datasets... especially if you're returning a lot of
rows. Datasets will gobble all available memory on your system.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2

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

Similar topics

77
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a...
25
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...
51
by: nospam | last post by:
THIS IS the DOTNETJUNKIES MESSAGE ------------------------- We're Sorry As many of you know we have recently launched SqlJunkies.com. We have overhauled our runtime and will be using it on...
1
by: Anders S. Willumsen | last post by:
Hi, I'm implementing a 3-tier app (a shop) for the first time, and would like to have some of you guys comment on the design. Hope you can help me get rid of some confusion. I have a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.