title: How to get the amount of colums from a SQL database with LinqDataSource?
body: <p>I want to make a foreach loop which runs for each column I have in my current table.</p>
  
  <p>My situation is that I have my ASP.Net project where I have one Microsoft SQL Model which I imported and created an entity model with. </p>
  
  <p>Within that model I have one table with 10 "columns". </p>
  
  <p>I "connected" that model with a LinqDataSource object. </p>
  
  <p>My question is now, how can I access that DataTable through that LinqDataSource to get the amount of columns back?</p>
  
  <pre><code>public LinqDataSource MitarbeiterDataSource = new LinqDataSource();
  MitarbeiterDataSource.ID = "MitarbeiterDataSource";
  MitarbeiterDataSource.ContextTypeName = "MitarbeiterlisteEntities";
  MitarbeiterDataSource.TableName = "Mitarbeiterliste";
  </code></pre>
  
  <p>Thanks in advance!</p>