[英]How to read / write geography data using C#, Entity Framework and SQL Server 2008?
I have a form from which the user will be able to enter the latitude and longitude of a certain point on the map. 我有一个表单,用户可以从中输入地图上某个点的纬度和经度。 The data will be input as string values.
数据将作为字符串值输入。 I did some research and found out from various sources that the Entity Framework doesn't support geography data types.
我做了一些研究,并从各种渠道发现实体框架不支持地理数据类型。
Thanks in advance! 提前致谢!
In fact Entity Framework 5 components that are shipped with .NET Framework 4.5 do support spatial types. 事实上,.NET Framework 4.5附带的Entity Framework 5组件确实支持空间类型。 Take a look at this walkthrough .
看看这个演练 。
EDIT With EF6 you can use spatial types on both .NET Framework 4 and .NET Framework 4.5 编辑使用EF6,您可以在.NET Framework 4和.NET Framework 4.5上使用空间类型
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.