I'm just starting out with VB.net and ADO.net. Although I'm getting everything to work, the code seems very long winded. For instance this is my code to check the number of records in a dataset set table and add a blank record if it is 0.
Dim intRecCount As Integer
intRecCount = Me.BindingContext(MemberDataSet1, "Members").Count
If intRecCount = 0 Then
Dim dr As DataRow
dr = MemberDataSet1.Tables("Members").NewRow
It works Ok but it seems a lot of code. This is just an example - all the code I'm generating seems as complex. Am I missing something?