title: list<lab_result_cash_view> does not contain a definition for 'Patient_Name ' and no extension method 'Patient_Name '
body: <p>I want to select data from multiple tables and view.
  I created the following class Orders tables:</p>
  
  <pre><code>public class Orders_Tables
      {
          public List&lt;Lab_Orders&gt;  LabOrders { get; set; }
          public List&lt;Lab_orders_Cash&gt; LabOrdersCash { get; set; }
          public List&lt;Lab_Sample_status&gt; LabOrderStatus { get; set; }
  
          public List&lt;LAB_RESULTS&gt; LabResults { get; set; }
          public List&lt;LabTests&gt; labtests { get; set; }
          public List&lt;LAB_RESULTS_CLINIC_VIEW&gt; labViewResult { get; set; }
          public List&lt;LAB_RESULT_CASH_VIEW&gt; labCashView { get; set; }
  
          public List&lt;LAB_PARASITOLOGY_VIEW&gt; labparaview { get; set; }
  
         public List&lt;Lab_Hematology_Samples&gt; LabSamples { get; set; }
  
        public List&lt;Patients&gt; patients { get; set; }
  
          public Orders_Tables()
          {
              this.LabOrders = new List&lt;Lab_Orders&gt;();
              this.LabOrdersCash = new List&lt;Lab_orders_Cash&gt;();
              this.LabOrderStatus = new List&lt;Lab_Sample_status&gt;();
              this.LabResults = new List&lt;LAB_RESULTS&gt;();
              this.labtests = new List&lt;LabTests&gt;();
              this.labViewResult = new List&lt;LAB_RESULTS_CLINIC_VIEW&gt;();
              this.labCashView = new List&lt;LAB_RESULT_CASH_VIEW&gt;();
              this.labparaview = new List&lt;LAB_PARASITOLOGY_VIEW&gt;();
              this.LabSamples = new List&lt;Lab_Hematology_Samples&gt;();
              this.patients = new List&lt;Patients&gt;();
          }
  
  
      } 
  </code></pre>
  
  <p>And this is the controller : </p>
  
  <pre><code>public ActionResult Cash(int id)
          {
              Orders_Tables tables = new Orders_Tables();
              tables.labCashView = db.LAB_RESULT_CASH_VIEW.Where(c =&gt; c.order_number == id).ToList();
              tables.labparaview = db.LAB_PARASITOLOGY_VIEW.Where(p =&gt; p.ORDER_ID == id).ToList();
  
              return View(tables);
          }
  </code></pre>
  
  <p>Then I created empty view , the error when i try to select columns i cannot find it and the error appeared when i paste the column name , this is the view code :</p>
  
  <pre><code>@model IEnumerable&lt;AljawdahNewSite.Models.Orders_Tables&gt;
  @{
      ViewBag.Title = "Cash";
      Layout = "~/Views/Shared/_LayoutPatients.cshtml";
  }
  
      &lt;div id="divprint"&gt;
          &lt;div style="margin-left:15px"&gt;
              &lt;hr /&gt;
              &lt;dl class="horizontal" style="border:solid"&gt;
                  &lt;dt style="width: 20%;display: inline-block;color:blue;"&gt;@Html.DisplayNameFor(model =&gt; model.labCashView.Patient_Name)&lt;/dt&gt;
                  &lt;dd style="width: 25%;display: inline-block;margin: 0px;margin-left:-50px"&gt;@Html.DisplayFor(model =&gt; model.FirstOrDefault().labCashView.Patient_Name)&lt;/dd&gt;
                  &lt;dt style="width: 22%;display: inline-block;color:blue;"&gt;@Html.DisplayNameFor(model =&gt; model.labCashView.Customer_Name)&lt;/dt&gt;
                  &lt;dd style="width: 25%;display: inline-block;margin: 0px;margin-left:0px"&gt;@Html.DisplayFor(model =&gt; model.FirstOrDefault().labCashView.Customer_Name)&lt;/dd&gt;
                &lt;/dl&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>The error appeared when i paste the column name : Patient_Name , Customer_Name and so on ...</p>
  
  <blockquote>
    <p><strong>list lab_result_cash_view does not contain a definition for 'Patient_Name ' and no extension method 'Patient_Name ' accepting a first argument of type 'list lab_result_cash_view 
    could not be found are you missing a using directive or an assembly reference</strong></p>
  </blockquote>
  
  <p>How i will select column name in the view ? </p>