I have two objects (named Prod1 and Prod2)representing two tables in a sql database - the two tables are almost identical (one has constraints and the other has no constraints - it is used as a temporary table) . Considering that they are identical in properties etc..
I am wondering how I can convert Prod1 as Prod2 and vice versa - for example I grab the info from Prod1, manipulate the data using info from another source and then I wish to cast prod1 as prod2 - and save prod2 to the sql database. I know how to do everything except convert my objects ( can I simply use DirectCast(Prod1, Prod2Type) and expect it to work - or is there some rocket science I need to know ?
These were generated objects from the table names .. therefore the class names and thestored procedure names are really the difference between the two objects - along with the constraints.
I do not want to save the "original" object [Prod1] back to the "live table [Prod1]" - I want this in a temp table [prod2] so that the operator has a chance to look over the data to review, verify or fix it before committing the data - and I want them to have all the time in the world to do it - hence the temp table.