﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsFlowers" targetNamespace="http://tempuri.org/dsFlowers.xsd" xmlns:mstns="http://tempuri.org/dsFlowers.xsd" xmlns="http://tempuri.org/dsFlowers.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="FlowersTableAdapter" GeneratorDataComponentClassName="FlowersTableAdapter" Name="Flowers" UserDataComponentName="FlowersTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FloristConnectionString (Web.config)" DbObjectName="Flowers" 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 `Flowers` WHERE ((`ArrangmentID` = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_ArrangmentID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ArrangmentID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `Flowers` (`FlowerType`, `ArrangmentName`, `Price`, `ArrangmentPhoto`) VALUES (?, ?, ?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="FlowerType" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="FlowerType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ArrangmentName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ArrangmentName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="Price" Precision="0" ProviderType="Currency" Scale="0" Size="0" SourceColumn="Price" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ArrangmentPhoto" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ArrangmentPhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ArrangmentID, FlowerType, ArrangmentName, Price, ArrangmentPhoto FROM Flowers</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `Flowers` SET `FlowerType` = ?, `ArrangmentName` = ?, `Price` = ?, `ArrangmentPhoto` = ? WHERE ((`ArrangmentID` = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="FlowerType" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="FlowerType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ArrangmentName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ArrangmentName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="Price" Precision="0" ProviderType="Currency" Scale="0" Size="0" SourceColumn="Price" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ArrangmentPhoto" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ArrangmentPhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_ArrangmentID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ArrangmentID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ArrangmentID" DataSetColumn="ArrangmentID" />
              <Mapping SourceColumn="FlowerType" DataSetColumn="FlowerType" />
              <Mapping SourceColumn="ArrangmentName" DataSetColumn="ArrangmentName" />
              <Mapping SourceColumn="Price" DataSetColumn="Price" />
              <Mapping SourceColumn="ArrangmentPhoto" DataSetColumn="ArrangmentPhoto" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsFlowers" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsFlowers" msprop:Generator_DataSetName="dsFlowers">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Flowers" msprop:Generator_UserTableName="Flowers" msprop:Generator_RowDeletedName="FlowersRowDeleted" msprop:Generator_RowChangedName="FlowersRowChanged" msprop:Generator_RowClassName="FlowersRow" msprop:Generator_RowChangingName="FlowersRowChanging" msprop:Generator_RowEvArgName="FlowersRowChangeEvent" msprop:Generator_RowEvHandlerName="FlowersRowChangeEventHandler" msprop:Generator_TableClassName="FlowersDataTable" msprop:Generator_TableVarName="tableFlowers" msprop:Generator_RowDeletingName="FlowersRowDeleting" msprop:Generator_TablePropName="Flowers">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ArrangmentID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="ArrangmentID" msprop:Generator_ColumnVarNameInTable="columnArrangmentID" msprop:Generator_ColumnPropNameInRow="ArrangmentID" msprop:Generator_ColumnPropNameInTable="ArrangmentIDColumn" type="xs:int" />
              <xs:element name="FlowerType" msprop:Generator_UserColumnName="FlowerType" msprop:Generator_ColumnVarNameInTable="columnFlowerType" msprop:Generator_ColumnPropNameInRow="FlowerType" msprop:Generator_ColumnPropNameInTable="FlowerTypeColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="536870910" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ArrangmentName" msprop:Generator_UserColumnName="ArrangmentName" msprop:Generator_ColumnVarNameInTable="columnArrangmentName" msprop:Generator_ColumnPropNameInRow="ArrangmentName" msprop:Generator_ColumnPropNameInTable="ArrangmentNameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" minOccurs="0" />
              <xs:element name="ArrangmentPhoto" msprop:Generator_UserColumnName="ArrangmentPhoto" msprop:Generator_ColumnVarNameInTable="columnArrangmentPhoto" msprop:Generator_ColumnPropNameInRow="ArrangmentPhoto" msprop:Generator_ColumnPropNameInTable="ArrangmentPhotoColumn" 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:Flowers" />
      <xs:field xpath="mstns:ArrangmentID" />
    </xs:unique>
  </xs:element>
</xs:schema>