title: How to run methods when retrieving data in EF Core
body: <p>I have an EntityFramework Core model that can run a method:</p>
  
  <pre><code>public class Job
  {
  
      public int JobId
  
      public string Image
  
      public string GetJobImage()
      {            
          if (string.IsNullOrEmpty(Image))
          {
                  return "/assets/img/generic-photo-placeholder.png";
          }
          else if (Image == "Custom")
          {
              return string.Format("/JobImages/{0}", JobId);
          }
          return ""; 
      }
  }
  </code></pre>
  
  <p>When I run a query to get a Job in EF, how do I always get the results of this method?</p>