title: How to Insert DataTable with values into Database in Linq to sql
body: <p>I want to save all record exist in a <code>DataTable</code> into my database. I am using Linq-to-SQL in C#.</p>
  
  <p>I am using this code:</p>
  
  <pre><code>DataTable dt = null;
  dt = getTable(fl.ToString()); //getting DataTable
  
  using (DataClassesDataContext dc = new DataClassesDataContext())
  {
     foreach (var mt in dc.Mapping.GetTables())
     {
        if (dt.TableName == mt.TableName)
        {
           //How to insert this table values in DB??
        }
     }
  }
  </code></pre>
  
  <p>Please suggest me better way to do that.</p>
  
  <p>Thanks in advance.</p>