title: generic GetById for complex PK
body: <p>I am looking a way to create Generic GetById that get <code>params object[]</code> as parameter, knows to find the key/s field/s and know to find the relevant entity.  </p>
  
  <p>In the way to find a solution I thought on a generic method that returns the PK fields definition and a generic method that can return the entity based on fields.</p>
  
  <p>I am looking for something I can use in table with one or more fields as primary key.</p>
  
  <p><strong>EDIT</strong>
  one or more fields as primary key example =<br>
  table Customers have (CompanyId, CustomerName, Address, CreateDate).<br>
  The primary key of Customers are CompanyId are CustomerName.</p>
  
  <p>I am looking for generic GetById that will know to handle also those such of tables.</p>