Linq2Sql 或 EF4 中的空间数据类型支持 [英] Spatial data types support in Linq2Sql or EF4
问题描述
有谁知道(最好有参考),LinqToSQL 或 EntityFramework v4 的 VS2010 版本是否会支持对 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 中,您或许可以使用 自定义函数 并假装空间类型实际上是二进制类型.这是我正在考虑使用并尝试并添加到 我的提示系列.但到目前为止,即使是黑客也未经证实.:(
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 中的空间数据类型支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!