title: How to create a SQLite database UWP
body: <p>I'm new in creating Data Bases and I should to create a SQLite DB, which contains Buses, every Bus contains a list of Stops and every Stop contains a timetable. I have create a class Buses: </p>
  
  <pre><code>class Buses
  {
      [PrimaryKey, AutoIncrement]
      public string number { get; set; }
      public List&lt;Stop&gt; stops = new List&lt;Stop&gt;();
  }
  
   public class Stop
  {
      public string StopName { get; set; }
      public string Timetable { get; set; }
  }
  </code></pre>
  
  <p>And I don't know how should I add stops to the DB. I trying something like this:</p>
  
  <pre><code>private void Add_Click(object sender, RoutedEventArgs e)
      {
          var s = conn.Insert(new Buses()
          {
              number = Id.Text,
              stops = stops.Add(new Stop { StopName = StopName.Text, Timetable = Time.Text });
   }
  </code></pre>
  
  <p>But I get error</p>
  
  <blockquote>
    <p>The name 'stops' does not exist in the current context</p>
  </blockquote>
  
  <p>I understand, why there such error is, but I don't know, how to fix it. It is possible, that there are easiest ways to adding such constructions to the DB. </p>