title: Converting Entity Framework to ADO.NET
body: <p>I've been working through <a href="https://docs.asp.net/en/latest/tutorials/first-mvc-app/" rel="nofollow">https://docs.asp.net/en/latest/tutorials/first-mvc-app/</a> and after getting the tutorial working, I'd like to convert some of the Entity Framework calls to ADO.NET.</p>
  
  <p>I choose the following function:</p>
  
  <pre><code>    public async Task&lt;IActionResult&gt; Details(int? id)
      {
          if (id == null)
          {
              return NotFound();
          }
  
          var movie = await _context.Movie.SingleOrDefaultAsync(m =&gt; m.ID == id);
          if (movie == null)
          {
              return NotFound();
          }
  
          return View(movie);
      }
  </code></pre>
  
  <p>I've looked at <a href="https://msdn.microsoft.com/en-us/library/dw70f090(v=vs.110).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/dw70f090(v=vs.110).aspx</a> and while it makes sense, how can I return the results of the movie table to that movie object that entity does?</p>