>>Borislav,
>>Stealing your code (be informed) for other parts of this and will modify to suit my needs:)
>>Probably I couldn't explain my need well. I don't want to check and update child tables too. Mostly because it's too much work and perfromance would suffer. I simply want to know the key before insertion and submit as updatable to backend, or let backend assign one when I don't supply.
>>Cetin
>
>Be prepared. That code is only tested with SQL Server :-)
>In UpdateCursors method of the class I replaced newly received ID in all child tables.
>
>I have 5 child tables in that class, so I must do this in the FrontEnd or write SP for each Child table. Of course I have small amount of records in each table (10 - 30), sending 5*30*4 = 600 bites is not a big deal. Even working with a terrible NET (4-6K per sec) it works well.
>
>BTW I am not sure that CA sends only modified fields to the backend (never tested it though).
Oh no problem just would check for portions, I think I have started to shape a fast algorithm in my mind and implement if I don't forget before writing all:)
Cetin