PetaPocoを使用して、次のようなフェッチを実行しています。
var result=db.Page<article>(1, 20, // <-- page number and items per page
"SELECT * FROM articles WHERE category=@0 ORDER BY date_posted DESC", "coolstuff");
ここで、記事は次のように定義されます
public class article
{
public long article_id { get; set; }
public string title { get; set; }
public DateTime date_created { get; set; }
public bool draft { get; set; }
public string content { get; set; }
}
ただし、result.TotalItemsには正しい数値が表示されますが、result.Itemsには何も含まれていません。クラス記事の定義をで飾ってみました
[PetaPoco.TableName("articles")]
[PetaPoco.PrimaryKey("article_id")]
および明示的な列マッピング
[PetaPoco.Column]
しかし、結果は常に同じです。バグはありますか、それとも私は何を間違っていますか?