【发布时间】:2010-01-05 21:45:08
【问题描述】:
我在一个使用 Visual Studio 2008 Sp1 的 erp 项目中工作,我有一个类型化的数据集,它包含很多数据表和很多表适配器,.Designer.cs 文件是 8 MB,突然当我试图使用 Visual Studio 设计器打开它,我得到以下代码
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="erpDataSet" targetNamespace="http://tempuri.org/erpDataSet1.xsd" xmlns:mstns="http://tempuri.org/erpDataSet1.xsd" xmlns="http://tempuri.org/erpDataSet1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="erpConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="erpConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Sbic.Pro
我的 XSD 文件内容已消失,:( :( :( 我不明白为什么,我怎样才能恢复它。 我生气了,但我不知道这是否是原因,我的连接字符串在设置“app.config”中,我将其删除并将其添加到主项目引用的另一个项目的资源中。
我该怎么办,请帮帮我。
【问题讨论】:
-
您确实有该文件的备份,对吗?在源代码控制系统或类似的东西中......
-
好吧,我不过是个老头
标签: xsd strongly-typed-dataset