问题描述
有人知道(理想情况下带有参考),VS2010版本的LinqToSQL或EntityFramework v4是否支持对SQL 2008空间数据类型的查询?
Does anyone know (ideally, with a reference), whether the VS2010 release of LinqToSQL or EntityFramework v4 will support queries over the SQL 2008 spatial data types?
推荐答案
在EF 4.0中,您可以结合使用自定义函数并假装空间类型实际上是Binary类型.这是我正在考虑的事情,然后尝试并添加到我的提示系列.但是到目前为止,这种黑客攻击还没有得到证实. :(
In EF 4.0 you might be able to hack something together using a combination of custom functions and pretending the spatial types are really Binary types. This is something that I am thinking of mucking around with and trying out and adding to my tips series. But as yet even the hack is unproven. :(
对于直接支持,不幸的是L2S或EF v4都不支持VS2010时间范围内的空间类型.
And as for direct support, unfortunately neither L2S or EF v4 will support spatial types in the VS2010 timeframe.
实体框架程序管理器.
这篇关于Linq2Sql或EF4中的空间数据类型支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!