What are the WCF Service Reference .datasource files?

后端 未结 4 1887
你的背包
你的背包 2020-12-02 21:34

What are the .datasource files that are automatically generated by \"Create Service Reference\" in Visual Studio? The comment in the file is this:

Th

相关标签:
4条回答
  • 2020-12-02 22:11

    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.

    0 讨论(0)
  • 2020-12-02 22:14

    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

    0 讨论(0)
  • 2020-12-02 22:21

    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.

    0 讨论(0)
  • 2020-12-02 22:26

    Expand your Reference.svcmap from visual studio.

    Update reference.

    And delete yellow warning datasources.

    0 讨论(0)
提交回复
热议问题