Linq2Sql或EF4中的空间数据类型支持 [英] Spatial data types support in Linq2Sql or EF4

查看:76
本文介绍了Linq2Sql或EF4中的空间数据类型支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道(理想情况下带有参考),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中,您可以结合使用我的提示系列.但是到目前为止,这种黑客攻击还没有得到证实. :(

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆