title: SQLite.Net - Don't know about System.Collections.Generic.List fault - Xamarin Android
body: <p>I'm searching for hours now on this problem and it is very logic he does not know Ability (because Ability is not made yet), But do you guys know how to fix this?</p>
  
  <p>This is the fault message I get: 
  Don't know about System.Collections.Generic.List`1[pokedex.Ability]</p>
  
  <p>My classes:
  -Ability</p>
  
  <pre><code>[Table ("Ability")]
  public class Ability
  {
      [PrimaryKey,AutoIncrement]
      public int Id { get; set; }
  
      public String name{ get; set; }
  
      [ManyToMany (typeof(PokemonAbility))]
      public List&lt;Pokemon&gt; pokemon{ get; set; }
  
      public Ability (String n)
      {
          name = n;
      }
  }
  </code></pre>
  
  <p>-Pokemon:</p>
  
  <pre><code>[Table ("Pokemon")]
  public class Pokemon
  {
      [PrimaryKey,AutoIncrement]
      public int DBId { get; set; }
  
      public int id { get; set; }
  
      public String name{ get; set; }
  
      public String type{ get; set; }
  
      public String image{ get; set; }
  
      public int Attack{ get; set; }
  
      public int speed{ get; set; }
  
      public int sp_atk{ get; set; }
  
      public int sp_def{ get; set; }
  
      public int defense{ get; set; }
  
      public string height{ get; set; }
  
      public String weight{ get; set; }
  
      public int hp{ get; set; }
  
      public String description{ get; set; }
  
      [ManyToMany (typeof(PokemonAbility))]
      public List&lt;Ability&gt; abilities{ get; set; }
  
      methods and consttuctor...
  
  
  }
  </code></pre>
  
  <p>PokemonAbility:</p>
  
  <pre><code>[Table ("PokemonAbility")]
  public class PokemonAbility
  {
      public PokemonAbility ()
      {
      }
  
      [ForeignKey (typeof(Pokemon))]
      public int PokemonId { get; set; }
  
      [ForeignKey (typeof(Ability))]
      public int AbilityId { get; set; }
  }
  </code></pre>
  
  <p>My DB:</p>
  
  <pre><code>public class NormalDatabase
  {
  
      private String pathToDatabase;
  
      public NormalDatabase ()
      {
          var documents = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
          pathToDatabase = Path.Combine (documents, "db_adonet.db");
      }
  
      //aanmaken van de tabel =&gt; met objecten pokemon
      public void CreateDatabase ()
      {
          using (var conn = new SQLite.SQLiteConnection (pathToDatabase)) {
              conn.DropTable&lt;Pokemon&gt; ();
              conn.DropTable&lt;Ability&gt; ();
              conn.DropTable&lt;PokemonAbility&gt; ();
              conn.CreateTable&lt;Pokemon&gt; ();  //here he fails ofc
              conn.CreateTable&lt;Ability&gt; ();
              conn.CreateTable&lt;PokemonAbility&gt; ();
          }
      other methods
      }
  </code></pre>
  
  <p>Thanks in advance!</p>