How does Dataset.Relations work internally?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Does ADO.NET internally sets up hashtables for the columns that are used to tie tables, so that later on hashtables can be used to quickly retrieve data? Or does it just loop through data to locate the ChildRows. For instance, in a line like this.

ds.Relations.Add(
	new DataRelation(RELATION_BREAK_PRODUCT, 	
	tblBreak.Columns[FIELD_BREAK_ID],
	ds.Tables["Product"].Columns[FIELD_BREAK_ID]));



Thanks.
.



Relevant Pages

  • Re: How does Dataset.Relations work internally?
    ... BTW - Andrew answered your question. ... so that later on hashtables can be used to quickly retrieve data? ... Or does it just loop through data to locate the ChildRows. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: How does Dataset.Relations work internally?
    ... This is probably a question for the softies, but given the fact that it ... takes a while to add a relation, and it is damn quick to fetch childrows, I ... > Does ADO.NET internally sets up hashtables for the columns that are used ...
    (microsoft.public.dotnet.framework.adonet)