<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dtsRooms" targetNamespace="http://tempuri.org/dtsRooms.xsd" xmlns:mstns="http://tempuri.org/dtsRooms.xsd" xmlns="http://tempuri.org/dtsRooms.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="HotelConString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="HotelConString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.HotelConString.ConnectionString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblRoomsTableAdapter" GeneratorDataComponentClassName="tblRoomsTableAdapter" Name="tblRooms" UserDataComponentName="tblRoomsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="HotelConString (Web.config)" DbObjectName="HotelOnline.dbo.tblRooms" 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 [tblRooms] WHERE (([RoomID] = @Original_RoomID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RoomID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoomID" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>INSERT INTO [tblRooms] ([RoomNumber], [RoomType], [RoomBed], [PriceOfPerNight], [RoomStatuse]) VALUES (@RoomNumber, @RoomType, @RoomBed, @PriceOfPerNight, @RoomStatuse)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@RoomNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RoomNumber" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RoomType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoomType" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RoomBed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoomBed" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@PriceOfPerNight" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="PriceOfPerNight" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RoomStatuse" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoomStatuse" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     RoomID, RoomNumber, RoomType, RoomBed, PriceOfPerNight, RoomStatuse
FROM         tblRooms</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>UPDATE tblRooms SET RoomNumber = @RoomNumber, RoomType = @RoomType, RoomBed = @RoomBed, PriceOfPerNight = CONVERT (money, @PriceOfPerNight), RoomStatuse = @RoomStatuse WHERE (RoomID = @Original_RoomID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="True" AutogeneratedName="RoomNumber" ColumnName="RoomNumber" DataSourceName="HotelOnline.dbo.tblRooms" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@RoomNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="RoomNumber" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="RoomType" ColumnName="RoomType" DataSourceName="HotelOnline.dbo.tblRooms" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RoomType" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RoomType" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="RoomBed" ColumnName="RoomBed" DataSourceName="HotelOnline.dbo.tblRooms" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RoomBed" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RoomBed" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="PriceOfPerNight" ColumnName="PriceOfPerNight" DataSourceName="HotelOnline.dbo.tblRooms" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@PriceOfPerNight" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="PriceOfPerNight" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="RoomStatuse" ColumnName="RoomStatuse" DataSourceName="HotelOnline.dbo.tblRooms" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RoomStatuse" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RoomStatuse" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="Original_RoomID" ColumnName="RoomID" DataSourceName="HotelOnline.dbo.tblRooms" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_RoomID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RoomID" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="RoomID" DataSetColumn="RoomID" />
              <Mapping SourceColumn="RoomNumber" DataSetColumn="RoomNumber" />
              <Mapping SourceColumn="RoomType" DataSetColumn="RoomType" />
              <Mapping SourceColumn="RoomBed" DataSetColumn="RoomBed" />
              <Mapping SourceColumn="PriceOfPerNight" DataSetColumn="PriceOfPerNight" />
              <Mapping SourceColumn="RoomStatuse" DataSetColumn="RoomStatuse" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dtsRooms" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dtsRooms" msprop:Generator_DataSetName="dtsRooms">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tblRooms" msprop:Generator_UserTableName="tblRooms" msprop:Generator_RowDeletedName="tblRoomsRowDeleted" msprop:Generator_RowChangedName="tblRoomsRowChanged" msprop:Generator_RowClassName="tblRoomsRow" msprop:Generator_RowChangingName="tblRoomsRowChanging" msprop:Generator_RowEvArgName="tblRoomsRowChangeEvent" msprop:Generator_RowEvHandlerName="tblRoomsRowChangeEventHandler" msprop:Generator_TableClassName="tblRoomsDataTable" msprop:Generator_TableVarName="tabletblRooms" msprop:Generator_RowDeletingName="tblRoomsRowDeleting" msprop:Generator_TablePropName="tblRooms">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RoomID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="RoomID" msprop:Generator_ColumnVarNameInTable="columnRoomID" msprop:Generator_ColumnPropNameInRow="RoomID" msprop:Generator_ColumnPropNameInTable="RoomIDColumn" type="xs:int" />
              <xs:element name="RoomNumber" msprop:Generator_UserColumnName="RoomNumber" msprop:Generator_ColumnVarNameInTable="columnRoomNumber" msprop:Generator_ColumnPropNameInRow="RoomNumber" msprop:Generator_ColumnPropNameInTable="RoomNumberColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="RoomType" msprop:Generator_UserColumnName="RoomType" msprop:Generator_ColumnVarNameInTable="columnRoomType" msprop:Generator_ColumnPropNameInRow="RoomType" msprop:Generator_ColumnPropNameInTable="RoomTypeColumn" type="xs:int" minOccurs="0" />
              <xs:element name="RoomBed" msprop:Generator_UserColumnName="RoomBed" msprop:Generator_ColumnVarNameInTable="columnRoomBed" msprop:Generator_ColumnPropNameInRow="RoomBed" msprop:Generator_ColumnPropNameInTable="RoomBedColumn" type="xs:int" minOccurs="0" />
              <xs:element name="PriceOfPerNight" msprop:Generator_UserColumnName="PriceOfPerNight" msprop:Generator_ColumnVarNameInTable="columnPriceOfPerNight" msprop:Generator_ColumnPropNameInRow="PriceOfPerNight" msprop:Generator_ColumnPropNameInTable="PriceOfPerNightColumn" type="xs:decimal" minOccurs="0" />
              <xs:element name="RoomStatuse" msprop:Generator_UserColumnName="RoomStatuse" msprop:Generator_ColumnVarNameInTable="columnRoomStatuse" msprop:Generator_ColumnPropNameInRow="RoomStatuse" msprop:Generator_ColumnPropNameInTable="RoomStatuseColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblRooms" />
      <xs:field xpath="mstns:RoomID" />
    </xs:unique>
  </xs:element>
</xs:schema>