title: Can't get `Include` to work with EF core , without FK
body: <p>I have 2 tables in SQL server without a FK : </p>
  
  <p><a href="https://i.stack.imgur.com/wHk2l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wHk2l.png" alt="enter image description here"></a></p>
  
  <p>So each <code>Image</code> has many <code>Comments</code>.</p>
  
  <p>Using this command I've created scaffolded files : </p>
  
  <blockquote>
    <p>dotnet ef dbcontext scaffold
    "Server=sff-pc;Database=IMG;Trusted_Connection=True;"
    Microsoft.EntityFrameworkCore.SqlServer -o Models -t <strong>Images</strong> -t
    <strong>comments</strong>  --context-dir Context -c MyContext -f</p>
  </blockquote>
  
  <p>Here are the generated files : </p>
  
  <pre><code> public partial class Images
      {
          public int ImageId { get; set; }
          public Guid ImgGuid { get; set; }
          public string ImgExtension { get; set; }
          public DateTime Datecreated { get; set; }
          public string Origin { get; set; }
          public decimal? Size { get; set; }
          public string Ip { get; set; }
          public int UserId { get; set; }
          public string Description { get; set; }
          public bool? IsActive { get; set; }
          public int? VotesUp { get; set; }
          public int? VotesDown { get; set; }
          public int ImgType { get; set; }
      }
  
  public partial class Comments
  {
      public int CommentId { get; set; }
      public int ImageId { get; set; }
      public int UserId1 { get; set; }
      public string CommentTxt { get; set; }
      public DateTime DateCreated { get; set; }
      public bool? IsActive { get; set; }
  }
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>Using those generated classes and this <a href="https://gist.github.com/RoyiNamir/3852b1af0a917b0cb8ad0ef09e62fc6a" rel="nofollow noreferrer">full context file</a>, How can I get each <code>Image</code> and <code>Include</code> its <code>comments</code>?</p>
  
  <p>What have I tried :</p>
  
  <p>I've tried adding the ForeignKey attribute : </p>
  
  <pre><code> public partial class Comments
      {
          public int CommentId { get; set; }
  
          [ForeignKey("Images")]          &lt;--------------Here
          public int ImageId { get; set; }
          public int UserId1 { get; set; }
          public string CommentTxt { get; set; }
          public DateTime DateCreated { get; set; }
          public bool? IsActive { get; set; }
      }
  </code></pre>
  
  <p>And to run this :</p>
  
  <pre><code>        var context = new MyContext();
          var result = context.Images.Include("Comments"); //exception
  
           foreach (var a in result)
           {
               Console.WriteLine(a);
           }
  </code></pre>
  
  <p>Exception : </p>
  
  <p><em>The property 'Comments' is not a navigation property of entity type 'Images'</em></p>