Inserting parent child records with Identity column using WCF-SQL Adapter in one transaction

The following blog post by Atin nicely explains how to go about doing this

 https://blogs.msdn.com/biztalkcpr/archive/2009/10/05/inserting-parent-child-records-with-identity-column-using-wcf-sql-adapter-in-one-transaction.aspx