title: Pass table name to dbContext and get values from table in Entity Framework
body: <p>I have a <code>DbContext</code> class and I'm using code first apporach in my application. I have few common standard tables that contains <code>"Id"</code> and <code>"Value"</code> columns and i want to query them passing the table name and column name but there is no option in entity framework to pass. </p>
  
  <p>Example:</p>
  
  <p>Common tables: </p>
  
  <pre><code>Client_ClientDepartment (Id, Value) 
  Client_ClientDesignation (Id, Value)
  Client_ClientCompany (Id, Value)
  </code></pre>
  
  <p>What I want to do is to pass table name and <code>Id</code> to get the value. I have created a common method as</p>
  
  <pre><code>    public string GetClientValue(string id, string tableName)
      {
          DatabaseContext dbContext = new DatabaseContext();
          //Query the database and get value based on table and id.
          string value = dbContent. ("query here")             
          return value ;
      }
  </code></pre>
  
  <p>Can I do it in entity framework? Is it possible?</p>