c# - SQL Server 2008 中的空间数据/地理、OR 映射器和 C#

标签 c# entity-framework sql-server-2008 spatial

我正在用 C# 开发一个应用程序,它将使用 SQL Server 2008 中的“地理”数据类型来使用和存储地理位置。我计划使用 Entity Framework ,但很快发现它不支持空间数据。有没有人有使用过或知道其他具有空间支持的 OR 映射器的经验?

系统将对地理数据进行少量写入和多次读取。 从 C# 读取/写入空间/地理数据的好方法/首选方法是什么?

最佳答案

您可能想查看以下 Stack Overflow 帖子:

此外,您可能也有兴趣查看SketchPad。来自 MSDN 代码库及其博客文章 SketchPad: A Simple Drawing Editor .

SketchPad is a simple drawing editor that allows you to create elementary geometric shapes, and model them as entities using either the Entity Framework or LINQ to SQL. You can create, read, and delete shapes, and use the built-in spatial index to search for entities by attribute value.

关于c# - SQL Server 2008 中的空间数据/地理、OR 映射器和 C#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1967567/

相关文章:

entity-framework - 从 Entity Framework 映射到自定义域模型类?

t-sql - SQL Server 将列转换为标识列

sql-server - 嵌套的插入exec解决

asp.net - 对数据库的访问进行队列以避免多个缓存项

c# - 如何在避免间接调用的同时编写泛型代码?

c# - Graphics.DrawString与TextRenderer.DrawText?哪些可以提供更好的质量

c# - C# 中最常见的命名约定是什么?

c# - 如何使用 Windows 身份验证防止重复的 HTTP 请求

entity-framework - 组织 EF4 数据层?

c# Entity Framework 选择派生子项