D
Donna
Hi,
I am looking for information on efficient use of ADO .Net.
I am totally new to this world (Unix/C++ background) and am looking for
rules-of-thumb regarding some basic concepts (note this is for WinForms app
in C#) -
1) use and reuse of components. datasets - when to hold more tables in fewer
datasets vs the reverse. dataadapters - when to reuse and when to use many
2) connections - when it might make sense to keep a connection open vs
frequent opening/closing of connections.
3) fetching data - always just when needed or are there circumstances in
which it would be better to load up front
(in my case, datareader subset of records and columns used in a "master
search datagrid")
4) from my research so far, it seems that I should use datareaders where
possible, and that dataviews are the correct way to control which columns
display in grid. Is this correct?
These are my getting-started questions which I can't seem to find
straightforward answers to...maybe there aren't any, but thanks in advance
for any help. I haven't even really gotten into thinking about concurrency
yet, but any pointers on that are appreciated also (as well as anything else
I am too naive to even think of).
Cheers,
Donna
I am looking for information on efficient use of ADO .Net.
I am totally new to this world (Unix/C++ background) and am looking for
rules-of-thumb regarding some basic concepts (note this is for WinForms app
in C#) -
1) use and reuse of components. datasets - when to hold more tables in fewer
datasets vs the reverse. dataadapters - when to reuse and when to use many
2) connections - when it might make sense to keep a connection open vs
frequent opening/closing of connections.
3) fetching data - always just when needed or are there circumstances in
which it would be better to load up front
(in my case, datareader subset of records and columns used in a "master
search datagrid")
4) from my research so far, it seems that I should use datareaders where
possible, and that dataviews are the correct way to control which columns
display in grid. Is this correct?
These are my getting-started questions which I can't seem to find
straightforward answers to...maybe there aren't any, but thanks in advance
for any help. I haven't even really gotten into thinking about concurrency
yet, but any pointers on that are appreciated also (as well as anything else
I am too naive to even think of).
Cheers,
Donna