title: How to seed in Entity Framework Core 2?
body: <p>I have two tables, and I want to fill them using seeds.</p>
  <p>I use ASP.NET Core 2 in Ubuntu.</p>
  <p>How to populate the data for the two tables where one is connected to the other via a foreign key?</p>
  <p>The Flowmeter has many notes, and the note belongs to Flowmeter.</p>
  <p>I want to do something like this, but it should be stored in the database:</p>
  <pre><code>new Flowmeter 
  {
      Make = &quot;Simple model name&quot;,
      SerialNum = 45, 
      Model = &quot;Lor Avon&quot;, 
      Notes = new List&lt;Note&gt;()
      {
          new Note() { Value = 45, CheckedAt = System.DateTime.Now },
          new Note() { Value = 98, CheckedAt = System.DateTime.Now }
      }
  }
  </code></pre>