R
Ross
http://groups.google.com/group/micr...aint"+child+key&rnum=3&hl=en#f2e7addd569723d6
I am experiencing this exact same problem with the Enterprise Library.
I have a DataSet. Parent table and Child table. I add a new row to
each. The parent key is an identity and it starts at -1. I assign -1 to
the related child key.
When I call UpdateDataSet for Parent, the identity comes back from the
database and I see the new key in both the Child and Parent rows of the
dataset. However, when I call UpdateDataSet on the Child table, the SQL
profiler shows the old "new" value of -1.
I am going to continue looking for a workaround but in the meantime I
thought I'd ask the Q.
I am experiencing this exact same problem with the Enterprise Library.
I have a DataSet. Parent table and Child table. I add a new row to
each. The parent key is an identity and it starts at -1. I assign -1 to
the related child key.
When I call UpdateDataSet for Parent, the identity comes back from the
database and I see the new key in both the Child and Parent rows of the
dataset. However, when I call UpdateDataSet on the Child table, the SQL
profiler shows the old "new" value of -1.
I am going to continue looking for a workaround but in the meantime I
thought I'd ask the Q.