123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <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="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" />
- </Connections>
- <Tables>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductsTableAdapter" GeneratorDataComponentClassName="ProductsTableAdapter" Name="Products" UserDataComponentName="ProductsTableAdapter">
- <MainSource>
- <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">
- <DeleteCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <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>
- <Parameters>
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <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);
- 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>
- <Parameters>
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>SELECT id_product, product, description, price, year_publishing, id_country, id_edition, id_genre, id_performer, id_supplier FROM dbo.Products</CommandText>
- <Parameters />
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <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));
- 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>
- <Parameters>
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="id_product" DataSetColumn="id_product" />
- <Mapping SourceColumn="product" DataSetColumn="product" />
- <Mapping SourceColumn="description" DataSetColumn="description" />
- <Mapping SourceColumn="price" DataSetColumn="price" />
- <Mapping SourceColumn="year_publishing" DataSetColumn="year_publishing" />
- <Mapping SourceColumn="id_country" DataSetColumn="id_country" />
- <Mapping SourceColumn="id_edition" DataSetColumn="id_edition" />
- <Mapping SourceColumn="id_genre" DataSetColumn="id_genre" />
- <Mapping SourceColumn="id_performer" DataSetColumn="id_performer" />
- <Mapping SourceColumn="id_supplier" DataSetColumn="id_supplier" />
- </Mappings>
- <Sources />
- </TableAdapter>
- </Tables>
- <Sources />
- </DataSource>
- </xs:appinfo>
- </xs:annotation>
- <xs:element name="VINILDataSet_Products" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="VINILDataSet_Products" msprop:Generator_DataSetName="VINILDataSet_Products">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <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">
- <xs:complexType>
- <xs:sequence>
- <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" />
- <xs:element name="product" msprop:Generator_ColumnPropNameInRow="product" msprop:Generator_ColumnPropNameInTable="productColumn" msprop:Generator_ColumnVarNameInTable="columnproduct" msprop:Generator_UserColumnName="product">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="30" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_UserColumnName="description">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="30" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="price" msprop:Generator_ColumnPropNameInRow="price" msprop:Generator_ColumnPropNameInTable="priceColumn" msprop:Generator_ColumnVarNameInTable="columnprice" msprop:Generator_UserColumnName="price" type="xs:double" />
- <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">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="30" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <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" />
- <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" />
- <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" />
- <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" />
- <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" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:choice>
- </xs:complexType>
- <xs:unique name="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Products" />
- <xs:field xpath="mstns:id_product" />
- </xs:unique>
- </xs:element>
- </xs:schema>
|