【发布时间】:2021-08-02 16:49:00
【问题描述】:
如何在 Efcore fluent api 中为 pgsql db 指定索引类型为“hash”?
例如:
modelBuilder.Entity().HasIndex(u => u.PId).IsUnique();
是否有任何特定于接受索引类型的 pgsql 的扩展方法?正在创建的默认索引类型是“btree”。
【问题讨论】:
标签: postgresql entity-framework-core ef-code-first ef-fluent-api