title: How to implement method with expression parameter c#
body: <p>I want to create a method like this:</p>
  
  <pre><code>var result = database.Search&lt;EntityType&gt;(x=&gt;x.Name, "Entity Name field value");
  result = database.Search&lt;EntityType&gt;(x=&gt;x.Id, "Entity Id field value");
  result = database.Search&lt;EntityType2&gt;(x=&gt;x.Id, "Entity2 Id field value");
  result = database.Search&lt;EntityTypeAny&gt;(x=&gt;x.FieldAny, "EntityAny FieldAny value");
  </code></pre>
  
  <p>How can I implement this method?</p>