TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > C#(C Sharp)

Notices

Reply
 
Thread Tools Display Modes
Old 19-10-2007, 05:31 PM   #1
TonyJ
Guest
 
Posts: n/a
Using a datasource

Hello!

I'm looking at VS2005 which is a bit different to VS2003.
If I for example click on the meny line Data and there choose Show Data
Source or
Add New Data Source these does not exist in VS2003.

Now to my question if I click on Add New Data Source there are three
alternatives here
Database, Web Service and Object.

I just can't understand the choice Object when Add New Data Source is
selected.

For me a datasource is always a database!

//Tony


  Reply With Quote
Old 19-10-2007, 06:29 PM   #2
Alberto Poblacion
Guest
 
Posts: n/a
Re: Using a datasource

"TonyJ" <johansson.andersson@telia.com> wrote in message
news:uB54r5jEIHA.3636@TK2MSFTNGP03.phx.gbl...
> I just can't understand the choice Object when Add New Data Source is
> selected.
>
> For me a datasource is always a database!


This is most useful when you are doing n-tier programming. You write a
set of classes that encapsulate your "business rules". These classes access
the database, perform whatever manipulations you need on the data, and are
able to deliver the data back to the next layer of code (typically the "user
interface"). If you wish to use a datasource to perform databinding in this
"user interface" layer, you instruct the DataSource to get its data from the
set of objects that you previously wrote for the next tier. That's why you
have this choice in "Add New Data Source".

  Reply With Quote
Reply

Thread Tools
Display Modes




New To Site? Need Help?

All times are GMT +5.5. The time now is 02:58 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional