title: Dynamic LINQ query to get Field value from Database
body: <p>is it possible?</p>
  
  <pre><code>Public String Get_Filed_By_Id(string table_Name,String Field_Name,string PK_val)
  {
      string strRes="";
      using(mydbcontext db=new mydbcontext())
      {
        var x=db.table_Name.Where(p=&gt;p.Id=PK_val).FirstOrDefault().Field_Name;
        strRes=Convert.Tostring(x);
      }
   return strRes;
  }
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>var x=(from o in db.table_Name where o.Id=PK_val select o.Field_Name).FirstOrDefault();
  </code></pre>
  
  <p>Here, i'm passing <code>Table_Name</code>,<code>Column_Name</code> and the Condition value(<code>PK_val</code>) to Get the <code>Column_Name</code> from <code>Table_Name</code> within a Certain Condition(<code>Id=Pk_val</code>).</p>
  
  <p><strong>Is it possible??</strong></p>