VINILDataSet_Products.xsd 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="VINILDataSet_Products" targetNamespace="http://tempuri.org/VINILDataSet_Products.xsd" xmlns:mstns="http://tempuri.org/VINILDataSet_Products.xsd" xmlns="http://tempuri.org/VINILDataSet_Products.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">
  3. <xs:annotation>
  4. <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
  5. <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  6. <Connections>
  7. <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="VINILConnectionString_Country" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="VINILConnectionString_Country (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.proba.Properties.Settings.GlobalReference.Default.VINILConnectionString_Country" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductsTableAdapter" GeneratorDataComponentClassName="ProductsTableAdapter" Name="Products" UserDataComponentName="ProductsTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="VINILConnectionString_Country (Settings)" DbObjectName="VINIL.dbo.Products" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" 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">
  13. <DeleteCommand>
  14. <DbCommand CommandType="Text" ModifiedByUser="false">
  15. <CommandText>DELETE FROM [dbo].[Products] WHERE (([id_product] = @Original_id_product) AND ([product] = @Original_product) AND ([description] = @Original_description) AND ([price] = @Original_price) AND ([year_publishing] = @Original_year_publishing) AND ([id_country] = @Original_id_country) AND ([id_edition] = @Original_id_edition) AND ([id_genre] = @Original_id_genre) AND ([id_performer] = @Original_id_performer) AND ([id_supplier] = @Original_id_supplier))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_product" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_product" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="product" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_description" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="description" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_price" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="price" SourceColumnNullMapping="false" SourceVersion="Original" />
  21. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_year_publishing" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="year_publishing" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_country" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_country" SourceColumnNullMapping="false" SourceVersion="Original" />
  23. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_edition" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_edition" SourceColumnNullMapping="false" SourceVersion="Original" />
  24. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_genre" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_genre" SourceColumnNullMapping="false" SourceVersion="Original" />
  25. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_performer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_performer" SourceColumnNullMapping="false" SourceVersion="Original" />
  26. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
  27. </Parameters>
  28. </DbCommand>
  29. </DeleteCommand>
  30. <InsertCommand>
  31. <DbCommand CommandType="Text" ModifiedByUser="false">
  32. <CommandText>INSERT INTO [dbo].[Products] ([product], [description], [price], [year_publishing], [id_country], [id_edition], [id_genre], [id_performer], [id_supplier]) VALUES (@product, @description, @price, @year_publishing, @id_country, @id_edition, @id_genre, @id_performer, @id_supplier);
  33. SELECT id_product, product, description, price, year_publishing, id_country, id_edition, id_genre, id_performer, id_supplier FROM Products WHERE (id_product = SCOPE_IDENTITY())</CommandText>
  34. <Parameters>
  35. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@product" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="product" SourceColumnNullMapping="false" SourceVersion="Current" />
  36. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@description" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="description" SourceColumnNullMapping="false" SourceVersion="Current" />
  37. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@price" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="price" SourceColumnNullMapping="false" SourceVersion="Current" />
  38. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@year_publishing" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="year_publishing" SourceColumnNullMapping="false" SourceVersion="Current" />
  39. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_country" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_country" SourceColumnNullMapping="false" SourceVersion="Current" />
  40. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_edition" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_edition" SourceColumnNullMapping="false" SourceVersion="Current" />
  41. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_genre" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_genre" SourceColumnNullMapping="false" SourceVersion="Current" />
  42. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_performer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_performer" SourceColumnNullMapping="false" SourceVersion="Current" />
  43. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
  44. </Parameters>
  45. </DbCommand>
  46. </InsertCommand>
  47. <SelectCommand>
  48. <DbCommand CommandType="Text" ModifiedByUser="false">
  49. <CommandText>SELECT id_product, product, description, price, year_publishing, id_country, id_edition, id_genre, id_performer, id_supplier FROM dbo.Products</CommandText>
  50. <Parameters />
  51. </DbCommand>
  52. </SelectCommand>
  53. <UpdateCommand>
  54. <DbCommand CommandType="Text" ModifiedByUser="false">
  55. <CommandText>UPDATE [dbo].[Products] SET [product] = @product, [description] = @description, [price] = @price, [year_publishing] = @year_publishing, [id_country] = @id_country, [id_edition] = @id_edition, [id_genre] = @id_genre, [id_performer] = @id_performer, [id_supplier] = @id_supplier WHERE (([id_product] = @Original_id_product) AND ([product] = @Original_product) AND ([description] = @Original_description) AND ([price] = @Original_price) AND ([year_publishing] = @Original_year_publishing) AND ([id_country] = @Original_id_country) AND ([id_edition] = @Original_id_edition) AND ([id_genre] = @Original_id_genre) AND ([id_performer] = @Original_id_performer) AND ([id_supplier] = @Original_id_supplier));
  56. SELECT id_product, product, description, price, year_publishing, id_country, id_edition, id_genre, id_performer, id_supplier FROM Products WHERE (id_product = @id_product)</CommandText>
  57. <Parameters>
  58. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@product" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="product" SourceColumnNullMapping="false" SourceVersion="Current" />
  59. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@description" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="description" SourceColumnNullMapping="false" SourceVersion="Current" />
  60. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@price" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="price" SourceColumnNullMapping="false" SourceVersion="Current" />
  61. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@year_publishing" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="year_publishing" SourceColumnNullMapping="false" SourceVersion="Current" />
  62. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_country" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_country" SourceColumnNullMapping="false" SourceVersion="Current" />
  63. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_edition" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_edition" SourceColumnNullMapping="false" SourceVersion="Current" />
  64. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_genre" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_genre" SourceColumnNullMapping="false" SourceVersion="Current" />
  65. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_performer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_performer" SourceColumnNullMapping="false" SourceVersion="Current" />
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
  67. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_product" SourceColumnNullMapping="false" SourceVersion="Original" />
  68. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_product" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="product" SourceColumnNullMapping="false" SourceVersion="Original" />
  69. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_description" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="description" SourceColumnNullMapping="false" SourceVersion="Original" />
  70. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_price" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="price" SourceColumnNullMapping="false" SourceVersion="Original" />
  71. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_year_publishing" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="year_publishing" SourceColumnNullMapping="false" SourceVersion="Original" />
  72. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_country" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_country" SourceColumnNullMapping="false" SourceVersion="Original" />
  73. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_edition" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_edition" SourceColumnNullMapping="false" SourceVersion="Original" />
  74. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_genre" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_genre" SourceColumnNullMapping="false" SourceVersion="Original" />
  75. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_performer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_performer" SourceColumnNullMapping="false" SourceVersion="Original" />
  76. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
  77. <Parameter AllowDbNull="false" AutogeneratedName="id_product" ColumnName="id_product" DataSourceName="VINIL.dbo.Products" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_product" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_product" SourceColumnNullMapping="false" SourceVersion="Current" />
  78. </Parameters>
  79. </DbCommand>
  80. </UpdateCommand>
  81. </DbSource>
  82. </MainSource>
  83. <Mappings>
  84. <Mapping SourceColumn="id_product" DataSetColumn="id_product" />
  85. <Mapping SourceColumn="product" DataSetColumn="product" />
  86. <Mapping SourceColumn="description" DataSetColumn="description" />
  87. <Mapping SourceColumn="price" DataSetColumn="price" />
  88. <Mapping SourceColumn="year_publishing" DataSetColumn="year_publishing" />
  89. <Mapping SourceColumn="id_country" DataSetColumn="id_country" />
  90. <Mapping SourceColumn="id_edition" DataSetColumn="id_edition" />
  91. <Mapping SourceColumn="id_genre" DataSetColumn="id_genre" />
  92. <Mapping SourceColumn="id_performer" DataSetColumn="id_performer" />
  93. <Mapping SourceColumn="id_supplier" DataSetColumn="id_supplier" />
  94. </Mappings>
  95. <Sources />
  96. </TableAdapter>
  97. </Tables>
  98. <Sources />
  99. </DataSource>
  100. </xs:appinfo>
  101. </xs:annotation>
  102. <xs:element name="VINILDataSet_Products" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="VINILDataSet_Products" msprop:Generator_DataSetName="VINILDataSet_Products">
  103. <xs:complexType>
  104. <xs:choice minOccurs="0" maxOccurs="unbounded">
  105. <xs:element name="Products" msprop:Generator_RowEvHandlerName="ProductsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductsRowDeleted" msprop:Generator_RowDeletingName="ProductsRowDeleting" msprop:Generator_RowEvArgName="ProductsRowChangeEvent" msprop:Generator_TablePropName="Products" msprop:Generator_RowChangedName="ProductsRowChanged" msprop:Generator_RowChangingName="ProductsRowChanging" msprop:Generator_TableClassName="ProductsDataTable" msprop:Generator_RowClassName="ProductsRow" msprop:Generator_TableVarName="tableProducts" msprop:Generator_UserTableName="Products">
  106. <xs:complexType>
  107. <xs:sequence>
  108. <xs:element name="id_product" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_product" msprop:Generator_ColumnPropNameInTable="id_productColumn" msprop:Generator_ColumnVarNameInTable="columnid_product" msprop:Generator_UserColumnName="id_product" type="xs:int" />
  109. <xs:element name="product" msprop:Generator_ColumnPropNameInRow="product" msprop:Generator_ColumnPropNameInTable="productColumn" msprop:Generator_ColumnVarNameInTable="columnproduct" msprop:Generator_UserColumnName="product">
  110. <xs:simpleType>
  111. <xs:restriction base="xs:string">
  112. <xs:maxLength value="30" />
  113. </xs:restriction>
  114. </xs:simpleType>
  115. </xs:element>
  116. <xs:element name="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_UserColumnName="description">
  117. <xs:simpleType>
  118. <xs:restriction base="xs:string">
  119. <xs:maxLength value="30" />
  120. </xs:restriction>
  121. </xs:simpleType>
  122. </xs:element>
  123. <xs:element name="price" msprop:Generator_ColumnPropNameInRow="price" msprop:Generator_ColumnPropNameInTable="priceColumn" msprop:Generator_ColumnVarNameInTable="columnprice" msprop:Generator_UserColumnName="price" type="xs:double" />
  124. <xs:element name="year_publishing" msprop:Generator_ColumnPropNameInRow="year_publishing" msprop:Generator_ColumnPropNameInTable="year_publishingColumn" msprop:Generator_ColumnVarNameInTable="columnyear_publishing" msprop:Generator_UserColumnName="year_publishing">
  125. <xs:simpleType>
  126. <xs:restriction base="xs:string">
  127. <xs:maxLength value="30" />
  128. </xs:restriction>
  129. </xs:simpleType>
  130. </xs:element>
  131. <xs:element name="id_country" msprop:Generator_ColumnPropNameInRow="id_country" msprop:Generator_ColumnPropNameInTable="id_countryColumn" msprop:Generator_ColumnVarNameInTable="columnid_country" msprop:Generator_UserColumnName="id_country" type="xs:int" />
  132. <xs:element name="id_edition" msprop:Generator_ColumnPropNameInRow="id_edition" msprop:Generator_ColumnPropNameInTable="id_editionColumn" msprop:Generator_ColumnVarNameInTable="columnid_edition" msprop:Generator_UserColumnName="id_edition" type="xs:int" />
  133. <xs:element name="id_genre" msprop:Generator_ColumnPropNameInRow="id_genre" msprop:Generator_ColumnPropNameInTable="id_genreColumn" msprop:Generator_ColumnVarNameInTable="columnid_genre" msprop:Generator_UserColumnName="id_genre" type="xs:int" />
  134. <xs:element name="id_performer" msprop:Generator_ColumnPropNameInRow="id_performer" msprop:Generator_ColumnPropNameInTable="id_performerColumn" msprop:Generator_ColumnVarNameInTable="columnid_performer" msprop:Generator_UserColumnName="id_performer" type="xs:int" />
  135. <xs:element name="id_supplier" msprop:Generator_ColumnPropNameInRow="id_supplier" msprop:Generator_ColumnPropNameInTable="id_supplierColumn" msprop:Generator_ColumnVarNameInTable="columnid_supplier" msprop:Generator_UserColumnName="id_supplier" type="xs:int" />
  136. </xs:sequence>
  137. </xs:complexType>
  138. </xs:element>
  139. </xs:choice>
  140. </xs:complexType>
  141. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  142. <xs:selector xpath=".//mstns:Products" />
  143. <xs:field xpath="mstns:id_product" />
  144. </xs:unique>
  145. </xs:element>
  146. </xs:schema>