title: Xamarin ios : Assign a Sqlite Database query results to List
body: <p>I have a problem with assigning a database query results to List .How can i achieve this?</p>
  
  <pre><code>using (var conn= new SQLite.SQLiteConnection(_pathToDatabase)){
      var query = conn.Table&lt;Person&gt;();
      foreach (var names in query)
          Console.WriteLine ("FirstName: " + names.FirstName);
  }
  </code></pre>
  
  <p>Here is my class Data.cs</p>
  
  <pre><code>using System;
  
  namespace DB
  {
      public class Data
      {
          public int ID { get; set; }
          public string FirstName { get; set; }
          public string LastName { get; set; }
          public Data ()
          {
          }
      }
  }
  </code></pre>
  
  <p>Need to assign the results using the above class.Please help me.</p>