I have a client object with 10 properties.
- 7 of these properties are stored in the customer table.
- 3 of these properties are stored in the test table.
3 properties in the test table: CustomerId, Label, Text.
When I request these 3 properties, I get 3 datasets as follows:
CustomerId | Label | Text
1005 | blubb | What a day
1006 | hello | Sun is shining
0007 | |
When I save them, I have to call my stored procedure 3 times in the test table
In my SP, I verify that the dataset is with the specific identifier customerId. And already exists, then I do UPDATE else INSERT.
How could you call the stored procedure 3 times with all the commands CommandText, CommandType, ExecuteNonQuery, etc.
source
share