title: Trying to use DropDownListFor without model getting "tree may not contain dynamic operation" error
body: <p>I am trying to use a <code>DropDownListFor&lt;&gt;</code> in my LayoutTemple so I don't have access to a model. So what I did was in the <code>@{}</code> block at the top of the page I added <code>FFInfo.DAL.SoloClassesContext db = new FFInfo.DAL.SoloClassesContext();</code> which calls an instance of the DBContext with the class I want to use. I then placed the List where I wanted using</p>
  
  <pre><code>@Html.DropDownListFor(
  m =&gt; m.ID,
  new SelectList(db.CultureCodes, "ID", "DisplayName"));
  </code></pre>
  
  <p>but when I run the code I get an error for the line <code>m =&gt; m.ID</code>. The error given is:</p>
  
  <blockquote>
    <p>An expression tree may not contain a dynamic operation</p>
  </blockquote>
  
  <p>I have never used this type of dropdown and am very new to MVC. Can anyone tell me what I am doing wrong and how to fix it?</p>