开发者

How to store PathGeometry in (SQL) database?

开发者 https://www.devze.com 2023-04-12 04:12 出处:网络
I\'ve got .net classes containing PathGeometries and need to store these in a SQL Server database. What columntype would I use and how开发者_运维知识库 do I get the PathGeometry into the column and

I've got .net classes containing PathGeometries and need to store these in a SQL Server database.

What columntype would I use and how开发者_运维知识库 do I get the PathGeometry into the column and back?


I admit, I know very little about PathGeometry, but SQL Server 2008 has a GEOMETRY spatial type that may be of use to you. Here is a link to some details on MSDN (http://msdn.microsoft.com/en-us/library/cc280487.aspx). That should be able to get you to a point where you can save the data to the database. However, my lack of knowledge about the Geometry class prevents me from being able to help you retrieve the data from the database into a Geometry object.

Hope that helps out a little.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号