Im using MVC 3 and Massive ORM.

I wondering how I could populate a dropdownlist using Massive ORM to get my data from the database.

I pass my list of categories to my view using ViewData["Categoreis"]. It passed the data to the view, but I get this errormessage when I try to load the page in my browser:

> 
> DataBinding: 'System.Dynamic.ExpandoObject' does not contain a
>  property with the name 'CategoryID'.
> 
> 
> 

This is how my dropdownlist looks like:

```
@Html.DropDownListFor(model => model.CategoryID, new SelectList(ViewData["Categories"] as IEnumerable<dynamic>, "CategoryID", "Name"), "--Category--")

```

Does anybody have a solution for my problem?