![]() |
|
|
#1 |
|
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 |
|
|
|
#2 |
|
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". |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
| New To Site? | Need Help? |