typed dataset question

  • Thread starter Thread starter Patrick Sullivan
  • Start date Start date
P

Patrick Sullivan

Hi,

I am trying to learn to use typed datasets with VB/ADO.Net 2003 and SQL
2000. I've looked at some examples from the 101 VB samples, specifically the
"how-to typed dataset" that shows two datasets, one regular and one typed.
When I try to do similar my code does not look the same:

the how-to sample says:
"Private tdsNorthwind As Northwind", then later "tdsNorthwind = New
Northwind()".

When I do "mytds AS tds" and then later, "mytds = New tds()" the VB editor
removes the (). I've seen weird behavior like this before in VB.Net, but it
was a while back, and it still seemed to work, from what I recall. But I am
a C programmer and it really seems weird to me that () can be removed and
still work. TIA!

Oh, also, what is a good source for learning MS's .Net typed datasets
syntax? The stuff I have seen in MSDN library and the 1010 samples is pretty
basic.
 
David Sceppa's ADO.NET Core reference has great discussion of them, as does
Sahil Malik's ADO.NET book.

Anyway, if you're in VB.NET - no worries about the () disappearing -- they
aren't necessary in this case.

HTH,

Bill
 
Thanks for the help William, I appreciate it. About the books, I was looking
this morning and saw both of those recommended.
 
Back
Top