开发者

What is the Best Way to Perform Geo Spatial Searches with Entity Framework Code First CTP 5?

开发者 https://www.devze.com 2023-02-09 12:54 出处:网络
I\'d really like to 开发者_开发知识库give Entity Framework 4 Code First CTP a try with a greenfield app but I want to make sure that geo spatial searches will not be a problem before I do, or I\'ll go

I'd really like to 开发者_开发知识库give Entity Framework 4 Code First CTP a try with a greenfield app but I want to make sure that geo spatial searches will not be a problem before I do, or I'll go another route.

Has anyone performed a geo-spatial search with EF CF? If so, how did you do it and why?


It's a problem insofar as it's not supported in L2E. But you can write a proc which returns the right results, and consume that with L2E.

I think NerdDinner has an example of this.

Edited to add: You can also use straight SQL in EF 4 without a proc.

0

精彩评论

暂无评论...
验证码 换一张
取 消