Entity Framework Filter Index

后端 未结 3 850
余生分开走
余生分开走 2020-12-03 05:03

I use EF 6.1.x Code First.

I have read that an Index with Filter Expression is not supported by EF latest.

There is also no solution on SO:

EF 6.1 Un

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 05:27

    Please note that right now EF core 2.1.X added built in support for filtered indexes via the HasFilter extension on the IndexBuilder, so a custom implementation is not required anymore.

    See this for more details

提交回复
热议问题