title: EFExtensions With MVC ~ Materializer
body: <p>I am using EFExtensions with a typed view in mvc and am getting</p>
  
  <p>The model item passed into the dictionary is of type 'Microsoft.Data.Extensions.Materializer`1+d__0[MvcCms.Web.Models.User]' but this dictionary requires a model item of type 'MvcCms.Web.Models.ViewData.SiteAdminModel'. </p>
  
  <p>'MvcCms.Web.Models.ViewData.SiteAdminModel' contains a definition of User, here is the code in SiteAdminModel</p>
  
  <pre><code>public class SiteAdminModel
  {
      public StateProvince SelectedState { get; set; }
  
      public IEnumerable&lt;StateProvince&gt; States { get; set; }
  
      public IEnumerable&lt;Organization&gt; Organizations { get; set; }
  
      public IEnumerable&lt;User&gt; Users { get; set; }
  
  }
  </code></pre>
  
  <p>What would be the best way to fix this.  Possibly using a codebehind to cast the Materialized version or doing that in the controller?</p>