开发者

WCF DataService "Time" datatype problem

I'm trying to expose data from SQL Server database by Entity Framework plus WCF DataService. All is ok as lon开发者_开发知识库g as I don't add a table with a field of "Time" datatype to the EF model. In this case I get a runtime error:

The property 'Time' on type 'XXX' is of type 'Time' which is not a supported primitive type

Is there a fix for this issue or should I use a traditional web service in this case?


Answered here: How do I expose a TimeSpan through a WCF Data Service?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜