title: Inserting and updating with children in SQLiteNetExtensions is not working
body: <p>I have followed the example in <a href="https://bitbucket.org/twincoders/sqlite-net-extensions" rel="nofollow">https://bitbucket.org/twincoders/sqlite-net-extensions</a> and mine appears a really strange error "System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'System.String'."</p>
  
  <pre><code>public class AgendamentoMotorista 
      {
  
  
  
  
          [PrimaryKey, AutoIncrement]
          public int Id { get; set; }
  
          public int IdAgendamento { get; set; }
  
          public string DocumentoMotorista { get; set; }
  
          [OneToMany(CascadeOperations = CascadeOperation.All)]
          public List&lt;AgendamentoAtivoConteinerDto&gt; Conteineres { get; set; }
          }
  
  
  public class AgendamentoAtivoConteinerDto
      {
  
          [PrimaryKey, AutoIncrement]
          public int Id2 { get; set; }
  
          [ForeignKey(typeof(AgendamentoMotorista))]
          public string Conteiner { get; set; }
  
          public string PesoBruto { get; set; }
  
          public string Imo { get; set; }
  
          [ManyToOne]
          public AgendamentoMotorista AgendamentoMotorista { get; set; }
      }
  </code></pre>
  
  <p>Those are my classes that I'm using, I am establishing a relationship onetomany.</p>
  
  <pre><code>_conexao = new SQLiteConnection(config.Plataforma, System.IO.Path.Combine(config.DiretorioDb, "MotoristasAgendamento2.db3"));
  
  
  
              _conexao.CreateTable&lt;AgendamentoMotorista&gt;();
  
  
              _conexao.CreateTable&lt;AgendamentoAtivoConteinerDto&gt;();
  }
  public void InsertWithChildren(AgendamentoMotorista agendamento)
          {
              _conexao.InsertWithChildren(agendamento);
          }
  </code></pre>
  
  <p>Anyone knows why this error is appearing? It happens when I use the UpdateWithChildren too.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have solved the problem, after the ForeignKey I must use a Int and not a string, the fix is here :</p>
  
  <pre><code>[PrimaryKey, AutoIncrement]
      public int Id2 { get; set; }
  
      [ForeignKey(typeof(AgendamentoMotorista))]
      public int ConteinerId { get; set; }
      public string Conteiner { get; set; }
  
      public string PesoBruto { get; set; }
  
      public string Imo { get; set; }
  
      [ManyToOne]
      public AgendamentoMotorista AgendamentoMotorista { get; set; }
  </code></pre>