Index on Spatial / DBGeography Property for Entity Framework Code First

血红的双手。 提交于 2019-12-07 02:28:46

问题


I have an EF (6.1) code first project and one of its model has a DbGeography Property (which will contain only POINT geographies) which I'll perform queries against.

I declare custom indices following the official guide, however it is lacking details regarding indices for spatial members / properties and I was wondering how I can create those via Code First?

The underlying Database is / will be SQL Server 2012 if that plays any role.


回答1:


Could not comment.

Practically same question here.

Apparently it cannot be done.



来源:https://stackoverflow.com/questions/25494004/index-on-spatial-dbgeography-property-for-entity-framework-code-first

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!