<?xml version="1.0" encoding="utf-8"?> <xs:schema id="Yurevich_INTERNET_PRODAZHIDataSet" targetNamespace="http://tempuri.org/Yurevich_INTERNET_PRODAZHIDataSet.xsd" xmlns:mstns="http://tempuri.org/Yurevich_INTERNET_PRODAZHIDataSet.xsd" xmlns="http://tempuri.org/Yurevich_INTERNET_PRODAZHIDataSet.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="Yurevich_INTERNET_PRODAZHIConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Yurevich_INTERNET_PRODAZHIConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Yurevich_InternetProdazhi.Properties.Settings.GlobalReference.Default.Yurevich_INTERNET_PRODAZHIConnectionString" Provider="System.Data.SqlClient" /> </Connections> <Tables> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ДоставкаTableAdapter" GeneratorDataComponentClassName="ДоставкаTableAdapter" Name="Доставка" UserDataComponentName="ДоставкаTableAdapter"> <MainSource> <DbSource ConnectionRef="Yurevich_INTERNET_PRODAZHIConnectionString (Settings)" DbObjectName="Yurevich_INTERNET_PRODAZHI.dbo.Доставка" 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].[Доставка] WHERE (([Код_заказа] = @Original_Код_заказа) AND ((@IsNull_Дата_доставки = 1 AND [Дата_доставки] IS NULL) OR ([Дата_доставки] = @Original_Дата_доставки)) AND ((@IsNull_Время_доставки = 1 AND [Время_доставки] IS NULL) OR ([Время_доставки] = @Original_Время_доставки)))</CommandText> <Parameters> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_заказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_доставки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_доставки" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Дата_доставки" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Дата_доставки" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Время_доставки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Время_доставки" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Original_Время_доставки" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_доставки" SourceColumnNullMapping="false" SourceVersion="Original" /> </Parameters> </DbCommand> </DeleteCommand> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>INSERT INTO [dbo].[Доставка] ([Код_заказа], [Дата_доставки], [Время_доставки], [Адрес_доставки], [Ф.И.О.клиента], [Ф.И.О.курьера]) VALUES (@Код_заказа, @Дата_доставки, @Время_доставки, @Адрес_доставки, @p1, @p4); SELECT Код_заказа, Дата_доставки, Время_доставки, Адрес_доставки, [Ф.И.О.клиента], [Ф.И.О.курьера] FROM Доставка WHERE (Код_заказа = @Код_заказа)</CommandText> <Parameters> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_заказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Дата_доставки" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Дата_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Время_доставки" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес_доставки" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.курьера" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </InsertCommand> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>SELECT Код_заказа, Дата_доставки, Время_доставки, Адрес_доставки, [Ф.И.О.клиента], [Ф.И.О.курьера] FROM dbo.Доставка</CommandText> <Parameters /> </DbCommand> </SelectCommand> <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>UPDATE [dbo].[Доставка] SET [Код_заказа] = @Код_заказа, [Дата_доставки] = @Дата_доставки, [Время_доставки] = @Время_доставки, [Адрес_доставки] = @Адрес_доставки, [Ф.И.О.клиента] = @p1, [Ф.И.О.курьера] = @p4 WHERE (([Код_заказа] = @Original_Код_заказа) AND ((@IsNull_Дата_доставки = 1 AND [Дата_доставки] IS NULL) OR ([Дата_доставки] = @Original_Дата_доставки)) AND ((@IsNull_Время_доставки = 1 AND [Время_доставки] IS NULL) OR ([Время_доставки] = @Original_Время_доставки))); SELECT Код_заказа, Дата_доставки, Время_доставки, Адрес_доставки, [Ф.И.О.клиента], [Ф.И.О.курьера] FROM Доставка WHERE (Код_заказа = @Код_заказа)</CommandText> <Parameters> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_заказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Дата_доставки" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Дата_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Время_доставки" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес_доставки" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.курьера" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_заказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_доставки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_доставки" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Дата_доставки" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Дата_доставки" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Время_доставки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Время_доставки" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Original_Время_доставки" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_доставки" SourceColumnNullMapping="false" SourceVersion="Original" /> </Parameters> </DbCommand> </UpdateCommand> </DbSource> </MainSource> <Mappings> <Mapping SourceColumn="Код_заказа" DataSetColumn="Код_заказа" /> <Mapping SourceColumn="Дата_доставки" DataSetColumn="Дата_доставки" /> <Mapping SourceColumn="Время_доставки" DataSetColumn="Время_доставки" /> <Mapping SourceColumn="Адрес_доставки" DataSetColumn="Адрес_доставки" /> <Mapping SourceColumn="Ф.И.О.клиента" DataSetColumn="Ф_И_О_клиента" /> <Mapping SourceColumn="Ф.И.О.курьера" DataSetColumn="Ф_И_О_курьера" /> </Mappings> <Sources /> </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ЗаказыTableAdapter" GeneratorDataComponentClassName="ЗаказыTableAdapter" Name="Заказы" UserDataComponentName="ЗаказыTableAdapter"> <MainSource> <DbSource ConnectionRef="Yurevich_INTERNET_PRODAZHIConnectionString (Settings)" DbObjectName="Yurevich_INTERNET_PRODAZHI.dbo.Заказы" 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].[Заказы] WHERE (([Код_заказа] = @Original_Код_заказа) AND ((@IsNull_Код_магазина = 1 AND [Код_магазина] IS NULL) OR ([Код_магазина] = @Original_Код_магазина)) AND ((@IsNull_Код_товара = 1 AND [Код_товара] IS NULL) OR ([Код_товара] = @Original_Код_товара)) AND ((@IsNull_Дата_заказа = 1 AND [Дата_заказа] IS NULL) OR ([Дата_заказа] = @Original_Дата_заказа)) AND ((@IsNull_Время_заказа = 1 AND [Время_заказа] IS NULL) OR ([Время_заказа] = @Original_Время_заказа)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@p3 = 1 AND [Ф.И.О.клиента] IS NULL) OR ([Ф.И.О.клиента] = @p2)) AND ((@IsNull_Контактный_телефон = 1 AND [Контактный_телефон] IS NULL) OR ([Контактный_телефон] = @Original_Контактный_телефон)) AND ((@IsNull_Подтверждение_заказа = 1 AND [Подтверждение_заказа] IS NULL) OR ([Подтверждение_заказа] = @Original_Подтверждение_заказа)))</CommandText> <Parameters> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_заказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Код_магазина" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Код_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_заказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_заказа" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTimeOffset" Direction="Input" ParameterName="@Original_Дата_заказа" Precision="0" ProviderType="DateTimeOffset" Scale="0" Size="0" SourceColumn="Дата_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Время_заказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Время_заказа" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Original_Время_заказа" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Количество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Контактный_телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Контактный_телефон" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Контактный_телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Контактный_телефон" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Подтверждение_заказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Подтверждение_заказа" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Подтверждение_заказа" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Подтверждение_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> </Parameters> </DbCommand> </DeleteCommand> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>INSERT INTO [dbo].[Заказы] ([Код_магазина], [Код_товара], [Дата_заказа], [Время_заказа], [Количество], [Ф.И.О.клиента], [Контактный_телефон], [Подтверждение_заказа]) VALUES (@Код_магазина, @Код_товара, @Дата_заказа, @Время_заказа, @Количество, @p1, @Контактный_телефон, @Подтверждение_заказа); SELECT Код_заказа, Код_магазина, Код_товара, Дата_заказа, Время_заказа, Количество, [Ф.И.О.клиента], Контактный_телефон, Подтверждение_заказа FROM Заказы WHERE (Код_заказа = SCOPE_IDENTITY())</CommandText> <Parameters> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTimeOffset" Direction="Input" ParameterName="@Дата_заказа" Precision="0" ProviderType="DateTimeOffset" Scale="0" Size="0" SourceColumn="Дата_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Время_заказа" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Количество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Контактный_телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Контактный_телефон" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Подтверждение_заказа" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Подтверждение_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </InsertCommand> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>SELECT Код_заказа, Код_магазина, Код_товара, Дата_заказа, Время_заказа, Количество, [Ф.И.О.клиента], Контактный_телефон, Подтверждение_заказа FROM dbo.Заказы</CommandText> <Parameters /> </DbCommand> </SelectCommand> <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>UPDATE [dbo].[Заказы] SET [Код_магазина] = @Код_магазина, [Код_товара] = @Код_товара, [Дата_заказа] = @Дата_заказа, [Время_заказа] = @Время_заказа, [Количество] = @Количество, [Ф.И.О.клиента] = @p1, [Контактный_телефон] = @Контактный_телефон, [Подтверждение_заказа] = @Подтверждение_заказа WHERE (([Код_заказа] = @Original_Код_заказа) AND ((@IsNull_Код_магазина = 1 AND [Код_магазина] IS NULL) OR ([Код_магазина] = @Original_Код_магазина)) AND ((@IsNull_Код_товара = 1 AND [Код_товара] IS NULL) OR ([Код_товара] = @Original_Код_товара)) AND ((@IsNull_Дата_заказа = 1 AND [Дата_заказа] IS NULL) OR ([Дата_заказа] = @Original_Дата_заказа)) AND ((@IsNull_Время_заказа = 1 AND [Время_заказа] IS NULL) OR ([Время_заказа] = @Original_Время_заказа)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@p3 = 1 AND [Ф.И.О.клиента] IS NULL) OR ([Ф.И.О.клиента] = @p2)) AND ((@IsNull_Контактный_телефон = 1 AND [Контактный_телефон] IS NULL) OR ([Контактный_телефон] = @Original_Контактный_телефон)) AND ((@IsNull_Подтверждение_заказа = 1 AND [Подтверждение_заказа] IS NULL) OR ([Подтверждение_заказа] = @Original_Подтверждение_заказа))); SELECT Код_заказа, Код_магазина, Код_товара, Дата_заказа, Время_заказа, Количество, [Ф.И.О.клиента], Контактный_телефон, Подтверждение_заказа FROM Заказы WHERE (Код_заказа = @Код_заказа)</CommandText> <Parameters> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTimeOffset" Direction="Input" ParameterName="@Дата_заказа" Precision="0" ProviderType="DateTimeOffset" Scale="0" Size="0" SourceColumn="Дата_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Время_заказа" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Количество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Контактный_телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Контактный_телефон" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Подтверждение_заказа" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Подтверждение_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_заказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Код_магазина" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Код_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_заказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_заказа" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTimeOffset" Direction="Input" ParameterName="@Original_Дата_заказа" Precision="0" ProviderType="DateTimeOffset" Scale="0" Size="0" SourceColumn="Дата_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Время_заказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Время_заказа" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Original_Время_заказа" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Время_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Количество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Ф.И.О.клиента" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Контактный_телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Контактный_телефон" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Контактный_телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Контактный_телефон" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Подтверждение_заказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Подтверждение_заказа" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Подтверждение_заказа" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Подтверждение_заказа" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Код_заказа" ColumnName="Код_заказа" DataSourceName="Yurevich_INTERNET_PRODAZHI.dbo.Заказы" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@Код_заказа" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="Код_заказа" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </UpdateCommand> </DbSource> </MainSource> <Mappings> <Mapping SourceColumn="Код_заказа" DataSetColumn="Код_заказа" /> <Mapping SourceColumn="Код_магазина" DataSetColumn="Код_магазина" /> <Mapping SourceColumn="Код_товара" DataSetColumn="Код_товара" /> <Mapping SourceColumn="Дата_заказа" DataSetColumn="Дата_заказа" /> <Mapping SourceColumn="Время_заказа" DataSetColumn="Время_заказа" /> <Mapping SourceColumn="Количество" DataSetColumn="Количество" /> <Mapping SourceColumn="Ф.И.О.клиента" DataSetColumn="Ф_И_О_клиента" /> <Mapping SourceColumn="Контактный_телефон" DataSetColumn="Контактный_телефон" /> <Mapping SourceColumn="Подтверждение_заказа" DataSetColumn="Подтверждение_заказа" /> </Mappings> <Sources /> </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Интернет-магазиныTableAdapter" GeneratorDataComponentClassName="Интернет_магазиныTableAdapter" Name="Интернет-магазины" UserDataComponentName="Интернет-магазиныTableAdapter"> <MainSource> <DbSource ConnectionRef="Yurevich_INTERNET_PRODAZHIConnectionString (Settings)" DbObjectName="Yurevich_INTERNET_PRODAZHI.dbo.[Интернет-магазины]" 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].[Интернет-магазины] WHERE (([Код_магазина] = @Original_Код_магазина) AND ((@IsNull_Оплата_доставки = 1 AND [Оплата_доставки] IS NULL) OR ([Оплата_доставки] = @Original_Оплата_доставки)))</CommandText> <Parameters> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Оплата_доставки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Оплата_доставки" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Оплата_доставки" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Оплата_доставки" SourceColumnNullMapping="false" SourceVersion="Original" /> </Parameters> </DbCommand> </DeleteCommand> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>INSERT INTO [dbo].[Интернет-магазины] ([Электронный_адрес], [Оплата_доставки]) VALUES (@Электронный_адрес, @Оплата_доставки); SELECT Код_магазина, Электронный_адрес, Оплата_доставки FROM [Интернет-магазины] WHERE (Код_магазина = SCOPE_IDENTITY())</CommandText> <Parameters> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Электронный_адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Электронный_адрес" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Оплата_доставки" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Оплата_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </InsertCommand> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>SELECT Код_магазина, Электронный_адрес, Оплата_доставки FROM dbo.[Интернет-магазины]</CommandText> <Parameters /> </DbCommand> </SelectCommand> <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>UPDATE [dbo].[Интернет-магазины] SET [Электронный_адрес] = @Электронный_адрес, [Оплата_доставки] = @Оплата_доставки WHERE (([Код_магазина] = @Original_Код_магазина) AND ((@IsNull_Оплата_доставки = 1 AND [Оплата_доставки] IS NULL) OR ([Оплата_доставки] = @Original_Оплата_доставки))); SELECT Код_магазина, Электронный_адрес, Оплата_доставки FROM [Интернет-магазины] WHERE (Код_магазина = @Код_магазина)</CommandText> <Parameters> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Электронный_адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Электронный_адрес" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Оплата_доставки" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Оплата_доставки" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_магазина" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Оплата_доставки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Оплата_доставки" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Оплата_доставки" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Оплата_доставки" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Код_магазина" ColumnName="Код_магазина" DataSourceName="Yurevich_INTERNET_PRODAZHI.dbo.[Интернет-магазины]" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="Код_магазина" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </UpdateCommand> </DbSource> </MainSource> <Mappings> <Mapping SourceColumn="Код_магазина" DataSetColumn="Код_магазина" /> <Mapping SourceColumn="Электронный_адрес" DataSetColumn="Электронный_адрес" /> <Mapping SourceColumn="Оплата_доставки" DataSetColumn="Оплата_доставки" /> </Mappings> <Sources /> </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Магазины/ТоварыTableAdapter" GeneratorDataComponentClassName="Магазины_ТоварыTableAdapter" Name="Магазины/Товары" UserDataComponentName="Магазины/ТоварыTableAdapter"> <MainSource> <DbSource ConnectionRef="Yurevich_INTERNET_PRODAZHIConnectionString (Settings)" DbObjectName="Yurevich_INTERNET_PRODAZHI.dbo.[Магазины/Товары]" 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"> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>INSERT INTO [dbo].[Магазины/Товары] ([Код магазина], [Код товара]) VALUES (@Код_магазина, @Код_товара)</CommandText> <Parameters> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_магазина" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код магазина" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код товара" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </InsertCommand> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>SELECT [Код магазина], [Код товара] FROM dbo.[Магазины/Товары]</CommandText> <Parameters /> </DbCommand> </SelectCommand> </DbSource> </MainSource> <Mappings> <Mapping SourceColumn="Код магазина" DataSetColumn="Код магазина" /> <Mapping SourceColumn="Код товара" DataSetColumn="Код товара" /> </Mappings> <Sources /> </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ТоварыTableAdapter" GeneratorDataComponentClassName="ТоварыTableAdapter" Name="Товары" UserDataComponentName="ТоварыTableAdapter"> <MainSource> <DbSource ConnectionRef="Yurevich_INTERNET_PRODAZHIConnectionString (Settings)" DbObjectName="Yurevich_INTERNET_PRODAZHI.dbo.Товары" 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].[Товары] WHERE (([Код_товара] = @Original_Код_товара) AND ((@IsNull_Фирма = 1 AND [Фирма] IS NULL) OR ([Фирма] = @Original_Фирма)) AND ((@IsNull_Модель = 1 AND [Модель] IS NULL) OR ([Модель] = @Original_Модель)) AND ((@IsNull_Технические_характеристики = 1 AND [Технические_характеристики] IS NULL) OR ([Технические_характеристики] = @Original_Технические_характеристики)) AND ((@p3 = 1 AND [Цена(руб)] IS NULL) OR ([Цена(руб)] = @p2)) AND ((@IsNull_Гарантийный_срок = 1 AND [Гарантийный_срок] IS NULL) OR ([Гарантийный_срок] = @Original_Гарантийный_срок)))</CommandText> <Parameters> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фирма" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фирма" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фирма" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фирма" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Модель" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Модель" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Модель" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Модель" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Технические_характеристики" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Технические_характеристики" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Технические_характеристики" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Технические_характеристики" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цена(руб)" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Цена(руб)" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Гарантийный_срок" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Гарантийный_срок" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Гарантийный_срок" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Гарантийный_срок" SourceColumnNullMapping="false" SourceVersion="Original" /> </Parameters> </DbCommand> </DeleteCommand> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>INSERT INTO [dbo].[Товары] ([Название_товара], [Фирма], [Модель], [Технические_характеристики], [Цена(руб)], [Гарантийный_срок], [Изображение]) VALUES (@Название_товара, @Фирма, @Модель, @Технические_характеристики, @p1, @Гарантийный_срок, @Изображение); SELECT Код_товара, Название_товара, Фирма, Модель, Технические_характеристики, [Цена(руб)], Гарантийный_срок, Изображение FROM Товары WHERE (Код_товара = SCOPE_IDENTITY())</CommandText> <Parameters> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название_товара" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название_товара" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фирма" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фирма" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Модель" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Модель" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Технические_характеристики" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Технические_характеристики" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Цена(руб)" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Гарантийный_срок" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Гарантийный_срок" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@Изображение" Precision="0" ProviderType="Image" Scale="0" Size="0" SourceColumn="Изображение" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </InsertCommand> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>SELECT Код_товара, Название_товара, Фирма, Модель, Технические_характеристики, [Цена(руб)], Гарантийный_срок, Изображение FROM dbo.Товары</CommandText> <Parameters /> </DbCommand> </SelectCommand> <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="false"> <CommandText>UPDATE [dbo].[Товары] SET [Название_товара] = @Название_товара, [Фирма] = @Фирма, [Модель] = @Модель, [Технические_характеристики] = @Технические_характеристики, [Цена(руб)] = @p1, [Гарантийный_срок] = @Гарантийный_срок, [Изображение] = @Изображение WHERE (([Код_товара] = @Original_Код_товара) AND ((@IsNull_Фирма = 1 AND [Фирма] IS NULL) OR ([Фирма] = @Original_Фирма)) AND ((@IsNull_Модель = 1 AND [Модель] IS NULL) OR ([Модель] = @Original_Модель)) AND ((@IsNull_Технические_характеристики = 1 AND [Технические_характеристики] IS NULL) OR ([Технические_характеристики] = @Original_Технические_характеристики)) AND ((@p3 = 1 AND [Цена(руб)] IS NULL) OR ([Цена(руб)] = @p2)) AND ((@IsNull_Гарантийный_срок = 1 AND [Гарантийный_срок] IS NULL) OR ([Гарантийный_срок] = @Original_Гарантийный_срок))); SELECT Код_товара, Название_товара, Фирма, Модель, Технические_характеристики, [Цена(руб)], Гарантийный_срок, Изображение FROM Товары WHERE (Код_товара = @Код_товара)</CommandText> <Parameters> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название_товара" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название_товара" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фирма" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фирма" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Модель" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Модель" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Технические_характеристики" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Технические_характеристики" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Цена(руб)" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Гарантийный_срок" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Гарантийный_срок" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@Изображение" Precision="0" ProviderType="Image" Scale="0" Size="0" SourceColumn="Изображение" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Код_товара" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фирма" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фирма" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фирма" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фирма" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Модель" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Модель" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Модель" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Модель" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Технические_характеристики" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Технические_характеристики" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Технические_характеристики" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Технические_характеристики" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цена(руб)" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Цена(руб)" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Гарантийный_срок" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Гарантийный_срок" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Гарантийный_срок" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Гарантийный_срок" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Код_товара" ColumnName="Код_товара" DataSourceName="Yurevich_INTERNET_PRODAZHI.dbo.Товары" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@Код_товара" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="Код_товара" SourceColumnNullMapping="false" SourceVersion="Current" /> </Parameters> </DbCommand> </UpdateCommand> </DbSource> </MainSource> <Mappings> <Mapping SourceColumn="Код_товара" DataSetColumn="Код_товара" /> <Mapping SourceColumn="Название_товара" DataSetColumn="Название_товара" /> <Mapping SourceColumn="Фирма" DataSetColumn="Фирма" /> <Mapping SourceColumn="Модель" DataSetColumn="Модель" /> <Mapping SourceColumn="Технические_характеристики" DataSetColumn="Технические_характеристики" /> <Mapping SourceColumn="Цена(руб)" DataSetColumn="Цена(руб)" /> <Mapping SourceColumn="Гарантийный_срок" DataSetColumn="Гарантийный_срок" /> <Mapping SourceColumn="Изображение" DataSetColumn="Изображение" /> </Mappings> <Sources /> </TableAdapter> </Tables> <Sources /> </DataSource> </xs:appinfo> </xs:annotation> <xs:element name="Yurevich_INTERNET_PRODAZHIDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Yurevich_INTERNET_PRODAZHIDataSet" msprop:Generator_UserDSName="Yurevich_INTERNET_PRODAZHIDataSet"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Доставка" msprop:Generator_TableClassName="ДоставкаDataTable" msprop:Generator_TableVarName="tableДоставка" msprop:Generator_TablePropName="Доставка" msprop:Generator_RowDeletingName="ДоставкаRowDeleting" msprop:Generator_RowChangingName="ДоставкаRowChanging" msprop:Generator_RowEvHandlerName="ДоставкаRowChangeEventHandler" msprop:Generator_RowDeletedName="ДоставкаRowDeleted" msprop:Generator_UserTableName="Доставка" msprop:Generator_RowChangedName="ДоставкаRowChanged" msprop:Generator_RowEvArgName="ДоставкаRowChangeEvent" msprop:Generator_RowClassName="ДоставкаRow"> <xs:complexType> <xs:sequence> <xs:element name="Код_заказа" msprop:Generator_ColumnVarNameInTable="columnКод_заказа" msprop:Generator_ColumnPropNameInRow="Код_заказа" msprop:Generator_ColumnPropNameInTable="Код_заказаColumn" msprop:Generator_UserColumnName="Код_заказа" type="xs:long" /> <xs:element name="Дата_доставки" msprop:Generator_ColumnVarNameInTable="columnДата_доставки" msprop:Generator_ColumnPropNameInRow="Дата_доставки" msprop:Generator_ColumnPropNameInTable="Дата_доставкиColumn" msprop:Generator_UserColumnName="Дата_доставки" type="xs:dateTime" minOccurs="0" /> <xs:element name="Время_доставки" msprop:Generator_ColumnVarNameInTable="columnВремя_доставки" msprop:Generator_ColumnPropNameInRow="Время_доставки" msprop:Generator_ColumnPropNameInTable="Время_доставкиColumn" msprop:Generator_UserColumnName="Время_доставки" type="xs:duration" minOccurs="0" /> <xs:element name="Адрес_доставки" msprop:Generator_ColumnVarNameInTable="columnАдрес_доставки" msprop:Generator_ColumnPropNameInRow="Адрес_доставки" msprop:Generator_ColumnPropNameInTable="Адрес_доставкиColumn" msprop:Generator_UserColumnName="Адрес_доставки" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Ф_И_О_клиента" msprop:Generator_ColumnVarNameInTable="columnФ_И_О_клиента" msprop:Generator_ColumnPropNameInRow="Ф_И_О_клиента" msprop:Generator_ColumnPropNameInTable="Ф_И_О_клиентаColumn" msprop:Generator_UserColumnName="Ф_И_О_клиента" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Ф_И_О_курьера" msprop:Generator_ColumnVarNameInTable="columnФ_И_О_курьера" msprop:Generator_ColumnPropNameInRow="Ф_И_О_курьера" msprop:Generator_ColumnPropNameInTable="Ф_И_О_курьераColumn" msprop:Generator_UserColumnName="Ф_И_О_курьера" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Заказы" msprop:Generator_TableClassName="ЗаказыDataTable" msprop:Generator_TableVarName="tableЗаказы" msprop:Generator_TablePropName="Заказы" msprop:Generator_RowDeletingName="ЗаказыRowDeleting" msprop:Generator_RowChangingName="ЗаказыRowChanging" msprop:Generator_RowEvHandlerName="ЗаказыRowChangeEventHandler" msprop:Generator_RowDeletedName="ЗаказыRowDeleted" msprop:Generator_UserTableName="Заказы" msprop:Generator_RowChangedName="ЗаказыRowChanged" msprop:Generator_RowEvArgName="ЗаказыRowChangeEvent" msprop:Generator_RowClassName="ЗаказыRow"> <xs:complexType> <xs:sequence> <xs:element name="Код_заказа" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКод_заказа" msprop:Generator_ColumnPropNameInRow="Код_заказа" msprop:Generator_ColumnPropNameInTable="Код_заказаColumn" msprop:Generator_UserColumnName="Код_заказа" type="xs:long" /> <xs:element name="Код_магазина" msprop:Generator_ColumnVarNameInTable="columnКод_магазина" msprop:Generator_ColumnPropNameInRow="Код_магазина" msprop:Generator_ColumnPropNameInTable="Код_магазинаColumn" msprop:Generator_UserColumnName="Код_магазина" type="xs:long" minOccurs="0" /> <xs:element name="Код_товара" msprop:Generator_ColumnVarNameInTable="columnКод_товара" msprop:Generator_ColumnPropNameInRow="Код_товара" msprop:Generator_ColumnPropNameInTable="Код_товараColumn" msprop:Generator_UserColumnName="Код_товара" type="xs:long" minOccurs="0" /> <xs:element name="Дата_заказа" msdata:DataType="System.DateTimeOffset" msprop:Generator_ColumnVarNameInTable="columnДата_заказа" msprop:Generator_ColumnPropNameInRow="Дата_заказа" msprop:Generator_ColumnPropNameInTable="Дата_заказаColumn" msprop:Generator_UserColumnName="Дата_заказа" type="xs:anyType" minOccurs="0" /> <xs:element name="Время_заказа" msprop:Generator_ColumnVarNameInTable="columnВремя_заказа" msprop:Generator_ColumnPropNameInRow="Время_заказа" msprop:Generator_ColumnPropNameInTable="Время_заказаColumn" msprop:Generator_UserColumnName="Время_заказа" type="xs:duration" minOccurs="0" /> <xs:element name="Количество" msprop:Generator_ColumnVarNameInTable="columnКоличество" msprop:Generator_ColumnPropNameInRow="Количество" msprop:Generator_ColumnPropNameInTable="КоличествоColumn" msprop:Generator_UserColumnName="Количество" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Ф_И_О_клиента" msprop:Generator_ColumnVarNameInTable="columnФ_И_О_клиента" msprop:Generator_ColumnPropNameInRow="Ф_И_О_клиента" msprop:Generator_ColumnPropNameInTable="Ф_И_О_клиентаColumn" msprop:Generator_UserColumnName="Ф_И_О_клиента" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Контактный_телефон" msprop:Generator_ColumnVarNameInTable="columnКонтактный_телефон" msprop:Generator_ColumnPropNameInRow="Контактный_телефон" msprop:Generator_ColumnPropNameInTable="Контактный_телефонColumn" msprop:Generator_UserColumnName="Контактный_телефон" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Подтверждение_заказа" msprop:Generator_ColumnVarNameInTable="columnПодтверждение_заказа" msprop:Generator_ColumnPropNameInRow="Подтверждение_заказа" msprop:Generator_ColumnPropNameInTable="Подтверждение_заказаColumn" msprop:Generator_UserColumnName="Подтверждение_заказа" type="xs:boolean" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Интернет-магазины" msprop:Generator_TableClassName="_Интернет_магазиныDataTable" msprop:Generator_TableVarName="_tableИнтернет_магазины" msprop:Generator_TablePropName="_Интернет_магазины" msprop:Generator_RowDeletingName="_Интернет_магазиныRowDeleting" msprop:Generator_RowChangingName="_Интернет_магазиныRowChanging" msprop:Generator_RowEvHandlerName="_Интернет_магазиныRowChangeEventHandler" msprop:Generator_RowDeletedName="_Интернет_магазиныRowDeleted" msprop:Generator_UserTableName="Интернет-магазины" msprop:Generator_RowChangedName="_Интернет_магазиныRowChanged" msprop:Generator_RowEvArgName="_Интернет_магазиныRowChangeEvent" msprop:Generator_RowClassName="_Интернет_магазиныRow"> <xs:complexType> <xs:sequence> <xs:element name="Код_магазина" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКод_магазина" msprop:Generator_ColumnPropNameInRow="Код_магазина" msprop:Generator_ColumnPropNameInTable="Код_магазинаColumn" msprop:Generator_UserColumnName="Код_магазина" type="xs:long" /> <xs:element name="Электронный_адрес" msprop:Generator_ColumnVarNameInTable="columnЭлектронный_адрес" msprop:Generator_ColumnPropNameInRow="Электронный_адрес" msprop:Generator_ColumnPropNameInTable="Электронный_адресColumn" msprop:Generator_UserColumnName="Электронный_адрес" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Оплата_доставки" msprop:Generator_ColumnVarNameInTable="columnОплата_доставки" msprop:Generator_ColumnPropNameInRow="Оплата_доставки" msprop:Generator_ColumnPropNameInTable="Оплата_доставкиColumn" msprop:Generator_UserColumnName="Оплата_доставки" type="xs:boolean" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Магазины_x002F_Товары" msprop:Generator_TableClassName="_Магазины_ТоварыDataTable" msprop:Generator_TableVarName="_tableМагазины_Товары" msprop:Generator_TablePropName="_Магазины_Товары" msprop:Generator_RowDeletingName="_Магазины_ТоварыRowDeleting" msprop:Generator_RowChangingName="_Магазины_ТоварыRowChanging" msprop:Generator_RowEvHandlerName="_Магазины_ТоварыRowChangeEventHandler" msprop:Generator_RowDeletedName="_Магазины_ТоварыRowDeleted" msprop:Generator_UserTableName="Магазины/Товары" msprop:Generator_RowChangedName="_Магазины_ТоварыRowChanged" msprop:Generator_RowEvArgName="_Магазины_ТоварыRowChangeEvent" msprop:Generator_RowClassName="_Магазины_ТоварыRow"> <xs:complexType> <xs:sequence> <xs:element name="Код_x0020_магазина" msprop:Generator_ColumnVarNameInTable="columnКод_магазина" msprop:Generator_ColumnPropNameInRow="Код_магазина" msprop:Generator_ColumnPropNameInTable="Код_магазинаColumn" msprop:Generator_UserColumnName="Код магазина" type="xs:long" minOccurs="0" /> <xs:element name="Код_x0020_товара" msprop:Generator_ColumnVarNameInTable="columnКод_товара" msprop:Generator_ColumnPropNameInRow="Код_товара" msprop:Generator_ColumnPropNameInTable="Код_товараColumn" msprop:Generator_UserColumnName="Код товара" type="xs:long" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Товары" msprop:Generator_TableClassName="ТоварыDataTable" msprop:Generator_TableVarName="tableТовары" msprop:Generator_TablePropName="Товары" msprop:Generator_RowDeletingName="ТоварыRowDeleting" msprop:Generator_RowChangingName="ТоварыRowChanging" msprop:Generator_RowEvHandlerName="ТоварыRowChangeEventHandler" msprop:Generator_RowDeletedName="ТоварыRowDeleted" msprop:Generator_UserTableName="Товары" msprop:Generator_RowChangedName="ТоварыRowChanged" msprop:Generator_RowEvArgName="ТоварыRowChangeEvent" msprop:Generator_RowClassName="ТоварыRow"> <xs:complexType> <xs:sequence> <xs:element name="Код_товара" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКод_товара" msprop:Generator_ColumnPropNameInRow="Код_товара" msprop:Generator_ColumnPropNameInTable="Код_товараColumn" msprop:Generator_UserColumnName="Код_товара" type="xs:long" /> <xs:element name="Название_товара" msprop:Generator_ColumnVarNameInTable="columnНазвание_товара" msprop:Generator_ColumnPropNameInRow="Название_товара" msprop:Generator_ColumnPropNameInTable="Название_товараColumn" msprop:Generator_UserColumnName="Название_товара" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Фирма" msprop:Generator_ColumnVarNameInTable="columnФирма" msprop:Generator_ColumnPropNameInRow="Фирма" msprop:Generator_ColumnPropNameInTable="ФирмаColumn" msprop:Generator_UserColumnName="Фирма" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Модель" msprop:Generator_ColumnVarNameInTable="columnМодель" msprop:Generator_ColumnPropNameInRow="Модель" msprop:Generator_ColumnPropNameInTable="МодельColumn" msprop:Generator_UserColumnName="Модель" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Технические_характеристики" msprop:Generator_ColumnVarNameInTable="columnТехнические_характеристики" msprop:Generator_ColumnPropNameInRow="Технические_характеристики" msprop:Generator_ColumnPropNameInTable="Технические_характеристикиColumn" msprop:Generator_UserColumnName="Технические_характеристики" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Цена_x0028_руб_x0029_" msprop:Generator_ColumnVarNameInTable="_columnЦена_руб_" msprop:Generator_ColumnPropNameInRow="_Цена_руб_" msprop:Generator_ColumnPropNameInTable="_Цена_руб_Column" msprop:Generator_UserColumnName="Цена(руб)" type="xs:decimal" minOccurs="0" /> <xs:element name="Гарантийный_срок" msprop:Generator_ColumnVarNameInTable="columnГарантийный_срок" msprop:Generator_ColumnPropNameInRow="Гарантийный_срок" msprop:Generator_ColumnPropNameInTable="Гарантийный_срокColumn" msprop:Generator_UserColumnName="Гарантийный_срок" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Изображение" msprop:Generator_ColumnVarNameInTable="columnИзображение" msprop:Generator_ColumnPropNameInRow="Изображение" msprop:Generator_ColumnPropNameInTable="ИзображениеColumn" msprop:Generator_UserColumnName="Изображение" type="xs:base64Binary" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> <xs:unique name="Constraint1" msdata:PrimaryKey="true"> <xs:selector xpath=".//mstns:Доставка" /> <xs:field xpath="mstns:Код_заказа" /> </xs:unique> <xs:unique name="Заказы_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true"> <xs:selector xpath=".//mstns:Заказы" /> <xs:field xpath="mstns:Код_заказа" /> </xs:unique> <xs:unique name="Интернет-магазины_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true"> <xs:selector xpath=".//mstns:Интернет-магазины" /> <xs:field xpath="mstns:Код_магазина" /> </xs:unique> <xs:unique name="Товары_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true"> <xs:selector xpath=".//mstns:Товары" /> <xs:field xpath="mstns:Код_товара" /> </xs:unique> </xs:element> <xs:annotation> <xs:appinfo> <msdata:Relationship name="FK_Доставка_Заказы" msdata:parent="Заказы" msdata:child="Доставка" msdata:parentkey="Код_заказа" msdata:childkey="Код_заказа" msprop:Generator_UserChildTable="Доставка" msprop:Generator_ChildPropName="GetДоставкаRows" msprop:Generator_UserRelationName="FK_Доставка_Заказы" msprop:Generator_RelationVarName="relationFK_Доставка_Заказы" msprop:Generator_UserParentTable="Заказы" msprop:Generator_ParentPropName="ЗаказыRow" /> <msdata:Relationship name="FK_Заказы_Интернет-магазины" msdata:parent="Интернет-магазины" msdata:child="Заказы" msdata:parentkey="Код_магазина" msdata:childkey="Код_магазина" msprop:Generator_UserChildTable="Заказы" msprop:Generator_ChildPropName="GetЗаказыRows" msprop:Generator_UserRelationName="FK_Заказы_Интернет-магазины" msprop:Generator_RelationVarName="_relationFK_Заказы_Интернет_магазины" msprop:Generator_UserParentTable="Интернет-магазины" msprop:Generator_ParentPropName="_Интернет_магазиныRow" /> <msdata:Relationship name="FK_Заказы_Товары1" msdata:parent="Товары" msdata:child="Заказы" msdata:parentkey="Код_товара" msdata:childkey="Код_товара" msprop:Generator_UserChildTable="Заказы" msprop:Generator_ChildPropName="GetЗаказыRows" msprop:Generator_UserRelationName="FK_Заказы_Товары1" msprop:Generator_RelationVarName="relationFK_Заказы_Товары1" msprop:Generator_UserParentTable="Товары" msprop:Generator_ParentPropName="ТоварыRow" /> <msdata:Relationship name="FK_Магазины_x002F_Товары_Интернет-магазины" msdata:parent="Интернет-магазины" msdata:child="Магазины_x002F_Товары" msdata:parentkey="Код_магазина" msdata:childkey="Код_x0020_магазина" msprop:Generator_UserChildTable="Магазины/Товары" msprop:Generator_ChildPropName="_GetМагазины_ТоварыRows" msprop:Generator_UserRelationName="FK_Магазины/Товары_Интернет-магазины" msprop:Generator_ParentPropName="_Интернет_магазиныRow" msprop:Generator_RelationVarName="_relationFK_Магазины_Товары_Интернет_магазины" msprop:Generator_UserParentTable="Интернет-магазины" /> <msdata:Relationship name="FK_Магазины_x002F_Товары_Товары" msdata:parent="Товары" msdata:child="Магазины_x002F_Товары" msdata:parentkey="Код_товара" msdata:childkey="Код_x0020_товара" msprop:Generator_UserChildTable="Магазины/Товары" msprop:Generator_ChildPropName="_GetМагазины_ТоварыRows" msprop:Generator_UserRelationName="FK_Магазины/Товары_Товары" msprop:Generator_RelationVarName="_relationFK_Магазины_Товары_Товары" msprop:Generator_UserParentTable="Товары" msprop:Generator_ParentPropName="ТоварыRow" /> </xs:appinfo> </xs:annotation> </xs:schema>