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

Architecture Question Business Layer

Hi!
I am new to .NET (coming from Java). We have to implement a desktop
application which extracts data from a database, does some analysis,
filtering etc. and displays the results.
I have noticed that in .NET applications Windows widgets like the
DataGrid are often directly bound to a DataSet Object. For me this
means essentially a 2 tier architecture instead of a 3 tier
architecture. I am used to seperating the application into 3 tiers:
Presentation, Business, Persistance. The real world objects are
representated by simple data classes (like customer, order etc.) which
are passed thru these tiers.

Are there any whitepapers out there how to implement a 3 tier
architecture under .NET?
How would be the mapping of DataSet to data objects be done? Are there
frameworks out there which can automate this task?
Can widgets like the DataGrid be bound to say an array of Order
objects?

Oct 27 '05 #1
2 1750
Hi Hans,

This is not really an answer to your question but it may help.

We have just implemented a multi tier application that retrieves data from
an sql server. Our application is a windows forms app that downloads data
through a communications layer ( dll on the client) through a "xml web
service" (situated on a web server) through a business layer (another dll)
then onto a data layer (yet another dll) which finally talks to the
database.
We find this kind of architecture very flexible that allows us to seperate
the presentation from the business from the data. It works for us anyway.
You didn't say if you were working over the internet or just standalone, if
its the internet then my reccomendation would be to look at web services,
ther are plenty of articles ( http://www.codeproject.com/cs/webservices/ )
is always pretty good for a starter. If you are developing a standalone then
you can still use the same approach just without the web service (as we have
also done) quite simple the communications layer talks directly to a
business layer on the server and so on....

Hope this was of some help?

"hans" <ha*******@danet.de> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Hi!
I am new to .NET (coming from Java). We have to implement a desktop
application which extracts data from a database, does some analysis,
filtering etc. and displays the results.
I have noticed that in .NET applications Windows widgets like the
DataGrid are often directly bound to a DataSet Object. For me this
means essentially a 2 tier architecture instead of a 3 tier
architecture. I am used to seperating the application into 3 tiers:
Presentation, Business, Persistance. The real world objects are
representated by simple data classes (like customer, order etc.) which
are passed thru these tiers.

Are there any whitepapers out there how to implement a 3 tier
architecture under .NET?
How would be the mapping of DataSet to data objects be done? Are there
frameworks out there which can automate this task?
Can widgets like the DataGrid be bound to say an array of Order
objects?

Oct 27 '05 #2
Hans,

You can bind collections of objects to a DataGrid (and any other databound
controls). I do this by creating a new class for each of my business objects
with the suffix "Collection" or "s". For example, if you have a User class,
I would create another class called either "UserCollection" or "Users". This
new class must inherit System.Collections.CollectionBase

The collection object can then be bound to the DataGrid.

Here's an article... http://www.csharphelp.com/archives/archive89.html

Hope this helps!

-Paul

"hans" wrote:
Hi!
I am new to .NET (coming from Java). We have to implement a desktop
application which extracts data from a database, does some analysis,
filtering etc. and displays the results.
I have noticed that in .NET applications Windows widgets like the
DataGrid are often directly bound to a DataSet Object. For me this
means essentially a 2 tier architecture instead of a 3 tier
architecture. I am used to seperating the application into 3 tiers:
Presentation, Business, Persistance. The real world objects are
representated by simple data classes (like customer, order etc.) which
are passed thru these tiers.

Are there any whitepapers out there how to implement a 3 tier
architecture under .NET?
How would be the mapping of DataSet to data objects be done? Are there
frameworks out there which can automate this task?
Can widgets like the DataGrid be bound to say an array of Order
objects?

Oct 27 '05 #3

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

Similar topics

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...
6
by: Michael Rodriguez | last post by:
If you're using a standard 3-tiered architecture, i.e. Data Layer-> Business Layer->Presentation Layer, where is the recommended place to put data validations? Specifically, data validations such...
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
6
by: V. Jenks | last post by:
I apologize if this is the wrong forum for this, I could not locate one that was exactly appropriate for this topic. Over the last couple of years I've been doing a lot of reading on design...
2
by: Silent Ocean | last post by:
Hi 1. I am in process of designing N-Tier Application using ASP.NET. Can anyone guide me the right material or microsoft guidelines document which I can used in designing the N-Tier application....
2
by: hans | last post by:
Hi! I am new to .NET (coming from Java). We have to implement a desktop application which extracts data from a database, does some analysis, filtering etc. and displays the results. I have...
3
by: CSharpguy | last post by:
I have a 03 .NET web that does not use Typed DataSets, it uses a Busines Layer/DataLayer classes. Alot of my reading on .NET 05 is using the DataSets for the datalayer/business layer. I have a 05...
6
by: NewsGuy | last post by:
Hello I'm concidering better ways to architecture our VB.Net Webservices project. Below is a draft of what I thought would be a decent way to go about it, I was wondering about other peoples...
5
by: ludwig_stuyck | last post by:
I'm in the process of designing a Service Oriented Architecture. At the moment I based the design on the Web Service Software factory guidelines - so a services layer, business layer and resource...
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: 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
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
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.