Re: I really hate .NET especially inside Delphi
- From: Robert Giesecke <Spam@xxxxxxxxx>
- Date: Fri, 06 Oct 2006 23:35:33 +0200
Ingvar Nilsen wrote:
Nick Hodges (Borland/DTG) wrote:
Ingvar Nilsen wrote:
IDataReader fetches what there is to fetch, then lets you iterate... in one direction. Without field objects.
the contents at your own desired pace.
Absolutely right. But still I wonder why one cannot move back and forth, since the data
obviously has to be there, inside it, organised in rows, one way or
another.
That would render the whole purpose o a data reader pointless: being a *very* thin layer between the DBMS' cursor implementation and your application.
It doesn't even hold the data for one row, you call GetInt32(4) and he will give you that value using the DBMS' client's API. That way there is no marshaling for values you maybe won't use.
If you want to go that clumsy data driven blabla road, that MS is advertising, you can just use DataSets and DataAdapter. But in that case you won't think about performance anyway, as there isn't any performance using DataSets in .Net, IMO.
ADO.Net is all about being *disconnected*.
- Get some data
- work on it either using DataSet or containers of "real" classes.
- get the Delta
- post it back
A "cursor" is in this case the index of your container. I thought Nick meant it as in the current selected (UI wise) record.
That's why I posted the CurrencyMan snippet. Actually CurrencyManager.Current doesn't do anything else than returning the element at index X in the bound data container.
If the container contains "real" objects, that would be an instance o your class, if it were a DataSet it would be a DataRowView, I guess.
I the current selection in your UI is o no interest, then just work directly on your list. ;-)
.
- Follow-Ups:
- Re: I really hate .NET especially inside Delphi
- From: Nick Hodges (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- References:
- I really hate .NET especially inside Delphi
- From: AnnShip
- Re: I really hate .NET especially inside Delphi
- From: Bruno Fierens [tmssoftware.com]
- Re: I really hate .NET especially inside Delphi
- From: Nick Hodges (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- From: Rick Beerendonk
- Re: I really hate .NET especially inside Delphi
- From: Robert Giesecke
- Re: I really hate .NET especially inside Delphi
- From: Tim Jarvis [Borland/DTG]
- Re: I really hate .NET especially inside Delphi
- From: Chad Z. Hower
- Re: I really hate .NET especially inside Delphi
- From: Allen Bauer (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- From: Chad Z. Hower
- Re: I really hate .NET especially inside Delphi
- From: Nick Hodges (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- From: Chad Z. Hower
- Re: I really hate .NET especially inside Delphi
- From: Nick Hodges (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- From: Chad Z. Hower
- Re: I really hate .NET especially inside Delphi
- From: Dave Nottage [TeamB]
- Re: I really hate .NET especially inside Delphi
- From: Nick Hodges (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- From: Robert Giesecke
- Re: I really hate .NET especially inside Delphi
- From: Nick Hodges (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- From: Chad Z. Hower
- Re: I really hate .NET especially inside Delphi
- From: Ingvar Nilsen
- Re: I really hate .NET especially inside Delphi
- From: Nick Hodges (Borland/DTG)
- Re: I really hate .NET especially inside Delphi
- From: Ingvar Nilsen
- I really hate .NET especially inside Delphi
- Prev by Date: Re: Size of D8 executables
- Next by Date: Re: I really hate .NET especially inside Delphi
- Previous by thread: Re: I really hate .NET especially inside Delphi
- Next by thread: Re: I really hate .NET especially inside Delphi
- Index(es):
Relevant Pages
|