什么是WCF服务参考.datasource文件? [英] What are the WCF Service Reference .datasource files?

查看:259
本文介绍了什么是WCF服务参考.datasource文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中由创建服务引用自动生成的.datasource文件是什么?该文件中的注释是这样的:

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


此文件由Visual Studio .Net自动生成

用于存储通用对象数据源配置信息。

重命名文件扩展名或编辑此文件的内容可能

导致文件无法识别程序。

This file is automatically generated by Visual Studio .Net. It is used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.

然而,这听起来像这些文件是可选的,所以我想知道它们是用于什么。我也想知道删除它们是否真的是安全的,因为它们经常会导致XP上的路径长度问题。

However, it sounds like these files are optional, so I'm wondering what they are used for. I'm also wondering if it is truly safe to delete them, since they often cause path length problems on XP.

http://www.eggheadcafe.com/conversation.aspx?messageid=34104031&threadid=34104026

任何人都可以指出这些文件的官方MS文档?

Can anyone point me to some official MS documentation on these files?

推荐答案

据我所知,它们只是生成的,以便您可以使用服务中使用的数据合约作为数据绑定与UI控件的对象数据源。

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.

这篇关于什么是WCF服务参考.datasource文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆