title: how to insert data into two tables at a time using entity framework
body: <p>i need to insert data which is in windows forms has to insert to two tables. i am using data source for all controls in windows forms. can you please sugest me how to insert data from windows forms into two tables at same time.</p>
  
  <p>my table is like this</p>
  
  <pre><code>**product table**
  
  pid   salePrice  
  
  
  **Product_tax table**
  
  pid  taxid
  </code></pre>
  
  <p>When i click on submit button product id will auto generate and salePrice has to store from form at same time what ever i select tax that also has to store in product_tax table along with product id. please help me out from this point.</p>
  
  <p><strong>Thanks in advance.</strong></p>