title: How to insert an ObservableCollection property to a local sqlite-net db?
body: <p>I have a quick question about the sqlite-net library which can be found here : <a href="https://github.com/praeclarum/sqlite-net" rel="nofollow">https://github.com/praeclarum/sqlite-net</a>.</p>
  
  <p>The thing is I have no idea <strong>how collections, and custom objects will be inserted into the database, and how do I convert them back when querying, if needed</strong>.</p>
  
  <p>Take this model for example:</p>
  
  <pre><code>[PrimaryKey, AutoIncrement]
  public int Id { get; set; }
  private string _name; // The name of the subject. i.e "Physics"
  private ObservableCollection&lt;Lesson&gt; _lessons;
  </code></pre>