﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsOrders" targetNamespace="http://tempuri.org/dsOrders.xsd" xmlns:mstns="http://tempuri.org/dsOrders.xsd" xmlns="http://tempuri.org/dsOrders.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="Web.config" AppSettingsPropertyName="FloristConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="FloristConnectionString (Web.config)" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.FloristConnectionString.ConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrdersTableAdapter" GeneratorDataComponentClassName="OrdersTableAdapter" Name="Orders" UserDataComponentName="OrdersTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FloristConnectionString (Web.config)" DbObjectName="Orders" 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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM `Orders` WHERE ((`OrderID` = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_OrderID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `Orders` (`CustomerName`, `CustomerAddress`, `CustomerCity`, `CustomerState`, `CustomerZip`, `CustomerPhone`, `ArrangmentID`, `DeliveryName`, `DeliveryAddress`, `DeliveryCity`, `DeliveryState`, `DeliveryZip`, `DeliveryPhone`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerAddress" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerCity" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerCity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerState" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerState" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerZip" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerZip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerPhone" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerPhone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="ArrangmentID" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="ArrangmentID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryAddress" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryCity" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryCity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryState" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryState" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryZip" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryZip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryPhone" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryPhone" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT OrderID, CustomerName, CustomerAddress, CustomerCity, CustomerState, CustomerZip, CustomerPhone, ArrangmentID, DeliveryName, DeliveryAddress, DeliveryCity, DeliveryState, DeliveryZip, DeliveryPhone FROM Orders</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `Orders` SET `CustomerName` = ?, `CustomerAddress` = ?, `CustomerCity` = ?, `CustomerState` = ?, `CustomerZip` = ?, `CustomerPhone` = ?, `ArrangmentID` = ?, `DeliveryName` = ?, `DeliveryAddress` = ?, `DeliveryCity` = ?, `DeliveryState` = ?, `DeliveryZip` = ?, `DeliveryPhone` = ? WHERE ((`OrderID` = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerAddress" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerCity" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerCity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerState" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerState" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerZip" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerZip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerPhone" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerPhone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="ArrangmentID" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="ArrangmentID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryAddress" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryCity" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryCity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryState" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryState" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryZip" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryZip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="DeliveryPhone" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="DeliveryPhone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_OrderID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="OrderID" DataSetColumn="OrderID" />
              <Mapping SourceColumn="CustomerName" DataSetColumn="CustomerName" />
              <Mapping SourceColumn="CustomerAddress" DataSetColumn="CustomerAddress" />
              <Mapping SourceColumn="CustomerCity" DataSetColumn="CustomerCity" />
              <Mapping SourceColumn="CustomerState" DataSetColumn="CustomerState" />
              <Mapping SourceColumn="CustomerZip" DataSetColumn="CustomerZip" />
              <Mapping SourceColumn="CustomerPhone" DataSetColumn="CustomerPhone" />
              <Mapping SourceColumn="ArrangmentID" DataSetColumn="ArrangmentID" />
              <Mapping SourceColumn="DeliveryName" DataSetColumn="DeliveryName" />
              <Mapping SourceColumn="DeliveryAddress" DataSetColumn="DeliveryAddress" />
              <Mapping SourceColumn="DeliveryCity" DataSetColumn="DeliveryCity" />
              <Mapping SourceColumn="DeliveryState" DataSetColumn="DeliveryState" />
              <Mapping SourceColumn="DeliveryZip" DataSetColumn="DeliveryZip" />
              <Mapping SourceColumn="DeliveryPhone" DataSetColumn="DeliveryPhone" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsOrders" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsOrders" msprop:Generator_DataSetName="dsOrders">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Orders" msprop:Generator_UserTableName="Orders" msprop:Generator_RowDeletedName="OrdersRowDeleted" msprop:Generator_TableClassName="OrdersDataTable" msprop:Generator_RowChangedName="OrdersRowChanged" msprop:Generator_RowClassName="OrdersRow" msprop:Generator_RowChangingName="OrdersRowChanging" msprop:Generator_RowEvArgName="OrdersRowChangeEvent" msprop:Generator_RowEvHandlerName="OrdersRowChangeEventHandler" msprop:Generator_TablePropName="Orders" msprop:Generator_TableVarName="tableOrders" msprop:Generator_RowDeletingName="OrdersRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="OrderID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="OrderID" msprop:Generator_ColumnPropNameInRow="OrderID" msprop:Generator_ColumnVarNameInTable="columnOrderID" msprop:Generator_ColumnPropNameInTable="OrderIDColumn" type="xs:int" />
              <xs:element name="CustomerName" msprop:Generator_UserColumnName="CustomerName" msprop:Generator_ColumnPropNameInRow="CustomerName" msprop:Generator_ColumnVarNameInTable="columnCustomerName" msprop:Generator_ColumnPropNameInTable="CustomerNameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerAddress" msprop:Generator_UserColumnName="CustomerAddress" msprop:Generator_ColumnPropNameInRow="CustomerAddress" msprop:Generator_ColumnVarNameInTable="columnCustomerAddress" msprop:Generator_ColumnPropNameInTable="CustomerAddressColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerCity" msprop:Generator_UserColumnName="CustomerCity" msprop:Generator_ColumnPropNameInRow="CustomerCity" msprop:Generator_ColumnVarNameInTable="columnCustomerCity" msprop:Generator_ColumnPropNameInTable="CustomerCityColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerState" msprop:Generator_UserColumnName="CustomerState" msprop:Generator_ColumnPropNameInRow="CustomerState" msprop:Generator_ColumnVarNameInTable="columnCustomerState" msprop:Generator_ColumnPropNameInTable="CustomerStateColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerZip" msprop:Generator_UserColumnName="CustomerZip" msprop:Generator_ColumnPropNameInRow="CustomerZip" msprop:Generator_ColumnVarNameInTable="columnCustomerZip" msprop:Generator_ColumnPropNameInTable="CustomerZipColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="15" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerPhone" msprop:Generator_UserColumnName="CustomerPhone" msprop:Generator_ColumnPropNameInRow="CustomerPhone" msprop:Generator_ColumnVarNameInTable="columnCustomerPhone" msprop:Generator_ColumnPropNameInTable="CustomerPhoneColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ArrangmentID" msprop:Generator_UserColumnName="ArrangmentID" msprop:Generator_ColumnPropNameInRow="ArrangmentID" msprop:Generator_ColumnVarNameInTable="columnArrangmentID" msprop:Generator_ColumnPropNameInTable="ArrangmentIDColumn" type="xs:short" minOccurs="0" />
              <xs:element name="DeliveryName" msprop:Generator_UserColumnName="DeliveryName" msprop:Generator_ColumnPropNameInRow="DeliveryName" msprop:Generator_ColumnVarNameInTable="columnDeliveryName" msprop:Generator_ColumnPropNameInTable="DeliveryNameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DeliveryAddress" msprop:Generator_UserColumnName="DeliveryAddress" msprop:Generator_ColumnPropNameInRow="DeliveryAddress" msprop:Generator_ColumnVarNameInTable="columnDeliveryAddress" msprop:Generator_ColumnPropNameInTable="DeliveryAddressColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DeliveryCity" msprop:Generator_UserColumnName="DeliveryCity" msprop:Generator_ColumnPropNameInRow="DeliveryCity" msprop:Generator_ColumnVarNameInTable="columnDeliveryCity" msprop:Generator_ColumnPropNameInTable="DeliveryCityColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DeliveryState" msprop:Generator_UserColumnName="DeliveryState" msprop:Generator_ColumnPropNameInRow="DeliveryState" msprop:Generator_ColumnVarNameInTable="columnDeliveryState" msprop:Generator_ColumnPropNameInTable="DeliveryStateColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DeliveryZip" msprop:Generator_UserColumnName="DeliveryZip" msprop:Generator_ColumnPropNameInRow="DeliveryZip" msprop:Generator_ColumnVarNameInTable="columnDeliveryZip" msprop:Generator_ColumnPropNameInTable="DeliveryZipColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="15" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DeliveryPhone" msprop:Generator_UserColumnName="DeliveryPhone" msprop:Generator_ColumnPropNameInRow="DeliveryPhone" msprop:Generator_ColumnVarNameInTable="columnDeliveryPhone" msprop:Generator_ColumnPropNameInTable="DeliveryPhoneColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Orders" />
      <xs:field xpath="mstns:OrderID" />
    </xs:unique>
  </xs:element>
</xs:schema>