﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MudDataSet" targetNamespace="http://tempuri.org/MudDataSet.xsd" xmlns:mstns="http://tempuri.org/MudDataSet.xsd" xmlns="http://tempuri.org/MudDataSet.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="MasterConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MasterConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.MasterConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GovernorateTableAdapter" GeneratorDataComponentClassName="GovernorateTableAdapter" Name="Governorate" UserDataComponentName="GovernorateTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="MasterConnectionString (Web.config)" DbObjectName="dbo.Governorate" 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="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Governorate] ([MUD_ID], [MUD_NAME]) VALUES (@MUD_ID, @MUD_NAME)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MUD_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MUD_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MUD_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MUD_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MUD_ID, MUD_NAME FROM dbo.Governorate</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MUD_ID" DataSetColumn="MUD_ID" />
              <Mapping SourceColumn="MUD_NAME" DataSetColumn="MUD_NAME" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="MudDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="MudDataSet" msprop:Generator_UserDSName="MudDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Governorate" msprop:Generator_TableClassName="GovernorateDataTable" msprop:Generator_TableVarName="tableGovernorate" msprop:Generator_TablePropName="Governorate" msprop:Generator_RowDeletingName="GovernorateRowDeleting" msprop:Generator_UserTableName="Governorate" msprop:Generator_RowChangingName="GovernorateRowChanging" msprop:Generator_RowEvHandlerName="GovernorateRowChangeEventHandler" msprop:Generator_RowDeletedName="GovernorateRowDeleted" msprop:Generator_RowEvArgName="GovernorateRowChangeEvent" msprop:Generator_RowChangedName="GovernorateRowChanged" msprop:Generator_RowClassName="GovernorateRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MUD_ID" msprop:Generator_ColumnVarNameInTable="columnMUD_ID" msprop:Generator_ColumnPropNameInRow="MUD_ID" msprop:Generator_ColumnPropNameInTable="MUD_IDColumn" msprop:Generator_UserColumnName="MUD_ID" type="xs:int" minOccurs="0" />
              <xs:element name="MUD_NAME" msprop:Generator_ColumnVarNameInTable="columnMUD_NAME" msprop:Generator_ColumnPropNameInRow="MUD_NAME" msprop:Generator_ColumnPropNameInTable="MUD_NAMEColumn" msprop:Generator_UserColumnName="MUD_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>