title: SQLite net PCL - Simple select
body: <p>I use SQLite from windows app and now I am developing in Xamarin a portable app so I am using the plugin sqlite net pcl and I am having great trouble to understand how it works.</p>
  
  <p>I have a table that is created by te following:</p>
  
  <pre><code>public class Config
      {
          public string IP { get; set; }
          [SQLite.Net.Attributes.Default(true, "Client 2")]
          public string ID { get; set; }
      }
  </code></pre>
  
  <p>and to create the table:</p>
  
  <pre><code>db.CreateTable&lt;Model.Config&gt;();
  </code></pre>
  
  <p>Problem: Now I want to select the value in ID column and I do the following:</p>
  
  <pre><code>List&lt;string&gt; hhid = db.Query&lt;string&gt;("select ID from Config",null);
  </code></pre>
  
  <p>I get this exception: <code>"Object reference not set to an instance of an object"</code></p>
  
  <p>How can I make a simple select to find this field?</p>
  
  <p>Thanks for any tip</p>