473,386 Members | 1,820 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.

Windows Application and Data Layer design

Hello,

If I have posted the question in the wrong group, I apologize.

I am building a windows application (in c#) that will be interacting
with an existing Access database. This database will eventually be
upgraded to SQL Server 2000. Current applications (C++Builder) that
interact with that database have the GUI and database access
tightly-coupled. This has led to many issues that are often discussed
in newsgroups.

I have read many threads that suggest creating a database or data
layer to separate database access from the GUI, and I agree with many
of the benefits this provides.

Questions or issues I have:
- Do I create a single class that contains methods for retrieving
data?
- Do I create a group of classes to retrieve data divided into
logical groups (i.e. User class, System class)

Regardless of the class structure
- Do the methods return collection of objects or do they return
datasets?

Thanks,

new2c#
Nov 15 '05 #1
2 2523
Hi,

I would take a look at this thread:
http://www.experts-exchange.com/Prog..._20848629.html

I suggest you create a data access layer. I would design to be able to
handle multiple datasources (Access, MS SQL ...). This way you can use this
data layer in other projects and will eliminate recoding.

Good Luck
"newbie" <ms******@yahoo.com> wrote in message
news:51************************@posting.google.com ...
Hello,

If I have posted the question in the wrong group, I apologize.

I am building a windows application (in c#) that will be interacting
with an existing Access database. This database will eventually be
upgraded to SQL Server 2000. Current applications (C++Builder) that
interact with that database have the GUI and database access
tightly-coupled. This has led to many issues that are often discussed
in newsgroups.

I have read many threads that suggest creating a database or data
layer to separate database access from the GUI, and I agree with many
of the benefits this provides.

Questions or issues I have:
- Do I create a single class that contains methods for retrieving
data?
- Do I create a group of classes to retrieve data divided into
logical groups (i.e. User class, System class)

Regardless of the class structure
- Do the methods return collection of objects or do they return
datasets?

Thanks,

new2c#

Nov 15 '05 #2
Hey Darin,

Thank you very much. Your response was extremely helpfully. Lots to
read and learn (and try).

newbie
"Darin" <d> wrote in message news:<e5**************@tk2msftngp13.phx.gbl>...
Hi,

I would take a look at this thread:
http://www.experts-exchange.com/Prog..._20848629.html

I suggest you create a data access layer. I would design to be able to
handle multiple datasources (Access, MS SQL ...). This way you can use this
data layer in other projects and will eliminate recoding.

Good Luck
"newbie" <ms******@yahoo.com> wrote in message
news:51************************@posting.google.com ...
Hello,

If I have posted the question in the wrong group, I apologize.

I am building a windows application (in c#) that will be interacting
with an existing Access database. This database will eventually be
upgraded to SQL Server 2000. Current applications (C++Builder) that
interact with that database have the GUI and database access
tightly-coupled. This has led to many issues that are often discussed
in newsgroups.

I have read many threads that suggest creating a database or data
layer to separate database access from the GUI, and I agree with many
of the benefits this provides.

Questions or issues I have:
- Do I create a single class that contains methods for retrieving
data?
- Do I create a group of classes to retrieve data divided into
logical groups (i.e. User class, System class)

Regardless of the class structure
- Do the methods return collection of objects or do they return
datasets?

Thanks,

new2c#

Nov 15 '05 #3

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

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
0
by: Andrew Dowding | last post by:
Hi Everybody, I have been looking at problems with my Windows Forms C# application and it's little Jet 4 (Access) database for the last few days. The Windows Forms app implements a facade and...
50
by: Jay Balapa | last post by:
Hello, Currently my application has three tiers- 1. Presentation Layer (Asp.Net / Win Forms/ Pocket PC UI.) This predominantly contains User Controls, Custom Controls and Win/Web Forms. I...
1
by: epigram | last post by:
I'm creating a data-centric asp.net application that will be using SQL Server 2000. I'm looking for some articles, design tips, etc. to help me decide how I should design my application. I...
2
by: msnews.microsoft.com | last post by:
Hello, I have the scenario. I m building an application either in asp.net or window application. This application is base on n-tier application model. Let us take example of Northwind Database in...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
2
by: mrpubnight | last post by:
Hello everyone I'm hoping someone with more experience can suggest how I would go about designing the following: We have a standard web application and in its current form there are no distinct...
4
by: nixon | last post by:
Hi there! Im trying to build a 3 tier application that uses a smartclient in the "view" layer. The communication between the smartclient and the server should be webservices because of potentiel...
3
by: vikash | last post by:
Hi, I want to develop a windows based application using .Net 2.0 The application will have the heavy UI and it will have the lots of drawing to do on the form. So can any one give me the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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.