在nhibernate中设置聚簇索引 [英] Setting clustered index in nhibernate
本文介绍了在nhibernate中设置聚簇索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在nhibernate中定义一个不是id作为聚簇索引的属性,但我发现没办法这样做。
I'm trying to define a property that is not the id as a clustered index in nhibernate, yet I've found no way of doing this.
可能有人给我一个如何完成这个的指针,或者它是nhibernate目前没有的东西?
Could anyone give me a pointer of how this is done, or it is something not currently available in nhibernate?
提前致谢
推荐答案
您可以使用< database-object>
来创建索引和其他工件。
You can use <database-object>
to create indexes and other artifacts.
http:// nhibernate。 info / doc / nhibernate-reference / mapping.html#mapping-database-object
这篇关于在nhibernate中设置聚簇索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文