title: FromSqlRaw return value
body: <p>My task is to return the number of cars where the age is more than three years</p>
  
  <pre><code>public IActionResult Report()
  {
      var result = _context.Cars.FromSqlRaw("SELECT COUNT(*) from Car where (DATEDIFF(DAY, ReleaseDate, GetDate()) / 365.25) &gt; 3");
      ViewBag.result = result;
      return View();
  }
  </code></pre>
  
  <p>After spending time googling and studying Microsoft documentation I figured out that <code>FromSqlRaw</code> will work but in web form it returns either <code>-1</code> or <code>Microsoft.EntityFrameworkCore.Query.Internal.Entityqueryable&lt;T&gt;</code>.</p>
  
  <p>A direct query to the database returns the correct value which is <code>1</code> car.
  Adding any parameters after <code>FromSqlRaw</code> returns an exception.</p>
  
  <p>I just don't get or getting <code>ReleaseDate</code> and then formatting and dividing it is too much?</p>