TemperatureData_SchemaDiagram.png

A Table of temperatures and ordinal days is calculated for use internally by the SharpHog model.  Creating the TemperatureData DataSet in the Visual Designer made writing the temperature calculation methods much cleaner.

 

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TemperatureData" targetNamespace="http://spb.xanderlih.com/Schemas/TemperatureData.xsd" xmlns:mstns="http://spb.xanderlih.com/Schemas/TemperatureData.xsd" xmlns="http://spb.xanderlih.com/Schemas/TemperatureData.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 />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="TemperatureData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="TemperatureData" msprop:Generator_DataSetName="TemperatureData" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Temperatures" msprop:Generator_UserTableName="Temperatures" msprop:Generator_RowDeletedName="TemperaturesRowDeleted" msprop:Generator_RowChangedName="TemperaturesRowChanged" msprop:Generator_RowClassName="TemperaturesRow" msprop:Generator_RowChangingName="TemperaturesRowChanging" msprop:Generator_RowEvArgName="TemperaturesRowChangeEvent" msprop:Generator_RowEvHandlerName="TemperaturesRowChangeEventHandler" msprop:Generator_TableClassName="TemperaturesDataTable" msprop:Generator_TableVarName="tableTemperatures" msprop:Generator_RowDeletingName="TemperaturesRowDeleting" msprop:Generator_TablePropName="Temperatures">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="OrdinalDay" msprop:Generator_UserColumnName="OrdinalDay" msprop:Generator_ColumnVarNameInTable="columnOrdinalDay" msprop:Generator_ColumnPropNameInRow="OrdinalDay" msprop:Generator_ColumnPropNameInTable="OrdinalDayColumn" type="xs:int" minOccurs="0" />
              <xs:element name="OrdinalHour" msprop:Generator_UserColumnName="OrdinalHour" msprop:Generator_ColumnVarNameInTable="columnOrdinalHour" msprop:Generator_ColumnPropNameInRow="OrdinalHour" msprop:Generator_ColumnPropNameInTable="OrdinalHourColumn" type="xs:int" />
              <xs:element name="HourOfDay" msprop:Generator_UserColumnName="HourOfDay" msprop:Generator_ColumnVarNameInTable="columnHourOfDay" msprop:Generator_ColumnPropNameInRow="HourOfDay" msprop:Generator_ColumnPropNameInTable="HourOfDayColumn" type="xs:int" minOccurs="0" />
              <xs:element name="Temperature" msprop:Generator_UserColumnName="Temperature" msprop:Generator_ColumnVarNameInTable="columnTemperature" msprop:Generator_ColumnPropNameInRow="Temperature" msprop:Generator_ColumnPropNameInTable="TemperatureColumn" type="xs:double" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Temperatures" />
      <xs:field xpath="mstns:OrdinalHour" />
    </xs:unique>
  </xs:element>
</xs:schema>

 

 

Check XHTML « spb.xanderlih.com Copyright © Xander Lih 2000-2012  » Check CSS