Guest User

Untitled

a guest
Apr 14th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.72 KB | None | 0 0
  1. Failed to generate code. Object reference not set to an instance of an object.
  2.  
  3. Erro no DataSet.xsd.
  4.  
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <xs:schema id="gestservicesbd_oficinaDataSet" targetNamespace="http://tempuri.org/gestservicesbd_oficinaDataSet.xsd" xmlns:mstns="http://tempuri.org/gestservicesbd_oficinaDataSet.xsd" xmlns="http://tempuri.org/gestservicesbd_oficinaDataSet.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">
  7. <xs:annotation>
  8. <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
  9. <DataSource DefaultConnectionIndex="3" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  10. <Connections>
  11. <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="gestservicesbd_oficinaConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="gestservicesbd_oficinaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.GestServices.Properties.Settings.GlobalReference.Default.gestservicesbd_oficinaConnectionString" Provider="MySql.Data.MySqlClient" />
  12. <Connection ConnectionStringObject="server=localhost;user id=root;database=gestservicesbd_oficina;password=820630;persistsecurityinfo=True" IsAppSettingsProperty="false" Modifier="Assembly" Name="localhost(gestservicesbd_oficina)" ParameterPrefix="@" Provider="MySql.Data.MySqlClient" />
  13. </Connections>
  14. <Tables>
  15. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="clientesTableAdapter" GeneratorDataComponentClassName="clientesTableAdapter" Name="clientes" UserDataComponentName="clientesTableAdapter">
  16. <MainSource>
  17. <DbSource ConnectionRef="localhost(gestservicesbd_oficina)" DbObjectName="gestservicesbd_oficina.clientes" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  18. <DeleteCommand>
  19. <DbCommand CommandType="Text" ModifiedByUser="false">
  20. <CommandText>DELETE FROM `clientes` WHERE ((`idcliente` = @p1) AND ((@p2 = 1 AND `nome` IS NULL) OR (`nome` = @p3)) AND ((@p4 = 1 AND `telefone` IS NULL) OR (`telefone` = @p5)) AND ((@p6 = 1 AND `codigopostal` IS NULL) OR (`codigopostal` = @p7)) AND ((@p8 = 1 AND `email` IS NULL) OR (`email` = @p9)) AND ((@p10 = 1 AND `nif` IS NULL) OR (`nif` = @p11)) AND ((@p12 = 1 AND `telemovel` IS NULL) OR (`telemovel` = @p13)) AND ((@p14 = 1 AND `localidade` IS NULL) OR (`localidade` = @p15)))</CommandText>
  21. <Parameters>
  22. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="idcliente" SourceColumnNullMapping="false" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="nome" SourceColumnNullMapping="true" SourceVersion="Original" />
  24. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nome" SourceColumnNullMapping="false" SourceVersion="Original" />
  25. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="telefone" SourceColumnNullMapping="true" SourceVersion="Original" />
  26. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="telefone" SourceColumnNullMapping="false" SourceVersion="Original" />
  27. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p6" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="codigopostal" SourceColumnNullMapping="true" SourceVersion="Original" />
  28. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p7" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="codigopostal" SourceColumnNullMapping="false" SourceVersion="Original" />
  29. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p8" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="true" SourceVersion="Original" />
  30. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p9" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Original" />
  31. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p10" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="nif" SourceColumnNullMapping="true" SourceVersion="Original" />
  32. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p11" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nif" SourceColumnNullMapping="false" SourceVersion="Original" />
  33. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p12" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="telemovel" SourceColumnNullMapping="true" SourceVersion="Original" />
  34. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p13" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="telemovel" SourceColumnNullMapping="false" SourceVersion="Original" />
  35. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p14" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="localidade" SourceColumnNullMapping="true" SourceVersion="Original" />
  36. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p15" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="localidade" SourceColumnNullMapping="false" SourceVersion="Original" />
  37. </Parameters>
  38. </DbCommand>
  39. </DeleteCommand>
  40. <InsertCommand>
  41. <DbCommand CommandType="Text" ModifiedByUser="false">
  42. <CommandText>INSERT INTO `clientes` (`nome`, `telefone`, `morada`, `codigopostal`, `email`, `nif`, `telemovel`, `localidade`, `obs`) VALUES (@p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9)</CommandText>
  43. <Parameters>
  44. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nome" SourceColumnNullMapping="false" SourceVersion="Current" />
  45. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="telefone" SourceColumnNullMapping="false" SourceVersion="Current" />
  46. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Text" Scale="0" Size="0" SourceColumn="morada" SourceColumnNullMapping="false" SourceVersion="Current" />
  47. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="codigopostal" SourceColumnNullMapping="false" SourceVersion="Current" />
  48. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
  49. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p6" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="nif" SourceColumnNullMapping="false" SourceVersion="Current" />
  50. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p7" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="telemovel" SourceColumnNullMapping="false" SourceVersion="Current" />
  51. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p8" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="localidade" SourceColumnNullMapping="false" SourceVersion="Current" />
  52. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@p9" Precision="0" ProviderType="Text" Scale="0" Size="0" SourceColumn="obs" SourceColumnNullMapping="false" SourceVersion="Current" />
  53. </Parameters>
  54. </DbCommand>
  55. </InsertCommand>
  56. <SelectCommand>
  57. <DbCommand CommandType="Text" ModifiedByUser="true">
  58. <CommandText>SELECT idcliente, nome, telefone, morada, codigopostal, email, nif, telemovel, localidade, obs
  59. FROM clientes
  60. WHERE idcliente >= 0</CommandText>
  61. <Parameters />
  62. </DbCommand>
  63. </SelectCommand>
Add Comment
Please, Sign In to add comment