テーブルが正しいインデックスを持つように、ServiceStack.DataAnnotations の属性を使用して POCO のプロパティをマークしようとしていますが、うまくいかないようです。
私のPOCO:
public class AlfaTo
{
[ServiceStack.DataAnnotations.Index(Unique = true)]
[ServiceStack.DataAnnotations.AutoIncrement]
public long id { get; set; }
[ServiceStack.DataAnnotations.Index(Unique = false)]
public string protocol { get; set; }
[ServiceStack.DataAnnotations.Index(Unique = false)]
public DateTime timestamp_created { get; set; }
public DateTime timestamp_receivedServer { get; set; }
public string data { get; set; }
[ServiceStack.DataAnnotations.Index(Unique = false)]
public long responseId { get; set; }
}
テーブルを作成するコード:
dbConnCommOrm.CreateTableIfNotExists<AlfaTo>();
結果は、作成されたのは「Id」の PrimaryKey だけであり、他には何もないことを示しています。
ここで何が欠けていますか?