B
Brandon Schenz
I have created a typed dataset that represents my database. One of the
tables is Customers. The Dataset is empty on creation because I do not want
to load in 10's of thousands of customers.
I'm pulling orders down from my website and populating the empty dataset.
When I call the DataSet.update command I get a Primary Key violation because
it is trying to insert the customers into the database rather than update
it.
My guess is this is because the dataset assumes that it is new because my
dataset started as empty.
How do you suggest that I correct this so that I can take advantage of a
dataset (without loading the complete database) rather than dealing with
each individual customer/order.
Brandon
tables is Customers. The Dataset is empty on creation because I do not want
to load in 10's of thousands of customers.
I'm pulling orders down from my website and populating the empty dataset.
When I call the DataSet.update command I get a Primary Key violation because
it is trying to insert the customers into the database rather than update
it.
My guess is this is because the dataset assumes that it is new because my
dataset started as empty.
How do you suggest that I correct this so that I can take advantage of a
dataset (without loading the complete database) rather than dealing with
each individual customer/order.
Brandon