I am new to ADO.NET and was wading my way through connections, data adapters and datasets when an experienced programmer said just use this:
Dim rsobj As New ADODB.Recordset()
rsobj.Open("select * bla, bla", gdbNTBs, ADODB.CursorTypeEnum.adOpenForwardOnly, ADODB.LockTypeEnum.adLockReadOnly)
Do While Not rsobj.EOF
list.Add(New NTBMediaType(rsobj.Fields("comment"
.Value,_
rsobj.Fields("mediatypeid"
.Value))
rsobj.MoveNext()
Loop
rsobj.Close()
My question is: is this antequated or clever?
Dim rsobj As New ADODB.Recordset()
rsobj.Open("select * bla, bla", gdbNTBs, ADODB.CursorTypeEnum.adOpenForwardOnly, ADODB.LockTypeEnum.adLockReadOnly)
Do While Not rsobj.EOF
list.Add(New NTBMediaType(rsobj.Fields("comment"
rsobj.Fields("mediatypeid"
rsobj.MoveNext()
Loop
rsobj.Close()
My question is: is this antequated or clever?