473,382 Members | 1,380 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,382 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 1749
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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:
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: 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...
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: 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...

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.