title: Select All records of a class with LINQ query
body: <p>I am trying get some records from a linq query<br/></p>
  
  <pre><code>dataentities db = new dataentities();
  db.Tabel1.Select(x=&gt; new lcclsAccDueList {LedgerName ,LedgerId,Amount ,AmountInString ,Expr2,Name ,StopID ,VIP  }).ToList();
  </code></pre>
  
  <p>I made this class</p>
  
  <pre><code> public class lcclsAccDueList
      {
          public string LedgerName { get; set; }
          public decimal LedgerId { get; set; }
          public Nullable&lt;decimal&gt; Amount { get; set; }
          public string AmountInString { get; set; }
          public Nullable&lt;int&gt; Expr2 { get; set; }
          public string Name { get; set; }
          public Nullable&lt;decimal&gt; StopID { get; set; }
          public Nullable&lt;bool&gt; VIP { get; set; }
      }
  </code></pre>
  
  <p>Is there any other way to select all records like<br/></p>
  
  <pre><code>dataentities db = new dataentities();
  db.Tabel1.Select(x=&gt; new lcclsAccDueList { * }).ToList();
  // * indicates select all records 
  </code></pre>