XML模式编译错误 - 智能感知不可用

时间:2015-07-06 18:24:38

标签: c# xml vb.net

我遇到了以下XML验证错误(翻译成英文)):

The attribute 'http://tempuri.org/S...imSetting.xsd:forms_Id' is ignored because the 'prohibited' value of the attribute 'use' is preventing the inheritance of a'use' attribute of the same name starting from the definition of the base type.

当我执行使用此xds的应用程序时,我看到以下警告消息(将其翻译为英语):

"Errors have been produced during the XML schema compilation of the project.  That is the reason that XML intellisense is not available".  Then it indicated the *.xsd file path

当我点击警告消息时,它会再生成6个验证错误。当我找到其中一个的来源(在xds文件中)时,它指向下面的一个:

<xs:attribute name="forms_Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="forms_Id" msprop:Generator_ColumnPropNameInRow="forms_Id" msprop:Generator_ColumnVarNameInTable="columnforms_Id" msprop:Generator_ColumnPropNameInTable="forms_IdColumn" type="xs:int" msdata:AllowDBNull="false" use="prohibited" />

在xds文件中,它看起来如下(只有50多页xml文件大小的前几个喜欢:

"<xs:schema id="MySetting" targetNamespace="http://tempuri.org/S...MySetting.xsd" xmlns:mstns="http://tempuri.org/S...MySetting.xsd" xmlns="http://tempuri.org/S...MySetting.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" msdata:schemafragmentcount="2">
  <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 />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="MySetting" msdata:IsDataSet="true""

考虑到这些警告,将软件(独立)部署到客户端有什么风险?

对于架构的设计,我使用了以下关系:

-
名称:forms_eff
父表:表格
子表:eff
列键:form_id
外部列键:form_id

关系选项:
外键的关系和约束
级联
级联

检查嵌套关系

任何人都可以帮助修改代码/架构设计吗?

0 个答案:

没有答案
相关问题