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

查看:17
本文介绍了什么是 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天全站免登陆