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?
精彩评论