A
Aaron Ackerman
I am attempting a very straight forward Update on a dataset. I have a
WinForms N-Tier app
using VB.NET.
Visual DataAdapters, typed Datasets.
Me.txtHomePhone.DataBindings.Clear()
Me.txtWorkPhone.DataBindings.Clear()
Me.txtPostalCode.DataBindings.Clear()
'New field values get assigned
vdsClientUI.ClientByID.Rows(0).Item("PersonHomePhone") =
Me.txtHomePhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonWorkPhone") =
Me.txtWorkPhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonPostalCode") =
Me.txtPostalCode.Text
'passes dataset from the UI through the middle tier to the datalayer
objClient.UpdateClientByID(Me.vdsClientUI, "ClientByID")
'At the datalayer update gets applied
Public Overridable Function UpdateClientByID(ByRef vdsClient As
dsClient, ByRef TableName As String)
vdaClientByID.Update(vdsClient, TableName)
End Function
'I step through and get a record count of one and yet it updates BOTH
records that exist in this table?
WinForms N-Tier app
using VB.NET.
Visual DataAdapters, typed Datasets.
Me.txtHomePhone.DataBindings.Clear()
Me.txtWorkPhone.DataBindings.Clear()
Me.txtPostalCode.DataBindings.Clear()
'New field values get assigned
vdsClientUI.ClientByID.Rows(0).Item("PersonHomePhone") =
Me.txtHomePhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonWorkPhone") =
Me.txtWorkPhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonPostalCode") =
Me.txtPostalCode.Text
'passes dataset from the UI through the middle tier to the datalayer
objClient.UpdateClientByID(Me.vdsClientUI, "ClientByID")
'At the datalayer update gets applied
Public Overridable Function UpdateClientByID(ByRef vdsClient As
dsClient, ByRef TableName As String)
vdaClientByID.Update(vdsClient, TableName)
End Function
'I step through and get a record count of one and yet it updates BOTH
records that exist in this table?