Query returns always same result on WP7

Feb 6, 2011 at 2:06 PM

I have TaskCategory table registered in my WP7 app which has 3 records, when I query the table with following code.

It always returns last inserted record three times. Is it bug or am I doing something wrong?

var items = _database.Query<TaskCategory, int>();
foreach (var item in items)
{
      Debug.WriteLine(item.LazyValue.Value);
}

Feb 6, 2011 at 3:55 PM

I had similar issues. Make sure you click on the "Source Code" tab above and get the latest version. That fixed the problem for me.