MVC 3 Razor View, use Entitiy Model in another project
I'm in the process of learning MVC 3, Razor, and EF Model First. 

I have a project I'm working on where I have defined the EF Model in a separate project from the main web project. I'm trying to access data using that model in a view.

I get this error:
![enter image description here][1]

I added the namespace to my webconfig:

    <pages>
       <namespaces>
          <add namespace="System.Web.Helpers" />
          <add namespace="System.Web.Mvc" />
          <add namespace="System.Web.Mvc.Ajax" />
          <add namespace="System.Web.Mvc.Html" />
          <add namespace="System.Web.Routing" />
          <add namespace="System.Web.WebPages" />
          <add namespace="System.Data.Entity" />
        </namespaces>
    </pages>

Controller:

    public ActionResult ListRole()
    {
        AuthDbContainer container = new AuthDbContainer();
        List<User> users = container.Users.ToList();

        return View(users);
    }

View:

    @model IEnumerable<WebSecurity.Role>
    @{
        ViewBag.Title = "Role List";
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    <!DOCTYPE html>
    <html>
    <head>
        <title>ListRole</title>
    </head>
    <body>
        <p>
            @Html.ActionLink("Create New", "Create")
        </p>
        <table>
            <tr>
                <th>
                    desc
                </th>
                <th>
                    createDate
                </th>
                <th>
                </th>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.desc)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.createDate)
                    </td>
                    <td>
                        @Html.ActionLink("Edit", "Edit", new { id = item.roleName }) |
                        @Html.ActionLink("Details", "Details", new { id = item.roleName }) |
                        @Html.ActionLink("Delete", "Delete", new { id = item.roleName })
                    </td>
                </tr>
            }
        </table>
    </body>
    </html>


Thank you for any help.

  [1]: http://i.stack.imgur.com/PO4X4.png
MVC 3 Razor View, use Entitiy Model in another project
===

I'm in the process of learning MVC 3, Razor, and EF Model First. 

I have a project I'm working on where I have defined the EF Model in a separate project from the main web project. I'm trying to access data using that model in a view.

I get this error:
![enter image description here][1]

I added the namespace to my webconfig:

    <pages>
       <namespaces>
          <add namespace="System.Web.Helpers" />
          <add namespace="System.Web.Mvc" />
          <add namespace="System.Web.Mvc.Ajax" />
          <add namespace="System.Web.Mvc.Html" />
          <add namespace="System.Web.Routing" />
          <add namespace="System.Web.WebPages" />
          <add namespace="System.Data.Entity" />
        </namespaces>
    </pages>

Controller:

    public ActionResult ListRole()
    {
        AuthDbContainer container = new AuthDbContainer();
        List<User> users = container.Users.ToList();

        return View(users);
    }

View:

    @model IEnumerable<WebSecurity.Role>
    @{
        ViewBag.Title = "Role List";
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    <!DOCTYPE html>
    <html>
    <head>
        <title>ListRole</title>
    </head>
    <body>
        <p>
            @Html.ActionLink("Create New", "Create")
        </p>
        <table>
            <tr>
                <th>
                    desc
                </th>
                <th>
                    createDate
                </th>
                <th>
                </th>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.desc)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.createDate)
                    </td>
                    <td>
                        @Html.ActionLink("Edit", "Edit", new { id = item.roleName }) |
                        @Html.ActionLink("Details", "Details", new { id = item.roleName }) |
                        @Html.ActionLink("Delete", "Delete", new { id = item.roleName })
                    </td>
                </tr>
            }
        </table>
    </body>
    </html>


Thank you for any help.

  [1]: http://i.stack.imgur.com/PO4X4.png