我很确定我想使用SqlGeometry数据类型在数据库中存储一堆多边形。 SqlGeometry类型是否可以与C#和WPF互操作。您可以直接将SqlGeometry强制转换为Shape或Path吗?
其次,是否可以在单个SqlGeometry列中存储多个1个多边形?
最佳答案
此链接显示了如何在C#中直观地查看SqlGeometry:
http://www.codeproject.com/KB/database/sqlgeometry.aspx
此链接显示了如何在C#中操作SqlGeometry数据类型:
http://www.nickharris.net/tag/geometry-data-type/
关于每个SqlGemotry列中的多个多边形,我认为您不能按以下方式执行此操作:http://barendgehrels.blogspot.com/2011_04_01_archive.html将多几何转换为SqlGeometry列表。
关于c# - C#和SQLGeometry:结合数据库行和WPF,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6366432/