title: LINQ to SQL: InsertOnSubmit() vs Add()
body: <p>What is the best way to insert new child records: to use <code>Add()</code> or <code>InsertOnSubmit()</code> ?
  Is there any difference between those to approaches ?</p>
  
  <p><code>InsertOnSubmit()</code> example:</p>
  
  <pre><code>using (DataContext db = new DataContext())
  {
     Parent p = db.Parents.Where(q =&gt; q.ID == SomeID).SingleOrDefault();
     Child c = new Child();
     c.ForeignKeyID = p.ID;
     db.InsertOnSubmit(c);
     db.SubmitChanges();
  }
  </code></pre>
  
  <p><code>Add()</code> example:</p>
  
  <pre><code>using (DataContext db = new DataContext())
  {
     Parent p = db.Parents.Where(q =&gt; q.ID == SomeID).SingleOrDefault();
     Child c = new Child();
     p.Add(c);
     db.SubmitChanges();
  }
  </code></pre>