What are the WCF Service Reference .datasource files?

懵懂的女人 提交于 2019-11-27 12:57:54

As far as I remember, they are just generated so that you can use the data contracts used in the service as object data sources for data binding against UI controls.

The .datasource files are optional, but they can be used in your client app to easily bind a data contract to a ui control. Here is an article explaining how to use them:

http://msdn.microsoft.com/en-us/library/ee373840.aspx

I was able to delete them from one of our projects. Project built fine, and loaded stuff from the database fine, so I'm assuming it was safe. I would like to hear someone who knows more about them weigh in on this element of the subject though.

Expand your Reference.svcmap from visual studio.

Update reference.

And delete yellow warning datasources.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!