title: SQLite - using Count() to get row count - then use conditional
body: <p>EDIT3:
  I found the answer. I thank everyone for his help! It was kind of stupid, but everyone makes these mistakes sometimes, I guess.</p>
  
  <p>Question:</p>
  
  <p>I'm using Xamarin for Android and the Sqlite-net Nuget for SQL and have the following Code</p>
  
  <pre><code>    protected void settingTags() {
  
          using (var connection = new SQLiteConnection (dbPath)) {
  
              var rowCount = connection.Table&lt;User&gt; ().Count ();
  
              if (rowCount &lt;= 1) {
                  // Setting the column "Person" of "Row where Primary Key is
                  // "1" to the variable "person" in the table "User"
  
                  // This gets the Row where the primary key attribute 
                  // is "1"
                  var presentUser = connection.Get&lt;User&gt; (1);
  
                  // This sets the column "Persons" to "persons" where
                  // person is an integer and is 1
                  presentUser.Persons = persons;
  
                  // This updates the Database
                  connection.Update (presentUser);
  
                  Log.Info (Tag, "User Data Updated");
              }
              else if (rowCount &gt; 1) {
                  for (int i = rowCount; i &gt;= 1; i--) {
                      connection.Delete(new User(){ID=i});
                  }
                  settingTags ();
              }
          }
      }
  </code></pre>
  
  <p>This gives me an empty exception Error.
  I used Breakpoints to pinpoint the error and somehow it is in the line:</p>
  
  <pre><code>            if (rowCount &lt;= 1) {
  </code></pre>
  
  <p>And of course the other conditional.</p>
  
  <p>Edit2:
  But the actual error lies in the line:</p>
  
  <pre><code>            var presentUser = connection.Get&lt;User&gt; (1);
  </code></pre>
  
  <p>I used the code as it is used in the Documentation. 
  And there is a row with the Primary Key "1" ...</p>
  
  <p>I'd really appreciate any help.
  And sorry if I used wrong tags or something like that for this question as this is my first. :s</p>
  
  <p>Edit: rowCount is 6. So it has a value.</p>