G
Guest
Just finishing up reading "Pragmatic ADO .NET" from the .NET Developer Series. Most of the examples deal with single tables. The ones that don't show a very simple relationship like Customer -> Orders.
In the examples, the author seems to advocate loading tables into DataTables using SELECT * queries, then defining the schemas and relationships. My DBA background is cringing at this approach because of the full table scans this would needlessly cause.
Moreover, I often have relationships that depend on several tables. I understand the value of knowing the schema at the ADO .NET level but it seems like it comes at a the cost of not allowing the database to do what it does best in retrieving only the rows it needs using indexes.
Does ADO .NET discourage the use of complex, multi-join queries with limiting WHERE conditions or am I grossly misreading things? If I am, can someone point me to a good resource that contains real-world examples and not just simple, single-table data manipulation?
Thanks in advance for any guidance or advice.
Billy
In the examples, the author seems to advocate loading tables into DataTables using SELECT * queries, then defining the schemas and relationships. My DBA background is cringing at this approach because of the full table scans this would needlessly cause.
Moreover, I often have relationships that depend on several tables. I understand the value of knowing the schema at the ADO .NET level but it seems like it comes at a the cost of not allowing the database to do what it does best in retrieving only the rows it needs using indexes.
Does ADO .NET discourage the use of complex, multi-join queries with limiting WHERE conditions or am I grossly misreading things? If I am, can someone point me to a good resource that contains real-world examples and not just simple, single-table data manipulation?
Thanks in advance for any guidance or advice.
Billy