Using a datasource

T

TonyJ

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
 
A

Alberto Poblacion

TonyJ said:
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".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top