title: Working with SQL views in Entity Framework Core
body: <p>For example, I have such model:</p>
  
  <pre><code>public class Blog
  {
      public int BlogId { get; set; }
      public string Url { get; set; }
  
      public BlogImage BlogImage { get; set; }
  }
  
  public class BlogImage
  {
      public int BlogImageId { get; set; }
      public byte[] Image { get; set; }
      public string Caption { get; set; }
  
      public int BlogId { get; set; }
      public Blog Blog { get; set; }
  } 
  </code></pre>
  
  <p>I want to return in <strong>ImageView</strong> view <strong>Url</strong> and <strong>Image</strong>. </p>
  
  <p>Where do I need to create and define that SQL view? </p>