R
Ronald S. Cook
In my client Windows application, I am receiving a DataSet containing one
DataTable. This comes to my client via the business tier on a different
physical machine (we're using WCF if that matters).
After I make changes to the data in the underlying DataTable, I send the
DataSet back to the business tier. In the business tier, what should my
code look like to persist the data up to the database?
I'm assuming I need to do something like this:
Dim Connection As New SqlConnection()
Connection.ConnectionString = My.Settings.COWFeedyardConnectionString
Dim Command As New SqlCommand()
Command.Connection = Connection
Dim DataAdapter As New SqlDataAdapter()
DataAdapter.UpdateCommand = Command
DataAdapter.Update(PenDataSet)
... but I get the errror: "Update unable to find TableMapping['Table'] or
DataTable 'Table'."
Thanks for any help,
Ron
DataTable. This comes to my client via the business tier on a different
physical machine (we're using WCF if that matters).
After I make changes to the data in the underlying DataTable, I send the
DataSet back to the business tier. In the business tier, what should my
code look like to persist the data up to the database?
I'm assuming I need to do something like this:
Dim Connection As New SqlConnection()
Connection.ConnectionString = My.Settings.COWFeedyardConnectionString
Dim Command As New SqlCommand()
Command.Connection = Connection
Dim DataAdapter As New SqlDataAdapter()
DataAdapter.UpdateCommand = Command
DataAdapter.Update(PenDataSet)
... but I get the errror: "Update unable to find TableMapping['Table'] or
DataTable 'Table'."
Thanks for any help,
Ron