can I return this: context.CreateObjectSet<Movie>()?
<p>I added a class called Connect.cs;</p>

<pre><code>namespace MovieApp.DAL
{
   public class Connect
   {
      public Connection()  //my class needs to have a return type
      {
        var connStr = ConfigurationManager.ConnectionStrings["Entities"];
        ObjectContext context = new ObjectContext(connStr.ConnectionString);
        var movieContext = context.CreateObjectSet&lt;Movie&gt;();
        return movieContext;
      }
   }
}
</code></pre>

<p>then i have in my controller class:</p>

<pre><code>namespace MovieApp.Controllers
{
    public class MovieController : Controller
    {
        public ActionResult Index()
       {
        Connect connection = new Connect(//and what will i put here??);
        var movies = connection.OrderBy(m =&gt; m.Title);
        return View(movies);
        }
}
</code></pre>

<p>obviously i get errors because I do not know how to do this.
Of what type will movieContext be?
How do I get this code to work please?
thanks!</p>
