title: Generic Repository and multiple PK types
body: <p>I am trying to Implement a Generic Repository with Linq To SQL.  My problem lies in that some of my underlying tables have <code>int</code> ID's and some <code>Guid</code> ID's.  How would I account for that?</p>
  
  <pre><code>public T GetById(int id)
  {
      return this._context.GetTable&lt;T&gt;().Single(x =&gt; x.ID.Equals(id));
  }
  </code></pre>