﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="luento20malliDataSet" targetNamespace="http://tempuri.org/luento20malliDataSet.xsd" xmlns:mstns="http://tempuri.org/luento20malliDataSet.xsd" xmlns="http://tempuri.org/luento20malliDataSet.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="Settings" AppSettingsPropertyName="luento20malliConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="luento20malliConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.malli.Properties.Settings.GlobalReference.Default.luento20malliConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AineTableAdapter" GeneratorDataComponentClassName="AineTableAdapter" Name="Aine" UserDataComponentName="AineTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="luento20malliConnectionString (Settings)" DbObjectName="dbo.Aine" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Aine] WHERE (([Nimi] = @Original_Nimi) AND ((@IsNull_Kuvaus = 1 AND [Kuvaus] IS NULL) OR ([Kuvaus] = @Original_Kuvaus)) AND ([AineID] = @Original_AineID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Kuvaus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AineID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Aine] ([Nimi], [Kuvaus]) VALUES (@Nimi, @Kuvaus);
SELECT Nimi, Kuvaus, AineID FROM Aine WHERE (AineID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Nimi, Kuvaus, AineID FROM dbo.Aine</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Aine] SET [Nimi] = @Nimi, [Kuvaus] = @Kuvaus WHERE (([Nimi] = @Original_Nimi) AND ((@IsNull_Kuvaus = 1 AND [Kuvaus] IS NULL) OR ([Kuvaus] = @Original_Kuvaus)) AND ([AineID] = @Original_AineID));
SELECT Nimi, Kuvaus, AineID FROM Aine WHERE (AineID = @AineID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Kuvaus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AineID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="AineID" ColumnName="AineID" DataSourceName="[C:\MYTEMP\LUENTO20MALLI.MDF].dbo.Aine" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@AineID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AineID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Nimi" DataSetColumn="Nimi" />
              <Mapping SourceColumn="Kuvaus" DataSetColumn="Kuvaus" />
              <Mapping SourceColumn="AineID" DataSetColumn="AineID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LiittyyTableAdapter" GeneratorDataComponentClassName="LiittyyTableAdapter" Name="Liittyy" UserDataComponentName="LiittyyTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="luento20malliConnectionString (Settings)" DbObjectName="dbo.Liittyy" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Liittyy] WHERE (((@IsNull_Maara = 1 AND [Maara] IS NULL) OR ([Maara] = @Original_Maara)) AND ([Resepti_ReseptiID] = @Original_Resepti_ReseptiID) AND ([Aine_AineID] = @Original_Aine_AineID) AND ([Yksikko_Lyhenne] = @Original_Yksikko_Lyhenne))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Maara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Maara" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Maara" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Maara" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Resepti_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Resepti_ReseptiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Aine_AineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Aine_AineID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Yksikko_Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Yksikko_Lyhenne" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Liittyy] ([Maara], [Resepti_ReseptiID], [Aine_AineID], [Yksikko_Lyhenne]) VALUES (@Maara, @Resepti_ReseptiID, @Aine_AineID, @Yksikko_Lyhenne);
SELECT Maara, Resepti_ReseptiID, Aine_AineID, Yksikko_Lyhenne FROM Liittyy WHERE (Aine_AineID = @Aine_AineID) AND (Resepti_ReseptiID = @Resepti_ReseptiID) AND (Yksikko_Lyhenne = @Yksikko_Lyhenne)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Maara" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Maara" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Resepti_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Resepti_ReseptiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Aine_AineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Aine_AineID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Yksikko_Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Yksikko_Lyhenne" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Maara, Resepti_ReseptiID, Aine_AineID, Yksikko_Lyhenne FROM dbo.Liittyy</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Liittyy] SET [Maara] = @Maara, [Resepti_ReseptiID] = @Resepti_ReseptiID, [Aine_AineID] = @Aine_AineID, [Yksikko_Lyhenne] = @Yksikko_Lyhenne WHERE (((@IsNull_Maara = 1 AND [Maara] IS NULL) OR ([Maara] = @Original_Maara)) AND ([Resepti_ReseptiID] = @Original_Resepti_ReseptiID) AND ([Aine_AineID] = @Original_Aine_AineID) AND ([Yksikko_Lyhenne] = @Original_Yksikko_Lyhenne));
SELECT Maara, Resepti_ReseptiID, Aine_AineID, Yksikko_Lyhenne FROM Liittyy WHERE (Aine_AineID = @Aine_AineID) AND (Resepti_ReseptiID = @Resepti_ReseptiID) AND (Yksikko_Lyhenne = @Yksikko_Lyhenne)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Maara" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Maara" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Resepti_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Resepti_ReseptiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Aine_AineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Aine_AineID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Yksikko_Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Yksikko_Lyhenne" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Maara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Maara" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Maara" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Maara" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Resepti_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Resepti_ReseptiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Aine_AineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Aine_AineID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Yksikko_Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Yksikko_Lyhenne" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Maara" DataSetColumn="Maara" />
              <Mapping SourceColumn="Resepti_ReseptiID" DataSetColumn="Resepti_ReseptiID" />
              <Mapping SourceColumn="Aine_AineID" DataSetColumn="Aine_AineID" />
              <Mapping SourceColumn="Yksikko_Lyhenne" DataSetColumn="Yksikko_Lyhenne" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OhjeTableAdapter" GeneratorDataComponentClassName="OhjeTableAdapter" Name="Ohje" UserDataComponentName="OhjeTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="luento20malliConnectionString (Settings)" DbObjectName="dbo.Ohje" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Ohje] WHERE (([Vaihenro] = @Original_Vaihenro) AND ([ReseptiID] = @Original_ReseptiID) AND ([Ohjeteksti] = @Original_Ohjeteksti))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Vaihenro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Vaihenro" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReseptiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Ohjeteksti" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Ohjeteksti" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Ohje] ([Vaihenro], [ReseptiID], [Ohjeteksti]) VALUES (@Vaihenro, @ReseptiID, @Ohjeteksti);
SELECT Vaihenro, ReseptiID, Ohjeteksti FROM Ohje WHERE (ReseptiID = @ReseptiID) AND (Vaihenro = @Vaihenro)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Vaihenro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Vaihenro" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReseptiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Ohjeteksti" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Ohjeteksti" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Vaihenro, ReseptiID, Ohjeteksti FROM dbo.Ohje</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Ohje] SET [Vaihenro] = @Vaihenro, [ReseptiID] = @ReseptiID, [Ohjeteksti] = @Ohjeteksti WHERE (([Vaihenro] = @Original_Vaihenro) AND ([ReseptiID] = @Original_ReseptiID) AND ([Ohjeteksti] = @Original_Ohjeteksti));
SELECT Vaihenro, ReseptiID, Ohjeteksti FROM Ohje WHERE (ReseptiID = @ReseptiID) AND (Vaihenro = @Vaihenro)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Vaihenro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Vaihenro" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReseptiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Ohjeteksti" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Ohjeteksti" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Vaihenro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Vaihenro" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReseptiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Ohjeteksti" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Ohjeteksti" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Vaihenro" DataSetColumn="Vaihenro" />
              <Mapping SourceColumn="ReseptiID" DataSetColumn="ReseptiID" />
              <Mapping SourceColumn="Ohjeteksti" DataSetColumn="Ohjeteksti" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ReseptiTableAdapter" GeneratorDataComponentClassName="ReseptiTableAdapter" Name="Resepti" UserDataComponentName="ReseptiTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="luento20malliConnectionString (Settings)" DbObjectName="dbo.Resepti" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Resepti] WHERE (([Nimi] = @Original_Nimi) AND ((@IsNull_Kuvaus = 1 AND [Kuvaus] IS NULL) OR ([Kuvaus] = @Original_Kuvaus)) AND ((@IsNull_Henkilomaara = 1 AND [Henkilomaara] IS NULL) OR ([Henkilomaara] = @Original_Henkilomaara)) AND ([ReseptiID] = @Original_ReseptiID) AND ([RuokalajiID] = @Original_RuokalajiID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Kuvaus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Henkilomaara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Henkilomaara" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Henkilomaara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Henkilomaara" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReseptiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RuokalajiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RuokalajiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Resepti] ([Nimi], [Kuvaus], [Henkilomaara], [RuokalajiID]) VALUES (@Nimi, @Kuvaus, @Henkilomaara, @RuokalajiID);
SELECT Nimi, Kuvaus, Henkilomaara, ReseptiID, RuokalajiID FROM Resepti WHERE (ReseptiID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Henkilomaara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Henkilomaara" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RuokalajiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RuokalajiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Nimi, Kuvaus, Henkilomaara, ReseptiID, RuokalajiID FROM dbo.Resepti</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Resepti] SET [Nimi] = @Nimi, [Kuvaus] = @Kuvaus, [Henkilomaara] = @Henkilomaara, [RuokalajiID] = @RuokalajiID WHERE (([Nimi] = @Original_Nimi) AND ((@IsNull_Kuvaus = 1 AND [Kuvaus] IS NULL) OR ([Kuvaus] = @Original_Kuvaus)) AND ((@IsNull_Henkilomaara = 1 AND [Henkilomaara] IS NULL) OR ([Henkilomaara] = @Original_Henkilomaara)) AND ([ReseptiID] = @Original_ReseptiID) AND ([RuokalajiID] = @Original_RuokalajiID));
SELECT Nimi, Kuvaus, Henkilomaara, ReseptiID, RuokalajiID FROM Resepti WHERE (ReseptiID = @ReseptiID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Henkilomaara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Henkilomaara" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RuokalajiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RuokalajiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Kuvaus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Henkilomaara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Henkilomaara" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Henkilomaara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Henkilomaara" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReseptiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RuokalajiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RuokalajiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ReseptiID" ColumnName="ReseptiID" DataSourceName="[C:\MYTEMP\LUENTO20MALLI.MDF].dbo.Resepti" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ReseptiID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ReseptiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Nimi" DataSetColumn="Nimi" />
              <Mapping SourceColumn="Kuvaus" DataSetColumn="Kuvaus" />
              <Mapping SourceColumn="Henkilomaara" DataSetColumn="Henkilomaara" />
              <Mapping SourceColumn="ReseptiID" DataSetColumn="ReseptiID" />
              <Mapping SourceColumn="RuokalajiID" DataSetColumn="RuokalajiID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RuokalajiTableAdapter" GeneratorDataComponentClassName="RuokalajiTableAdapter" Name="Ruokalaji" UserDataComponentName="RuokalajiTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="luento20malliConnectionString (Settings)" DbObjectName="dbo.Ruokalaji" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Ruokalaji] WHERE (([Nimi] = @Original_Nimi) AND ((@IsNull_Kuvaus = 1 AND [Kuvaus] IS NULL) OR ([Kuvaus] = @Original_Kuvaus)) AND ([RuokalajiID] = @Original_RuokalajiID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Kuvaus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RuokalajiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RuokalajiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Ruokalaji] ([Nimi], [Kuvaus]) VALUES (@Nimi, @Kuvaus);
SELECT Nimi, Kuvaus, RuokalajiID FROM Ruokalaji WHERE (RuokalajiID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Nimi, Kuvaus, RuokalajiID FROM dbo.Ruokalaji</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Ruokalaji] SET [Nimi] = @Nimi, [Kuvaus] = @Kuvaus WHERE (([Nimi] = @Original_Nimi) AND ((@IsNull_Kuvaus = 1 AND [Kuvaus] IS NULL) OR ([Kuvaus] = @Original_Kuvaus)) AND ([RuokalajiID] = @Original_RuokalajiID));
SELECT Nimi, Kuvaus, RuokalajiID FROM Ruokalaji WHERE (RuokalajiID = @RuokalajiID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Kuvaus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Kuvaus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Kuvaus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RuokalajiID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RuokalajiID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="RuokalajiID" ColumnName="RuokalajiID" DataSourceName="[C:\MYTEMP\LUENTO20MALLI.MDF].dbo.Ruokalaji" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RuokalajiID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RuokalajiID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Nimi" DataSetColumn="Nimi" />
              <Mapping SourceColumn="Kuvaus" DataSetColumn="Kuvaus" />
              <Mapping SourceColumn="RuokalajiID" DataSetColumn="RuokalajiID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="YksikkoTableAdapter" GeneratorDataComponentClassName="YksikkoTableAdapter" Name="Yksikko" UserDataComponentName="YksikkoTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="luento20malliConnectionString (Settings)" DbObjectName="dbo.Yksikko" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Yksikko] WHERE (([Nimi] = @Original_Nimi) AND ([Lyhenne] = @Original_Lyhenne))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Lyhenne" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Yksikko] ([Nimi], [Lyhenne]) VALUES (@Nimi, @Lyhenne);
SELECT Nimi, Lyhenne FROM Yksikko WHERE (Lyhenne = @Lyhenne)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Lyhenne" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Nimi, Lyhenne FROM dbo.Yksikko</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Yksikko] SET [Nimi] = @Nimi, [Lyhenne] = @Lyhenne WHERE (([Nimi] = @Original_Nimi) AND ([Lyhenne] = @Original_Lyhenne));
SELECT Nimi, Lyhenne FROM Yksikko WHERE (Lyhenne = @Lyhenne)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Lyhenne" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Nimi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Nimi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Lyhenne" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Lyhenne" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Nimi" DataSetColumn="Nimi" />
              <Mapping SourceColumn="Lyhenne" DataSetColumn="Lyhenne" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="luento20malliDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="luento20malliDataSet" msprop:Generator_UserDSName="luento20malliDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Aine" msprop:Generator_TableClassName="AineDataTable" msprop:Generator_TableVarName="tableAine" msprop:Generator_TablePropName="Aine" msprop:Generator_RowDeletingName="AineRowDeleting" msprop:Generator_UserTableName="Aine" msprop:Generator_RowChangingName="AineRowChanging" msprop:Generator_RowEvHandlerName="AineRowChangeEventHandler" msprop:Generator_RowDeletedName="AineRowDeleted" msprop:Generator_RowEvArgName="AineRowChangeEvent" msprop:Generator_RowChangedName="AineRowChanged" msprop:Generator_RowClassName="AineRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Nimi" msprop:Generator_ColumnVarNameInTable="columnNimi" msprop:Generator_ColumnPropNameInRow="Nimi" msprop:Generator_ColumnPropNameInTable="NimiColumn" msprop:Generator_UserColumnName="Nimi">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="60" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Kuvaus" msprop:Generator_ColumnVarNameInTable="columnKuvaus" msprop:Generator_ColumnPropNameInRow="Kuvaus" msprop:Generator_ColumnPropNameInTable="KuvausColumn" msprop:Generator_UserColumnName="Kuvaus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AineID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnAineID" msprop:Generator_ColumnPropNameInRow="AineID" msprop:Generator_ColumnPropNameInTable="AineIDColumn" msprop:Generator_UserColumnName="AineID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Liittyy" msprop:Generator_TableClassName="LiittyyDataTable" msprop:Generator_TableVarName="tableLiittyy" msprop:Generator_TablePropName="Liittyy" msprop:Generator_RowDeletingName="LiittyyRowDeleting" msprop:Generator_UserTableName="Liittyy" msprop:Generator_RowChangingName="LiittyyRowChanging" msprop:Generator_RowEvHandlerName="LiittyyRowChangeEventHandler" msprop:Generator_RowDeletedName="LiittyyRowDeleted" msprop:Generator_RowEvArgName="LiittyyRowChangeEvent" msprop:Generator_RowChangedName="LiittyyRowChanged" msprop:Generator_RowClassName="LiittyyRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Maara" msprop:Generator_ColumnVarNameInTable="columnMaara" msprop:Generator_ColumnPropNameInRow="Maara" msprop:Generator_ColumnPropNameInTable="MaaraColumn" msprop:Generator_UserColumnName="Maara" type="xs:decimal" minOccurs="0" />
              <xs:element name="Resepti_ReseptiID" msprop:Generator_ColumnVarNameInTable="columnResepti_ReseptiID" msprop:Generator_ColumnPropNameInRow="Resepti_ReseptiID" msprop:Generator_ColumnPropNameInTable="Resepti_ReseptiIDColumn" msprop:Generator_UserColumnName="Resepti_ReseptiID" type="xs:int" />
              <xs:element name="Aine_AineID" msprop:Generator_ColumnVarNameInTable="columnAine_AineID" msprop:Generator_ColumnPropNameInRow="Aine_AineID" msprop:Generator_ColumnPropNameInTable="Aine_AineIDColumn" msprop:Generator_UserColumnName="Aine_AineID" type="xs:int" />
              <xs:element name="Yksikko_Lyhenne" msprop:Generator_ColumnVarNameInTable="columnYksikko_Lyhenne" msprop:Generator_ColumnPropNameInRow="Yksikko_Lyhenne" msprop:Generator_ColumnPropNameInTable="Yksikko_LyhenneColumn" msprop:Generator_UserColumnName="Yksikko_Lyhenne">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="3" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Ohje" msprop:Generator_TableClassName="OhjeDataTable" msprop:Generator_TableVarName="tableOhje" msprop:Generator_TablePropName="Ohje" msprop:Generator_RowDeletingName="OhjeRowDeleting" msprop:Generator_UserTableName="Ohje" msprop:Generator_RowChangingName="OhjeRowChanging" msprop:Generator_RowEvHandlerName="OhjeRowChangeEventHandler" msprop:Generator_RowDeletedName="OhjeRowDeleted" msprop:Generator_RowEvArgName="OhjeRowChangeEvent" msprop:Generator_RowChangedName="OhjeRowChanged" msprop:Generator_RowClassName="OhjeRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Vaihenro" msprop:Generator_ColumnVarNameInTable="columnVaihenro" msprop:Generator_ColumnPropNameInRow="Vaihenro" msprop:Generator_ColumnPropNameInTable="VaihenroColumn" msprop:Generator_UserColumnName="Vaihenro" type="xs:int" />
              <xs:element name="ReseptiID" msprop:Generator_ColumnVarNameInTable="columnReseptiID" msprop:Generator_ColumnPropNameInRow="ReseptiID" msprop:Generator_ColumnPropNameInTable="ReseptiIDColumn" msprop:Generator_UserColumnName="ReseptiID" type="xs:int" />
              <xs:element name="Ohjeteksti" msprop:Generator_ColumnVarNameInTable="columnOhjeteksti" msprop:Generator_ColumnPropNameInRow="Ohjeteksti" msprop:Generator_ColumnPropNameInTable="OhjetekstiColumn" msprop:Generator_UserColumnName="Ohjeteksti">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Resepti" msprop:Generator_TableClassName="ReseptiDataTable" msprop:Generator_TableVarName="tableResepti" msprop:Generator_TablePropName="Resepti" msprop:Generator_RowDeletingName="ReseptiRowDeleting" msprop:Generator_UserTableName="Resepti" msprop:Generator_RowChangingName="ReseptiRowChanging" msprop:Generator_RowEvHandlerName="ReseptiRowChangeEventHandler" msprop:Generator_RowDeletedName="ReseptiRowDeleted" msprop:Generator_RowEvArgName="ReseptiRowChangeEvent" msprop:Generator_RowChangedName="ReseptiRowChanged" msprop:Generator_RowClassName="ReseptiRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Nimi" msprop:Generator_ColumnVarNameInTable="columnNimi" msprop:Generator_ColumnPropNameInRow="Nimi" msprop:Generator_ColumnPropNameInTable="NimiColumn" msprop:Generator_UserColumnName="Nimi">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Kuvaus" msprop:Generator_ColumnVarNameInTable="columnKuvaus" msprop:Generator_ColumnPropNameInRow="Kuvaus" msprop:Generator_ColumnPropNameInTable="KuvausColumn" msprop:Generator_UserColumnName="Kuvaus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Henkilomaara" msprop:Generator_ColumnVarNameInTable="columnHenkilomaara" msprop:Generator_ColumnPropNameInRow="Henkilomaara" msprop:Generator_ColumnPropNameInTable="HenkilomaaraColumn" msprop:Generator_UserColumnName="Henkilomaara" type="xs:int" minOccurs="0" />
              <xs:element name="ReseptiID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnReseptiID" msprop:Generator_ColumnPropNameInRow="ReseptiID" msprop:Generator_ColumnPropNameInTable="ReseptiIDColumn" msprop:Generator_UserColumnName="ReseptiID" type="xs:int" />
              <xs:element name="RuokalajiID" msprop:Generator_ColumnVarNameInTable="columnRuokalajiID" msprop:Generator_ColumnPropNameInRow="RuokalajiID" msprop:Generator_ColumnPropNameInTable="RuokalajiIDColumn" msprop:Generator_UserColumnName="RuokalajiID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Ruokalaji" msprop:Generator_TableClassName="RuokalajiDataTable" msprop:Generator_TableVarName="tableRuokalaji" msprop:Generator_TablePropName="Ruokalaji" msprop:Generator_RowDeletingName="RuokalajiRowDeleting" msprop:Generator_UserTableName="Ruokalaji" msprop:Generator_RowChangingName="RuokalajiRowChanging" msprop:Generator_RowEvHandlerName="RuokalajiRowChangeEventHandler" msprop:Generator_RowDeletedName="RuokalajiRowDeleted" msprop:Generator_RowEvArgName="RuokalajiRowChangeEvent" msprop:Generator_RowChangedName="RuokalajiRowChanged" msprop:Generator_RowClassName="RuokalajiRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Nimi" msprop:Generator_ColumnVarNameInTable="columnNimi" msprop:Generator_ColumnPropNameInRow="Nimi" msprop:Generator_ColumnPropNameInTable="NimiColumn" msprop:Generator_UserColumnName="Nimi">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Kuvaus" msprop:Generator_ColumnVarNameInTable="columnKuvaus" msprop:Generator_ColumnPropNameInRow="Kuvaus" msprop:Generator_ColumnPropNameInTable="KuvausColumn" msprop:Generator_UserColumnName="Kuvaus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="RuokalajiID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnRuokalajiID" msprop:Generator_ColumnPropNameInRow="RuokalajiID" msprop:Generator_ColumnPropNameInTable="RuokalajiIDColumn" msprop:Generator_UserColumnName="RuokalajiID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Yksikko" msprop:Generator_TableClassName="YksikkoDataTable" msprop:Generator_TableVarName="tableYksikko" msprop:Generator_TablePropName="Yksikko" msprop:Generator_RowDeletingName="YksikkoRowDeleting" msprop:Generator_UserTableName="Yksikko" msprop:Generator_RowChangingName="YksikkoRowChanging" msprop:Generator_RowEvHandlerName="YksikkoRowChangeEventHandler" msprop:Generator_RowDeletedName="YksikkoRowDeleted" msprop:Generator_RowEvArgName="YksikkoRowChangeEvent" msprop:Generator_RowChangedName="YksikkoRowChanged" msprop:Generator_RowClassName="YksikkoRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Nimi" msprop:Generator_ColumnVarNameInTable="columnNimi" msprop:Generator_ColumnPropNameInRow="Nimi" msprop:Generator_ColumnPropNameInTable="NimiColumn" msprop:Generator_UserColumnName="Nimi">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Lyhenne" msprop:Generator_ColumnVarNameInTable="columnLyhenne" msprop:Generator_ColumnPropNameInRow="Lyhenne" msprop:Generator_ColumnPropNameInTable="LyhenneColumn" msprop:Generator_UserColumnName="Lyhenne">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="3" />
                  </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:Aine" />
      <xs:field xpath="mstns:AineID" />
    </xs:unique>
    <xs:unique name="Liittyy_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Liittyy" />
      <xs:field xpath="mstns:Resepti_ReseptiID" />
      <xs:field xpath="mstns:Aine_AineID" />
      <xs:field xpath="mstns:Yksikko_Lyhenne" />
    </xs:unique>
    <xs:unique name="Ohje_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Ohje" />
      <xs:field xpath="mstns:Vaihenro" />
      <xs:field xpath="mstns:ReseptiID" />
    </xs:unique>
    <xs:unique name="Resepti_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Resepti" />
      <xs:field xpath="mstns:ReseptiID" />
    </xs:unique>
    <xs:unique name="Ruokalaji_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Ruokalaji" />
      <xs:field xpath="mstns:RuokalajiID" />
    </xs:unique>
    <xs:unique name="Yksikko_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Yksikko" />
      <xs:field xpath="mstns:Lyhenne" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="Liittyy_AineID" msdata:parent="Aine" msdata:child="Liittyy" msdata:parentkey="AineID" msdata:childkey="Aine_AineID" msprop:Generator_UserChildTable="Liittyy" msprop:Generator_ChildPropName="GetLiittyyRows" msprop:Generator_ParentPropName="AineRow" msprop:Generator_UserRelationName="Liittyy_AineID" msprop:Generator_RelationVarName="relationLiittyy_AineID" msprop:Generator_UserParentTable="Aine" />
      <msdata:Relationship name="Liittyy_Lyhenne" msdata:parent="Yksikko" msdata:child="Liittyy" msdata:parentkey="Lyhenne" msdata:childkey="Yksikko_Lyhenne" msprop:Generator_UserChildTable="Liittyy" msprop:Generator_ChildPropName="GetLiittyyRows" msprop:Generator_ParentPropName="YksikkoRow" msprop:Generator_UserRelationName="Liittyy_Lyhenne" msprop:Generator_RelationVarName="relationLiittyy_Lyhenne" msprop:Generator_UserParentTable="Yksikko" />
      <msdata:Relationship name="Liittyy_ReseptiID" msdata:parent="Resepti" msdata:child="Liittyy" msdata:parentkey="ReseptiID" msdata:childkey="Resepti_ReseptiID" msprop:Generator_UserChildTable="Liittyy" msprop:Generator_ChildPropName="GetLiittyyRows" msprop:Generator_ParentPropName="ReseptiRow" msprop:Generator_UserRelationName="Liittyy_ReseptiID" msprop:Generator_RelationVarName="relationLiittyy_ReseptiID" msprop:Generator_UserParentTable="Resepti" />
      <msdata:Relationship name="Ohje_ReseptiID" msdata:parent="Resepti" msdata:child="Ohje" msdata:parentkey="ReseptiID" msdata:childkey="ReseptiID" msprop:Generator_UserChildTable="Ohje" msprop:Generator_ChildPropName="GetOhjeRows" msprop:Generator_ParentPropName="ReseptiRow" msprop:Generator_UserRelationName="Ohje_ReseptiID" msprop:Generator_RelationVarName="relationOhje_ReseptiID" msprop:Generator_UserParentTable="Resepti" />
      <msdata:Relationship name="Resepti_RuokalajiID" msdata:parent="Ruokalaji" msdata:child="Resepti" msdata:parentkey="RuokalajiID" msdata:childkey="RuokalajiID" msprop:Generator_UserChildTable="Resepti" msprop:Generator_ChildPropName="GetReseptiRows" msprop:Generator_ParentPropName="RuokalajiRow" msprop:Generator_UserRelationName="Resepti_RuokalajiID" msprop:Generator_RelationVarName="relationResepti_RuokalajiID" msprop:Generator_UserParentTable="Ruokalaji" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>