能够在ServiceStack / ORMLite codefirst中创建聚簇索引

时间:2014-02-06 17:15:57

标签: mysql servicestack ormlite-servicestack

我以为我在ServiceStack 4发行说明中看到了它,但搜索失败了。对于ServiceStack,ORMLite是否能够首先在代码中创建聚簇索引?

1 个答案:

答案 0 :(得分:2)

是。

public class Poco
{
    [Index(Clustered=true)]
    public string Field1 { get; set; }

    public string Field2 { get; set; }
}