title: Typed Dataset not using TypedTableBase in .NET 4
body: <p>I'm migrating our DAL class library to .NET 4 (from .NET 3.5). We're using typed datasets quite often, and we often iterate over tables:</p>
  
  <pre><code>foreach(var row in ds.MyTable) var tmp = row.ID;
  </code></pre>
  
  <p>This does not work anymore, as the designer changes the dataset's code so that tables do not derive from <code>TypedTableBase&lt;T&gt;</code> anymore, but from <code>DataTable</code> (and implement the non-generic <code>IEnumerable</code>). That's what the diff shows. Therefore, the row is of type <code>object</code> at compile-time.</p>
  
  <p>Does anybody know if this is the usual behavior? At the moment, I'm doing it the way shown below, but I hope there's a more elegant solution:</p>
  
  <pre><code>foreach(var row in ds.MyTable.Cast&lt;MyDs.MyRow&gt;()) var tmp = row.ID;
  </code></pre>