简体   繁体   English

DbGeography +实体框架5 + Silverlight + DomainService

[英]DbGeography + entity framework 5 + Silverlight + DomainService

I have create Entity with DbGeography and add it to my Domainservice. 我已经使用DbGeography创建了Entity并将其添加到我的Domainservice中。 But my SL app didn't see this filed. 但是我的SL应用程序没有看到此文件。 How can I use DbGeography in SL5 app? 如何在SL5应用中使用DbGeography?

Unfortunately, you can't use DbGeography in Silverlight. 不幸的是,您不能在Silverlight中使用DbGeography。 It's not supported. 不支持。 You'll have to convert the DbGeography to a string (Well Known Text), a byte[] (Well Known Binary), or your own custom representation and work with it in that format within the Silverlight application. 您必须将DbGeography转换为字符串(知名文本),byte [](知名二进制)或您自己的自定义表示形式,并在Silverlight应用程序中以该格式使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM