Hi bolisetti_Sridhar,
I am not sure what you want to achieve. However, you can take advantage of the designer which will serialize code for each table. So you even don't need to write any code, The designer will generate those components for you.
Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.