PetaPoco の Web サイトにある例では、クラスを装飾する方法は次のとおりです。
[PetaPoco.TableName("articles")]
[PetaPoco.PrimaryKey("article_id")]
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; }
}
しかし、テーブルの記事が 2 つの列を持つようにモデル化されていると仮定します: article_id と title を (article_id だけでなく) 主キーとして持つと、PetaPoco の装飾はどのように見えるでしょうか。