实体框架6.0 FULLTEXT INDEX代码优先/迁移

时间:2018-09-24 15:13:15

标签: entity-framework ef-code-first

在EF 6.0中将FULLTEXT INDEX添加到表中的列的标准方法是什么?

我已经研究了DbContext.OnModelCreating(...),但是下面的代码似乎不支持FULLTEXT索引:

    modelBuilder.Entity<Table>().Property(x => x.Column).HasColumnAnnotation(IndexAnnotation.AnnotationName, new IndexAnnotation(new IndexAttribute() { ... }));

0 个答案:

没有答案