Session3_4DataSet.xsd 136 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="Session3_4DataSet" targetNamespace="http://tempuri.org/Session3_4DataSet.xsd" xmlns:mstns="http://tempuri.org/Session3_4DataSet.xsd" xmlns="http://tempuri.org/Session3_4DataSet.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">
  3. <xs:annotation>
  4. <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
  5. <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  6. <Connections>
  7. <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="Session3_4ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Session3_4ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Session_4.Properties.Settings.GlobalReference.Default.Session3_4ConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AircraftsTableAdapter" GeneratorDataComponentClassName="AircraftsTableAdapter" Name="Aircrafts" UserDataComponentName="AircraftsTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Aircrafts" 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">
  13. <DeleteCommand>
  14. <DbCommand CommandType="Text" ModifiedByUser="false">
  15. <CommandText>DELETE FROM [dbo].[Aircrafts] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_MakeModel = 1 AND [MakeModel] IS NULL) OR ([MakeModel] = @Original_MakeModel)) AND ([TotalSeats] = @Original_TotalSeats) AND ([EconomySeats] = @Original_EconomySeats) AND ([BusinessSeats] = @Original_BusinessSeats))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MakeModel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MakeModel" SourceColumnNullMapping="true" SourceVersion="Original" />
  20. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MakeModel" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MakeModel" SourceColumnNullMapping="false" SourceVersion="Original" />
  21. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TotalSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalSeats" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EconomySeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EconomySeats" SourceColumnNullMapping="false" SourceVersion="Original" />
  23. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_BusinessSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BusinessSeats" SourceColumnNullMapping="false" SourceVersion="Original" />
  24. </Parameters>
  25. </DbCommand>
  26. </DeleteCommand>
  27. <InsertCommand>
  28. <DbCommand CommandType="Text" ModifiedByUser="false">
  29. <CommandText>INSERT INTO [dbo].[Aircrafts] ([ID], [Name], [MakeModel], [TotalSeats], [EconomySeats], [BusinessSeats]) VALUES (@ID, @Name, @MakeModel, @TotalSeats, @EconomySeats, @BusinessSeats);
  30. SELECT ID, Name, MakeModel, TotalSeats, EconomySeats, BusinessSeats FROM Aircrafts WHERE (ID = @ID)</CommandText>
  31. <Parameters>
  32. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  33. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  34. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MakeModel" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MakeModel" SourceColumnNullMapping="false" SourceVersion="Current" />
  35. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TotalSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalSeats" SourceColumnNullMapping="false" SourceVersion="Current" />
  36. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EconomySeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EconomySeats" SourceColumnNullMapping="false" SourceVersion="Current" />
  37. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@BusinessSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BusinessSeats" SourceColumnNullMapping="false" SourceVersion="Current" />
  38. </Parameters>
  39. </DbCommand>
  40. </InsertCommand>
  41. <SelectCommand>
  42. <DbCommand CommandType="Text" ModifiedByUser="false">
  43. <CommandText>SELECT ID, Name, MakeModel, TotalSeats, EconomySeats, BusinessSeats FROM dbo.Aircrafts</CommandText>
  44. <Parameters />
  45. </DbCommand>
  46. </SelectCommand>
  47. <UpdateCommand>
  48. <DbCommand CommandType="Text" ModifiedByUser="false">
  49. <CommandText>UPDATE [dbo].[Aircrafts] SET [ID] = @ID, [Name] = @Name, [MakeModel] = @MakeModel, [TotalSeats] = @TotalSeats, [EconomySeats] = @EconomySeats, [BusinessSeats] = @BusinessSeats WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_MakeModel = 1 AND [MakeModel] IS NULL) OR ([MakeModel] = @Original_MakeModel)) AND ([TotalSeats] = @Original_TotalSeats) AND ([EconomySeats] = @Original_EconomySeats) AND ([BusinessSeats] = @Original_BusinessSeats));
  50. SELECT ID, Name, MakeModel, TotalSeats, EconomySeats, BusinessSeats FROM Aircrafts WHERE (ID = @ID)</CommandText>
  51. <Parameters>
  52. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  53. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  54. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MakeModel" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MakeModel" SourceColumnNullMapping="false" SourceVersion="Current" />
  55. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TotalSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalSeats" SourceColumnNullMapping="false" SourceVersion="Current" />
  56. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EconomySeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EconomySeats" SourceColumnNullMapping="false" SourceVersion="Current" />
  57. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@BusinessSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BusinessSeats" SourceColumnNullMapping="false" SourceVersion="Current" />
  58. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  59. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  60. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MakeModel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MakeModel" SourceColumnNullMapping="true" SourceVersion="Original" />
  61. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MakeModel" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MakeModel" SourceColumnNullMapping="false" SourceVersion="Original" />
  62. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TotalSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalSeats" SourceColumnNullMapping="false" SourceVersion="Original" />
  63. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EconomySeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EconomySeats" SourceColumnNullMapping="false" SourceVersion="Original" />
  64. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_BusinessSeats" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BusinessSeats" SourceColumnNullMapping="false" SourceVersion="Original" />
  65. </Parameters>
  66. </DbCommand>
  67. </UpdateCommand>
  68. </DbSource>
  69. </MainSource>
  70. <Mappings>
  71. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  72. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  73. <Mapping SourceColumn="MakeModel" DataSetColumn="MakeModel" />
  74. <Mapping SourceColumn="TotalSeats" DataSetColumn="TotalSeats" />
  75. <Mapping SourceColumn="EconomySeats" DataSetColumn="EconomySeats" />
  76. <Mapping SourceColumn="BusinessSeats" DataSetColumn="BusinessSeats" />
  77. </Mappings>
  78. <Sources />
  79. </TableAdapter>
  80. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AirportsTableAdapter" GeneratorDataComponentClassName="AirportsTableAdapter" Name="Airports" UserDataComponentName="AirportsTableAdapter">
  81. <MainSource>
  82. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Airports" 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">
  83. <DeleteCommand>
  84. <DbCommand CommandType="Text" ModifiedByUser="false">
  85. <CommandText>DELETE FROM [dbo].[Airports] WHERE (([ID] = @Original_ID) AND ([CountryID] = @Original_CountryID) AND ([IATACode] = @Original_IATACode) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))</CommandText>
  86. <Parameters>
  87. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  88. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Original" />
  89. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_IATACode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IATACode" SourceColumnNullMapping="false" SourceVersion="Original" />
  90. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
  91. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  92. </Parameters>
  93. </DbCommand>
  94. </DeleteCommand>
  95. <InsertCommand>
  96. <DbCommand CommandType="Text" ModifiedByUser="false">
  97. <CommandText>INSERT INTO [dbo].[Airports] ([CountryID], [IATACode], [Name]) VALUES (@CountryID, @IATACode, @Name);
  98. SELECT ID, CountryID, IATACode, Name FROM Airports WHERE (ID = SCOPE_IDENTITY())</CommandText>
  99. <Parameters>
  100. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Current" />
  101. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@IATACode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IATACode" SourceColumnNullMapping="false" SourceVersion="Current" />
  102. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  103. </Parameters>
  104. </DbCommand>
  105. </InsertCommand>
  106. <SelectCommand>
  107. <DbCommand CommandType="Text" ModifiedByUser="false">
  108. <CommandText>SELECT ID, CountryID, IATACode, Name FROM dbo.Airports</CommandText>
  109. <Parameters />
  110. </DbCommand>
  111. </SelectCommand>
  112. <UpdateCommand>
  113. <DbCommand CommandType="Text" ModifiedByUser="false">
  114. <CommandText>UPDATE [dbo].[Airports] SET [CountryID] = @CountryID, [IATACode] = @IATACode, [Name] = @Name WHERE (([ID] = @Original_ID) AND ([CountryID] = @Original_CountryID) AND ([IATACode] = @Original_IATACode) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)));
  115. SELECT ID, CountryID, IATACode, Name FROM Airports WHERE (ID = @ID)</CommandText>
  116. <Parameters>
  117. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Current" />
  118. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@IATACode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IATACode" SourceColumnNullMapping="false" SourceVersion="Current" />
  119. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  120. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  121. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Original" />
  122. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_IATACode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IATACode" SourceColumnNullMapping="false" SourceVersion="Original" />
  123. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
  124. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  125. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.Airports" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  126. </Parameters>
  127. </DbCommand>
  128. </UpdateCommand>
  129. </DbSource>
  130. </MainSource>
  131. <Mappings>
  132. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  133. <Mapping SourceColumn="CountryID" DataSetColumn="CountryID" />
  134. <Mapping SourceColumn="IATACode" DataSetColumn="IATACode" />
  135. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  136. </Mappings>
  137. <Sources />
  138. </TableAdapter>
  139. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CabinTypesTableAdapter" GeneratorDataComponentClassName="CabinTypesTableAdapter" Name="CabinTypes" UserDataComponentName="CabinTypesTableAdapter">
  140. <MainSource>
  141. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.CabinTypes" 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">
  142. <DeleteCommand>
  143. <DbCommand CommandType="Text" ModifiedByUser="false">
  144. <CommandText>DELETE FROM [dbo].[CabinTypes] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name))</CommandText>
  145. <Parameters>
  146. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  147. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  148. </Parameters>
  149. </DbCommand>
  150. </DeleteCommand>
  151. <InsertCommand>
  152. <DbCommand CommandType="Text" ModifiedByUser="false">
  153. <CommandText>INSERT INTO [dbo].[CabinTypes] ([Name]) VALUES (@Name);
  154. SELECT ID, Name FROM CabinTypes WHERE (ID = SCOPE_IDENTITY())</CommandText>
  155. <Parameters>
  156. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  157. </Parameters>
  158. </DbCommand>
  159. </InsertCommand>
  160. <SelectCommand>
  161. <DbCommand CommandType="Text" ModifiedByUser="false">
  162. <CommandText>SELECT ID, Name FROM dbo.CabinTypes</CommandText>
  163. <Parameters />
  164. </DbCommand>
  165. </SelectCommand>
  166. <UpdateCommand>
  167. <DbCommand CommandType="Text" ModifiedByUser="false">
  168. <CommandText>UPDATE [dbo].[CabinTypes] SET [Name] = @Name WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name));
  169. SELECT ID, Name FROM CabinTypes WHERE (ID = @ID)</CommandText>
  170. <Parameters>
  171. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  172. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  173. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  174. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.CabinTypes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  175. </Parameters>
  176. </DbCommand>
  177. </UpdateCommand>
  178. </DbSource>
  179. </MainSource>
  180. <Mappings>
  181. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  182. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  183. </Mappings>
  184. <Sources />
  185. </TableAdapter>
  186. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CountriesTableAdapter" GeneratorDataComponentClassName="CountriesTableAdapter" Name="Countries" UserDataComponentName="CountriesTableAdapter">
  187. <MainSource>
  188. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Countries" 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">
  189. <DeleteCommand>
  190. <DbCommand CommandType="Text" ModifiedByUser="false">
  191. <CommandText>DELETE FROM [dbo].[Countries] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name))</CommandText>
  192. <Parameters>
  193. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  194. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  195. </Parameters>
  196. </DbCommand>
  197. </DeleteCommand>
  198. <InsertCommand>
  199. <DbCommand CommandType="Text" ModifiedByUser="false">
  200. <CommandText>INSERT INTO [dbo].[Countries] ([Name]) VALUES (@Name);
  201. SELECT ID, Name FROM Countries WHERE (ID = SCOPE_IDENTITY())</CommandText>
  202. <Parameters>
  203. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  204. </Parameters>
  205. </DbCommand>
  206. </InsertCommand>
  207. <SelectCommand>
  208. <DbCommand CommandType="Text" ModifiedByUser="false">
  209. <CommandText>SELECT ID, Name FROM dbo.Countries</CommandText>
  210. <Parameters />
  211. </DbCommand>
  212. </SelectCommand>
  213. <UpdateCommand>
  214. <DbCommand CommandType="Text" ModifiedByUser="false">
  215. <CommandText>UPDATE [dbo].[Countries] SET [Name] = @Name WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name));
  216. SELECT ID, Name FROM Countries WHERE (ID = @ID)</CommandText>
  217. <Parameters>
  218. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  219. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  220. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  221. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.Countries" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  222. </Parameters>
  223. </DbCommand>
  224. </UpdateCommand>
  225. </DbSource>
  226. </MainSource>
  227. <Mappings>
  228. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  229. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  230. </Mappings>
  231. <Sources />
  232. </TableAdapter>
  233. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OfficesTableAdapter" GeneratorDataComponentClassName="OfficesTableAdapter" Name="Offices" UserDataComponentName="OfficesTableAdapter">
  234. <MainSource>
  235. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Offices" 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">
  236. <DeleteCommand>
  237. <DbCommand CommandType="Text" ModifiedByUser="false">
  238. <CommandText>DELETE FROM [dbo].[Offices] WHERE (([ID] = @Original_ID) AND ([CountryID] = @Original_CountryID) AND ([Title] = @Original_Title) AND ([Phone] = @Original_Phone) AND ([Contact] = @Original_Contact))</CommandText>
  239. <Parameters>
  240. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  241. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Original" />
  242. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  243. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  244. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Contact" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Contact" SourceColumnNullMapping="false" SourceVersion="Original" />
  245. </Parameters>
  246. </DbCommand>
  247. </DeleteCommand>
  248. <InsertCommand>
  249. <DbCommand CommandType="Text" ModifiedByUser="false">
  250. <CommandText>INSERT INTO [dbo].[Offices] ([CountryID], [Title], [Phone], [Contact]) VALUES (@CountryID, @Title, @Phone, @Contact);
  251. SELECT ID, CountryID, Title, Phone, Contact FROM Offices WHERE (ID = SCOPE_IDENTITY())</CommandText>
  252. <Parameters>
  253. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Current" />
  254. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  255. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  256. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Contact" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Contact" SourceColumnNullMapping="false" SourceVersion="Current" />
  257. </Parameters>
  258. </DbCommand>
  259. </InsertCommand>
  260. <SelectCommand>
  261. <DbCommand CommandType="Text" ModifiedByUser="false">
  262. <CommandText>SELECT ID, CountryID, Title, Phone, Contact FROM dbo.Offices</CommandText>
  263. <Parameters />
  264. </DbCommand>
  265. </SelectCommand>
  266. <UpdateCommand>
  267. <DbCommand CommandType="Text" ModifiedByUser="false">
  268. <CommandText>UPDATE [dbo].[Offices] SET [CountryID] = @CountryID, [Title] = @Title, [Phone] = @Phone, [Contact] = @Contact WHERE (([ID] = @Original_ID) AND ([CountryID] = @Original_CountryID) AND ([Title] = @Original_Title) AND ([Phone] = @Original_Phone) AND ([Contact] = @Original_Contact));
  269. SELECT ID, CountryID, Title, Phone, Contact FROM Offices WHERE (ID = @ID)</CommandText>
  270. <Parameters>
  271. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Current" />
  272. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  273. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  274. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Contact" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Contact" SourceColumnNullMapping="false" SourceVersion="Current" />
  275. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  276. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountryID" SourceColumnNullMapping="false" SourceVersion="Original" />
  277. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  278. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  279. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Contact" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Contact" SourceColumnNullMapping="false" SourceVersion="Original" />
  280. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.Offices" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  281. </Parameters>
  282. </DbCommand>
  283. </UpdateCommand>
  284. </DbSource>
  285. </MainSource>
  286. <Mappings>
  287. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  288. <Mapping SourceColumn="CountryID" DataSetColumn="CountryID" />
  289. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  290. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  291. <Mapping SourceColumn="Contact" DataSetColumn="Contact" />
  292. </Mappings>
  293. <Sources />
  294. </TableAdapter>
  295. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RolesTableAdapter" GeneratorDataComponentClassName="RolesTableAdapter" Name="Roles" UserDataComponentName="RolesTableAdapter">
  296. <MainSource>
  297. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Roles" 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">
  298. <DeleteCommand>
  299. <DbCommand CommandType="Text" ModifiedByUser="false">
  300. <CommandText>DELETE FROM [dbo].[Roles] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title))</CommandText>
  301. <Parameters>
  302. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  303. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  304. </Parameters>
  305. </DbCommand>
  306. </DeleteCommand>
  307. <InsertCommand>
  308. <DbCommand CommandType="Text" ModifiedByUser="false">
  309. <CommandText>INSERT INTO [dbo].[Roles] ([ID], [Title]) VALUES (@ID, @Title);
  310. SELECT ID, Title FROM Roles WHERE (ID = @ID)</CommandText>
  311. <Parameters>
  312. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  313. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  314. </Parameters>
  315. </DbCommand>
  316. </InsertCommand>
  317. <SelectCommand>
  318. <DbCommand CommandType="Text" ModifiedByUser="false">
  319. <CommandText>SELECT ID, Title FROM dbo.Roles</CommandText>
  320. <Parameters />
  321. </DbCommand>
  322. </SelectCommand>
  323. <UpdateCommand>
  324. <DbCommand CommandType="Text" ModifiedByUser="false">
  325. <CommandText>UPDATE [dbo].[Roles] SET [ID] = @ID, [Title] = @Title WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title));
  326. SELECT ID, Title FROM Roles WHERE (ID = @ID)</CommandText>
  327. <Parameters>
  328. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  329. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  330. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  331. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  332. </Parameters>
  333. </DbCommand>
  334. </UpdateCommand>
  335. </DbSource>
  336. </MainSource>
  337. <Mappings>
  338. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  339. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  340. </Mappings>
  341. <Sources />
  342. </TableAdapter>
  343. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RoutesTableAdapter" GeneratorDataComponentClassName="RoutesTableAdapter" Name="Routes" UserDataComponentName="RoutesTableAdapter">
  344. <MainSource>
  345. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Routes" 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">
  346. <DeleteCommand>
  347. <DbCommand CommandType="Text" ModifiedByUser="false">
  348. <CommandText>DELETE FROM [dbo].[Routes] WHERE (([ID] = @Original_ID) AND ([DepartureAirportID] = @Original_DepartureAirportID) AND ([ArrivalAirportID] = @Original_ArrivalAirportID) AND ([Distance] = @Original_Distance) AND ([FlightTime] = @Original_FlightTime))</CommandText>
  349. <Parameters>
  350. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  351. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DepartureAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DepartureAirportID" SourceColumnNullMapping="false" SourceVersion="Original" />
  352. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ArrivalAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ArrivalAirportID" SourceColumnNullMapping="false" SourceVersion="Original" />
  353. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Distance" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Original" />
  354. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FlightTime" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FlightTime" SourceColumnNullMapping="false" SourceVersion="Original" />
  355. </Parameters>
  356. </DbCommand>
  357. </DeleteCommand>
  358. <InsertCommand>
  359. <DbCommand CommandType="Text" ModifiedByUser="false">
  360. <CommandText>INSERT INTO [dbo].[Routes] ([DepartureAirportID], [ArrivalAirportID], [Distance], [FlightTime]) VALUES (@DepartureAirportID, @ArrivalAirportID, @Distance, @FlightTime);
  361. SELECT ID, DepartureAirportID, ArrivalAirportID, Distance, FlightTime FROM Routes WHERE (ID = SCOPE_IDENTITY())</CommandText>
  362. <Parameters>
  363. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DepartureAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DepartureAirportID" SourceColumnNullMapping="false" SourceVersion="Current" />
  364. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ArrivalAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ArrivalAirportID" SourceColumnNullMapping="false" SourceVersion="Current" />
  365. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Distance" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Current" />
  366. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FlightTime" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FlightTime" SourceColumnNullMapping="false" SourceVersion="Current" />
  367. </Parameters>
  368. </DbCommand>
  369. </InsertCommand>
  370. <SelectCommand>
  371. <DbCommand CommandType="Text" ModifiedByUser="false">
  372. <CommandText>SELECT ID, DepartureAirportID, ArrivalAirportID, Distance, FlightTime FROM dbo.Routes</CommandText>
  373. <Parameters />
  374. </DbCommand>
  375. </SelectCommand>
  376. <UpdateCommand>
  377. <DbCommand CommandType="Text" ModifiedByUser="false">
  378. <CommandText>UPDATE [dbo].[Routes] SET [DepartureAirportID] = @DepartureAirportID, [ArrivalAirportID] = @ArrivalAirportID, [Distance] = @Distance, [FlightTime] = @FlightTime WHERE (([ID] = @Original_ID) AND ([DepartureAirportID] = @Original_DepartureAirportID) AND ([ArrivalAirportID] = @Original_ArrivalAirportID) AND ([Distance] = @Original_Distance) AND ([FlightTime] = @Original_FlightTime));
  379. SELECT ID, DepartureAirportID, ArrivalAirportID, Distance, FlightTime FROM Routes WHERE (ID = @ID)</CommandText>
  380. <Parameters>
  381. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DepartureAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DepartureAirportID" SourceColumnNullMapping="false" SourceVersion="Current" />
  382. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ArrivalAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ArrivalAirportID" SourceColumnNullMapping="false" SourceVersion="Current" />
  383. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Distance" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Current" />
  384. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FlightTime" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FlightTime" SourceColumnNullMapping="false" SourceVersion="Current" />
  385. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  386. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DepartureAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DepartureAirportID" SourceColumnNullMapping="false" SourceVersion="Original" />
  387. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ArrivalAirportID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ArrivalAirportID" SourceColumnNullMapping="false" SourceVersion="Original" />
  388. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Distance" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Original" />
  389. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FlightTime" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FlightTime" SourceColumnNullMapping="false" SourceVersion="Original" />
  390. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.Routes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  391. </Parameters>
  392. </DbCommand>
  393. </UpdateCommand>
  394. </DbSource>
  395. </MainSource>
  396. <Mappings>
  397. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  398. <Mapping SourceColumn="DepartureAirportID" DataSetColumn="DepartureAirportID" />
  399. <Mapping SourceColumn="ArrivalAirportID" DataSetColumn="ArrivalAirportID" />
  400. <Mapping SourceColumn="Distance" DataSetColumn="Distance" />
  401. <Mapping SourceColumn="FlightTime" DataSetColumn="FlightTime" />
  402. </Mappings>
  403. <Sources />
  404. </TableAdapter>
  405. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SchedulesTableAdapter" GeneratorDataComponentClassName="SchedulesTableAdapter" Name="Schedules" UserDataComponentName="SchedulesTableAdapter">
  406. <MainSource>
  407. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Schedules" 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">
  408. <DeleteCommand>
  409. <DbCommand CommandType="Text" ModifiedByUser="false">
  410. <CommandText>DELETE FROM [dbo].[Schedules] WHERE (([ID] = @Original_ID) AND ([Date] = @Original_Date) AND ([Time] = @Original_Time) AND ([AircraftID] = @Original_AircraftID) AND ([RouteID] = @Original_RouteID) AND ([EconomyPrice] = @Original_EconomyPrice) AND ([Confirmed] = @Original_Confirmed) AND ((@IsNull_FlightNumber = 1 AND [FlightNumber] IS NULL) OR ([FlightNumber] = @Original_FlightNumber)))</CommandText>
  411. <Parameters>
  412. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  413. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Date" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Original" />
  414. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Original_Time" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Original" />
  415. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AircraftID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AircraftID" SourceColumnNullMapping="false" SourceVersion="Original" />
  416. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RouteID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RouteID" SourceColumnNullMapping="false" SourceVersion="Original" />
  417. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_EconomyPrice" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="EconomyPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
  418. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Original" />
  419. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FlightNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FlightNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
  420. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FlightNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FlightNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  421. </Parameters>
  422. </DbCommand>
  423. </DeleteCommand>
  424. <InsertCommand>
  425. <DbCommand CommandType="Text" ModifiedByUser="false">
  426. <CommandText>INSERT INTO [dbo].[Schedules] ([Date], [Time], [AircraftID], [RouteID], [EconomyPrice], [Confirmed], [FlightNumber]) VALUES (@Date, @Time, @AircraftID, @RouteID, @EconomyPrice, @Confirmed, @FlightNumber);
  427. SELECT ID, Date, Time, AircraftID, RouteID, EconomyPrice, Confirmed, FlightNumber FROM Schedules WHERE (ID = SCOPE_IDENTITY())</CommandText>
  428. <Parameters>
  429. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Date" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
  430. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Time" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Current" />
  431. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AircraftID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AircraftID" SourceColumnNullMapping="false" SourceVersion="Current" />
  432. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RouteID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RouteID" SourceColumnNullMapping="false" SourceVersion="Current" />
  433. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@EconomyPrice" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="EconomyPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
  434. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Current" />
  435. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FlightNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FlightNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  436. </Parameters>
  437. </DbCommand>
  438. </InsertCommand>
  439. <SelectCommand>
  440. <DbCommand CommandType="Text" ModifiedByUser="false">
  441. <CommandText>SELECT ID, Date, Time, AircraftID, RouteID, EconomyPrice, Confirmed, FlightNumber FROM dbo.Schedules</CommandText>
  442. <Parameters />
  443. </DbCommand>
  444. </SelectCommand>
  445. <UpdateCommand>
  446. <DbCommand CommandType="Text" ModifiedByUser="false">
  447. <CommandText>UPDATE [dbo].[Schedules] SET [Date] = @Date, [Time] = @Time, [AircraftID] = @AircraftID, [RouteID] = @RouteID, [EconomyPrice] = @EconomyPrice, [Confirmed] = @Confirmed, [FlightNumber] = @FlightNumber WHERE (([ID] = @Original_ID) AND ([Date] = @Original_Date) AND ([Time] = @Original_Time) AND ([AircraftID] = @Original_AircraftID) AND ([RouteID] = @Original_RouteID) AND ([EconomyPrice] = @Original_EconomyPrice) AND ([Confirmed] = @Original_Confirmed) AND ((@IsNull_FlightNumber = 1 AND [FlightNumber] IS NULL) OR ([FlightNumber] = @Original_FlightNumber)));
  448. SELECT ID, Date, Time, AircraftID, RouteID, EconomyPrice, Confirmed, FlightNumber FROM Schedules WHERE (ID = @ID)</CommandText>
  449. <Parameters>
  450. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Date" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
  451. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Time" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Current" />
  452. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AircraftID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AircraftID" SourceColumnNullMapping="false" SourceVersion="Current" />
  453. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RouteID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RouteID" SourceColumnNullMapping="false" SourceVersion="Current" />
  454. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@EconomyPrice" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="EconomyPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
  455. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Current" />
  456. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FlightNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FlightNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  457. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  458. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Date" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Original" />
  459. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Time" Direction="Input" ParameterName="@Original_Time" Precision="0" ProviderType="Time" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Original" />
  460. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AircraftID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AircraftID" SourceColumnNullMapping="false" SourceVersion="Original" />
  461. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RouteID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RouteID" SourceColumnNullMapping="false" SourceVersion="Original" />
  462. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_EconomyPrice" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="EconomyPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
  463. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Original" />
  464. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FlightNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FlightNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
  465. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FlightNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FlightNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  466. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.Schedules" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  467. </Parameters>
  468. </DbCommand>
  469. </UpdateCommand>
  470. </DbSource>
  471. </MainSource>
  472. <Mappings>
  473. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  474. <Mapping SourceColumn="Date" DataSetColumn="Date" />
  475. <Mapping SourceColumn="Time" DataSetColumn="Time" />
  476. <Mapping SourceColumn="AircraftID" DataSetColumn="AircraftID" />
  477. <Mapping SourceColumn="RouteID" DataSetColumn="RouteID" />
  478. <Mapping SourceColumn="EconomyPrice" DataSetColumn="EconomyPrice" />
  479. <Mapping SourceColumn="Confirmed" DataSetColumn="Confirmed" />
  480. <Mapping SourceColumn="FlightNumber" DataSetColumn="FlightNumber" />
  481. </Mappings>
  482. <Sources />
  483. </TableAdapter>
  484. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TicketsTableAdapter" GeneratorDataComponentClassName="TicketsTableAdapter" Name="Tickets" UserDataComponentName="TicketsTableAdapter">
  485. <MainSource>
  486. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Tickets" 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">
  487. <DeleteCommand>
  488. <DbCommand CommandType="Text" ModifiedByUser="false">
  489. <CommandText>DELETE FROM [dbo].[Tickets] WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ([ScheduleID] = @Original_ScheduleID) AND ([CabinTypeID] = @Original_CabinTypeID) AND ([Firstname] = @Original_Firstname) AND ([Lastname] = @Original_Lastname) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([PassportNumber] = @Original_PassportNumber) AND ([PassportCountryID] = @Original_PassportCountryID) AND ([BookingReference] = @Original_BookingReference) AND ([Confirmed] = @Original_Confirmed))</CommandText>
  490. <Parameters>
  491. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  492. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  493. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ScheduleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ScheduleID" SourceColumnNullMapping="false" SourceVersion="Original" />
  494. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CabinTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CabinTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  495. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
  496. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
  497. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  498. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  499. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  500. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PassportNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PassportNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  501. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PassportCountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PassportCountryID" SourceColumnNullMapping="false" SourceVersion="Original" />
  502. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_BookingReference" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BookingReference" SourceColumnNullMapping="false" SourceVersion="Original" />
  503. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Original" />
  504. </Parameters>
  505. </DbCommand>
  506. </DeleteCommand>
  507. <InsertCommand>
  508. <DbCommand CommandType="Text" ModifiedByUser="false">
  509. <CommandText>INSERT INTO [dbo].[Tickets] ([UserID], [ScheduleID], [CabinTypeID], [Firstname], [Lastname], [Email], [Phone], [PassportNumber], [PassportCountryID], [BookingReference], [Confirmed]) VALUES (@UserID, @ScheduleID, @CabinTypeID, @Firstname, @Lastname, @Email, @Phone, @PassportNumber, @PassportCountryID, @BookingReference, @Confirmed);
  510. SELECT ID, UserID, ScheduleID, CabinTypeID, Firstname, Lastname, Email, Phone, PassportNumber, PassportCountryID, BookingReference, Confirmed FROM Tickets WHERE (ID = SCOPE_IDENTITY())</CommandText>
  511. <Parameters>
  512. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  513. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ScheduleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ScheduleID" SourceColumnNullMapping="false" SourceVersion="Current" />
  514. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CabinTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CabinTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  515. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
  516. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
  517. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  518. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  519. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PassportNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PassportNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  520. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PassportCountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PassportCountryID" SourceColumnNullMapping="false" SourceVersion="Current" />
  521. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@BookingReference" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BookingReference" SourceColumnNullMapping="false" SourceVersion="Current" />
  522. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Current" />
  523. </Parameters>
  524. </DbCommand>
  525. </InsertCommand>
  526. <SelectCommand>
  527. <DbCommand CommandType="Text" ModifiedByUser="false">
  528. <CommandText>SELECT ID, UserID, ScheduleID, CabinTypeID, Firstname, Lastname, Email, Phone, PassportNumber, PassportCountryID, BookingReference, Confirmed FROM dbo.Tickets</CommandText>
  529. <Parameters />
  530. </DbCommand>
  531. </SelectCommand>
  532. <UpdateCommand>
  533. <DbCommand CommandType="Text" ModifiedByUser="false">
  534. <CommandText>UPDATE [dbo].[Tickets] SET [UserID] = @UserID, [ScheduleID] = @ScheduleID, [CabinTypeID] = @CabinTypeID, [Firstname] = @Firstname, [Lastname] = @Lastname, [Email] = @Email, [Phone] = @Phone, [PassportNumber] = @PassportNumber, [PassportCountryID] = @PassportCountryID, [BookingReference] = @BookingReference, [Confirmed] = @Confirmed WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ([ScheduleID] = @Original_ScheduleID) AND ([CabinTypeID] = @Original_CabinTypeID) AND ([Firstname] = @Original_Firstname) AND ([Lastname] = @Original_Lastname) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([PassportNumber] = @Original_PassportNumber) AND ([PassportCountryID] = @Original_PassportCountryID) AND ([BookingReference] = @Original_BookingReference) AND ([Confirmed] = @Original_Confirmed));
  535. SELECT ID, UserID, ScheduleID, CabinTypeID, Firstname, Lastname, Email, Phone, PassportNumber, PassportCountryID, BookingReference, Confirmed FROM Tickets WHERE (ID = @ID)</CommandText>
  536. <Parameters>
  537. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  538. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ScheduleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ScheduleID" SourceColumnNullMapping="false" SourceVersion="Current" />
  539. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CabinTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CabinTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  540. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
  541. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
  542. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  543. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  544. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PassportNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PassportNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  545. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PassportCountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PassportCountryID" SourceColumnNullMapping="false" SourceVersion="Current" />
  546. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@BookingReference" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BookingReference" SourceColumnNullMapping="false" SourceVersion="Current" />
  547. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Current" />
  548. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  549. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  550. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ScheduleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ScheduleID" SourceColumnNullMapping="false" SourceVersion="Original" />
  551. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CabinTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CabinTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  552. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
  553. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
  554. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  555. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  556. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  557. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PassportNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PassportNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  558. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PassportCountryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PassportCountryID" SourceColumnNullMapping="false" SourceVersion="Original" />
  559. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_BookingReference" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BookingReference" SourceColumnNullMapping="false" SourceVersion="Original" />
  560. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Confirmed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Confirmed" SourceColumnNullMapping="false" SourceVersion="Original" />
  561. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.Tickets" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  562. </Parameters>
  563. </DbCommand>
  564. </UpdateCommand>
  565. </DbSource>
  566. </MainSource>
  567. <Mappings>
  568. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  569. <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
  570. <Mapping SourceColumn="ScheduleID" DataSetColumn="ScheduleID" />
  571. <Mapping SourceColumn="CabinTypeID" DataSetColumn="CabinTypeID" />
  572. <Mapping SourceColumn="Firstname" DataSetColumn="Firstname" />
  573. <Mapping SourceColumn="Lastname" DataSetColumn="Lastname" />
  574. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  575. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  576. <Mapping SourceColumn="PassportNumber" DataSetColumn="PassportNumber" />
  577. <Mapping SourceColumn="PassportCountryID" DataSetColumn="PassportCountryID" />
  578. <Mapping SourceColumn="BookingReference" DataSetColumn="BookingReference" />
  579. <Mapping SourceColumn="Confirmed" DataSetColumn="Confirmed" />
  580. </Mappings>
  581. <Sources />
  582. </TableAdapter>
  583. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter">
  584. <MainSource>
  585. <DbSource ConnectionRef="Session3_4ConnectionString (Settings)" DbObjectName="Session3_4.dbo.Users" 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">
  586. <DeleteCommand>
  587. <DbCommand CommandType="Text" ModifiedByUser="false">
  588. <CommandText>DELETE FROM [dbo].[Users] WHERE (([ID] = @Original_ID) AND ([RoleID] = @Original_RoleID) AND ([Email] = @Original_Email) AND ([Password] = @Original_Password) AND ((@IsNull_FirstName = 1 AND [FirstName] IS NULL) OR ([FirstName] = @Original_FirstName)) AND ([LastName] = @Original_LastName) AND ((@IsNull_OfficeID = 1 AND [OfficeID] IS NULL) OR ([OfficeID] = @Original_OfficeID)) AND ((@IsNull_Birthdate = 1 AND [Birthdate] IS NULL) OR ([Birthdate] = @Original_Birthdate)) AND ((@IsNull_Active = 1 AND [Active] IS NULL) OR ([Active] = @Original_Active)))</CommandText>
  589. <Parameters>
  590. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  591. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RoleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Original" />
  592. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  593. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  594. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FirstName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="true" SourceVersion="Original" />
  595. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
  596. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" />
  597. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OfficeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OfficeID" SourceColumnNullMapping="true" SourceVersion="Original" />
  598. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OfficeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OfficeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  599. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthdate" SourceColumnNullMapping="true" SourceVersion="Original" />
  600. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Birthdate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthdate" SourceColumnNullMapping="false" SourceVersion="Original" />
  601. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Active" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Active" SourceColumnNullMapping="true" SourceVersion="Original" />
  602. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Active" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Active" SourceColumnNullMapping="false" SourceVersion="Original" />
  603. </Parameters>
  604. </DbCommand>
  605. </DeleteCommand>
  606. <InsertCommand>
  607. <DbCommand CommandType="Text" ModifiedByUser="false">
  608. <CommandText>INSERT INTO [dbo].[Users] ([RoleID], [Email], [Password], [FirstName], [LastName], [OfficeID], [Birthdate], [Active]) VALUES (@RoleID, @Email, @Password, @FirstName, @LastName, @OfficeID, @Birthdate, @Active);
  609. SELECT ID, RoleID, Email, Password, FirstName, LastName, OfficeID, Birthdate, Active FROM Users WHERE (ID = SCOPE_IDENTITY())</CommandText>
  610. <Parameters>
  611. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RoleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Current" />
  612. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  613. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  614. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
  615. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" />
  616. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OfficeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OfficeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  617. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Birthdate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthdate" SourceColumnNullMapping="false" SourceVersion="Current" />
  618. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Active" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Active" SourceColumnNullMapping="false" SourceVersion="Current" />
  619. </Parameters>
  620. </DbCommand>
  621. </InsertCommand>
  622. <SelectCommand>
  623. <DbCommand CommandType="Text" ModifiedByUser="false">
  624. <CommandText>SELECT ID, RoleID, Email, Password, FirstName, LastName, OfficeID, Birthdate, Active FROM dbo.Users</CommandText>
  625. <Parameters />
  626. </DbCommand>
  627. </SelectCommand>
  628. <UpdateCommand>
  629. <DbCommand CommandType="Text" ModifiedByUser="false">
  630. <CommandText>UPDATE [dbo].[Users] SET [RoleID] = @RoleID, [Email] = @Email, [Password] = @Password, [FirstName] = @FirstName, [LastName] = @LastName, [OfficeID] = @OfficeID, [Birthdate] = @Birthdate, [Active] = @Active WHERE (([ID] = @Original_ID) AND ([RoleID] = @Original_RoleID) AND ([Email] = @Original_Email) AND ([Password] = @Original_Password) AND ((@IsNull_FirstName = 1 AND [FirstName] IS NULL) OR ([FirstName] = @Original_FirstName)) AND ([LastName] = @Original_LastName) AND ((@IsNull_OfficeID = 1 AND [OfficeID] IS NULL) OR ([OfficeID] = @Original_OfficeID)) AND ((@IsNull_Birthdate = 1 AND [Birthdate] IS NULL) OR ([Birthdate] = @Original_Birthdate)) AND ((@IsNull_Active = 1 AND [Active] IS NULL) OR ([Active] = @Original_Active)));
  631. SELECT ID, RoleID, Email, Password, FirstName, LastName, OfficeID, Birthdate, Active FROM Users WHERE (ID = @ID)</CommandText>
  632. <Parameters>
  633. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RoleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Current" />
  634. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  635. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  636. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
  637. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" />
  638. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OfficeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OfficeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  639. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Birthdate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthdate" SourceColumnNullMapping="false" SourceVersion="Current" />
  640. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Active" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Active" SourceColumnNullMapping="false" SourceVersion="Current" />
  641. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  642. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RoleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Original" />
  643. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  644. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  645. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FirstName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="true" SourceVersion="Original" />
  646. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
  647. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" />
  648. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OfficeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OfficeID" SourceColumnNullMapping="true" SourceVersion="Original" />
  649. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OfficeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OfficeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  650. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthdate" SourceColumnNullMapping="true" SourceVersion="Original" />
  651. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Birthdate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthdate" SourceColumnNullMapping="false" SourceVersion="Original" />
  652. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Active" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Active" SourceColumnNullMapping="true" SourceVersion="Original" />
  653. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Active" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Active" SourceColumnNullMapping="false" SourceVersion="Original" />
  654. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Session3_4.dbo.Users" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  655. </Parameters>
  656. </DbCommand>
  657. </UpdateCommand>
  658. </DbSource>
  659. </MainSource>
  660. <Mappings>
  661. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  662. <Mapping SourceColumn="RoleID" DataSetColumn="RoleID" />
  663. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  664. <Mapping SourceColumn="Password" DataSetColumn="Password" />
  665. <Mapping SourceColumn="FirstName" DataSetColumn="FirstName" />
  666. <Mapping SourceColumn="LastName" DataSetColumn="LastName" />
  667. <Mapping SourceColumn="OfficeID" DataSetColumn="OfficeID" />
  668. <Mapping SourceColumn="Birthdate" DataSetColumn="Birthdate" />
  669. <Mapping SourceColumn="Active" DataSetColumn="Active" />
  670. </Mappings>
  671. <Sources />
  672. </TableAdapter>
  673. </Tables>
  674. <Sources />
  675. </DataSource>
  676. </xs:appinfo>
  677. </xs:annotation>
  678. <xs:element name="Session3_4DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Session3_4DataSet" msprop:Generator_UserDSName="Session3_4DataSet">
  679. <xs:complexType>
  680. <xs:choice minOccurs="0" maxOccurs="unbounded">
  681. <xs:element name="Aircrafts" msprop:Generator_TableClassName="AircraftsDataTable" msprop:Generator_TableVarName="tableAircrafts" msprop:Generator_TablePropName="Aircrafts" msprop:Generator_RowDeletingName="AircraftsRowDeleting" msprop:Generator_RowChangingName="AircraftsRowChanging" msprop:Generator_RowEvHandlerName="AircraftsRowChangeEventHandler" msprop:Generator_RowDeletedName="AircraftsRowDeleted" msprop:Generator_UserTableName="Aircrafts" msprop:Generator_RowChangedName="AircraftsRowChanged" msprop:Generator_RowEvArgName="AircraftsRowChangeEvent" msprop:Generator_RowClassName="AircraftsRow">
  682. <xs:complexType>
  683. <xs:sequence>
  684. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  685. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
  686. <xs:simpleType>
  687. <xs:restriction base="xs:string">
  688. <xs:maxLength value="50" />
  689. </xs:restriction>
  690. </xs:simpleType>
  691. </xs:element>
  692. <xs:element name="MakeModel" msprop:Generator_ColumnVarNameInTable="columnMakeModel" msprop:Generator_ColumnPropNameInRow="MakeModel" msprop:Generator_ColumnPropNameInTable="MakeModelColumn" msprop:Generator_UserColumnName="MakeModel" minOccurs="0">
  693. <xs:simpleType>
  694. <xs:restriction base="xs:string">
  695. <xs:maxLength value="10" />
  696. </xs:restriction>
  697. </xs:simpleType>
  698. </xs:element>
  699. <xs:element name="TotalSeats" msprop:Generator_ColumnVarNameInTable="columnTotalSeats" msprop:Generator_ColumnPropNameInRow="TotalSeats" msprop:Generator_ColumnPropNameInTable="TotalSeatsColumn" msprop:Generator_UserColumnName="TotalSeats" type="xs:int" />
  700. <xs:element name="EconomySeats" msprop:Generator_ColumnVarNameInTable="columnEconomySeats" msprop:Generator_ColumnPropNameInRow="EconomySeats" msprop:Generator_ColumnPropNameInTable="EconomySeatsColumn" msprop:Generator_UserColumnName="EconomySeats" type="xs:int" />
  701. <xs:element name="BusinessSeats" msprop:Generator_ColumnVarNameInTable="columnBusinessSeats" msprop:Generator_ColumnPropNameInRow="BusinessSeats" msprop:Generator_ColumnPropNameInTable="BusinessSeatsColumn" msprop:Generator_UserColumnName="BusinessSeats" type="xs:int" />
  702. </xs:sequence>
  703. </xs:complexType>
  704. </xs:element>
  705. <xs:element name="Airports" msprop:Generator_TableClassName="AirportsDataTable" msprop:Generator_TableVarName="tableAirports" msprop:Generator_TablePropName="Airports" msprop:Generator_RowDeletingName="AirportsRowDeleting" msprop:Generator_RowChangingName="AirportsRowChanging" msprop:Generator_RowEvHandlerName="AirportsRowChangeEventHandler" msprop:Generator_RowDeletedName="AirportsRowDeleted" msprop:Generator_UserTableName="Airports" msprop:Generator_RowChangedName="AirportsRowChanged" msprop:Generator_RowEvArgName="AirportsRowChangeEvent" msprop:Generator_RowClassName="AirportsRow">
  706. <xs:complexType>
  707. <xs:sequence>
  708. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  709. <xs:element name="CountryID" msprop:Generator_ColumnVarNameInTable="columnCountryID" msprop:Generator_ColumnPropNameInRow="CountryID" msprop:Generator_ColumnPropNameInTable="CountryIDColumn" msprop:Generator_UserColumnName="CountryID" type="xs:int" />
  710. <xs:element name="IATACode" msprop:Generator_ColumnVarNameInTable="columnIATACode" msprop:Generator_ColumnPropNameInRow="IATACode" msprop:Generator_ColumnPropNameInTable="IATACodeColumn" msprop:Generator_UserColumnName="IATACode">
  711. <xs:simpleType>
  712. <xs:restriction base="xs:string">
  713. <xs:maxLength value="3" />
  714. </xs:restriction>
  715. </xs:simpleType>
  716. </xs:element>
  717. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
  718. <xs:simpleType>
  719. <xs:restriction base="xs:string">
  720. <xs:maxLength value="50" />
  721. </xs:restriction>
  722. </xs:simpleType>
  723. </xs:element>
  724. </xs:sequence>
  725. </xs:complexType>
  726. </xs:element>
  727. <xs:element name="CabinTypes" msprop:Generator_TableClassName="CabinTypesDataTable" msprop:Generator_TableVarName="tableCabinTypes" msprop:Generator_TablePropName="CabinTypes" msprop:Generator_RowDeletingName="CabinTypesRowDeleting" msprop:Generator_RowChangingName="CabinTypesRowChanging" msprop:Generator_RowEvHandlerName="CabinTypesRowChangeEventHandler" msprop:Generator_RowDeletedName="CabinTypesRowDeleted" msprop:Generator_UserTableName="CabinTypes" msprop:Generator_RowChangedName="CabinTypesRowChanged" msprop:Generator_RowEvArgName="CabinTypesRowChangeEvent" msprop:Generator_RowClassName="CabinTypesRow">
  728. <xs:complexType>
  729. <xs:sequence>
  730. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  731. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
  732. <xs:simpleType>
  733. <xs:restriction base="xs:string">
  734. <xs:maxLength value="50" />
  735. </xs:restriction>
  736. </xs:simpleType>
  737. </xs:element>
  738. </xs:sequence>
  739. </xs:complexType>
  740. </xs:element>
  741. <xs:element name="Countries" msprop:Generator_TableClassName="CountriesDataTable" msprop:Generator_TableVarName="tableCountries" msprop:Generator_TablePropName="Countries" msprop:Generator_RowDeletingName="CountriesRowDeleting" msprop:Generator_RowChangingName="CountriesRowChanging" msprop:Generator_RowEvHandlerName="CountriesRowChangeEventHandler" msprop:Generator_RowDeletedName="CountriesRowDeleted" msprop:Generator_UserTableName="Countries" msprop:Generator_RowChangedName="CountriesRowChanged" msprop:Generator_RowEvArgName="CountriesRowChangeEvent" msprop:Generator_RowClassName="CountriesRow">
  742. <xs:complexType>
  743. <xs:sequence>
  744. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  745. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
  746. <xs:simpleType>
  747. <xs:restriction base="xs:string">
  748. <xs:maxLength value="50" />
  749. </xs:restriction>
  750. </xs:simpleType>
  751. </xs:element>
  752. </xs:sequence>
  753. </xs:complexType>
  754. </xs:element>
  755. <xs:element name="Offices" msprop:Generator_TableClassName="OfficesDataTable" msprop:Generator_TableVarName="tableOffices" msprop:Generator_TablePropName="Offices" msprop:Generator_RowDeletingName="OfficesRowDeleting" msprop:Generator_RowChangingName="OfficesRowChanging" msprop:Generator_RowEvHandlerName="OfficesRowChangeEventHandler" msprop:Generator_RowDeletedName="OfficesRowDeleted" msprop:Generator_UserTableName="Offices" msprop:Generator_RowChangedName="OfficesRowChanged" msprop:Generator_RowEvArgName="OfficesRowChangeEvent" msprop:Generator_RowClassName="OfficesRow">
  756. <xs:complexType>
  757. <xs:sequence>
  758. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  759. <xs:element name="CountryID" msprop:Generator_ColumnVarNameInTable="columnCountryID" msprop:Generator_ColumnPropNameInRow="CountryID" msprop:Generator_ColumnPropNameInTable="CountryIDColumn" msprop:Generator_UserColumnName="CountryID" type="xs:int" />
  760. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  761. <xs:simpleType>
  762. <xs:restriction base="xs:string">
  763. <xs:maxLength value="50" />
  764. </xs:restriction>
  765. </xs:simpleType>
  766. </xs:element>
  767. <xs:element name="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone">
  768. <xs:simpleType>
  769. <xs:restriction base="xs:string">
  770. <xs:maxLength value="50" />
  771. </xs:restriction>
  772. </xs:simpleType>
  773. </xs:element>
  774. <xs:element name="Contact" msprop:Generator_ColumnVarNameInTable="columnContact" msprop:Generator_ColumnPropNameInRow="Contact" msprop:Generator_ColumnPropNameInTable="ContactColumn" msprop:Generator_UserColumnName="Contact">
  775. <xs:simpleType>
  776. <xs:restriction base="xs:string">
  777. <xs:maxLength value="250" />
  778. </xs:restriction>
  779. </xs:simpleType>
  780. </xs:element>
  781. </xs:sequence>
  782. </xs:complexType>
  783. </xs:element>
  784. <xs:element name="Roles" msprop:Generator_TableClassName="RolesDataTable" msprop:Generator_TableVarName="tableRoles" msprop:Generator_TablePropName="Roles" msprop:Generator_RowDeletingName="RolesRowDeleting" msprop:Generator_RowChangingName="RolesRowChanging" msprop:Generator_RowEvHandlerName="RolesRowChangeEventHandler" msprop:Generator_RowDeletedName="RolesRowDeleted" msprop:Generator_UserTableName="Roles" msprop:Generator_RowChangedName="RolesRowChanged" msprop:Generator_RowEvArgName="RolesRowChangeEvent" msprop:Generator_RowClassName="RolesRow">
  785. <xs:complexType>
  786. <xs:sequence>
  787. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  788. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  789. <xs:simpleType>
  790. <xs:restriction base="xs:string">
  791. <xs:maxLength value="50" />
  792. </xs:restriction>
  793. </xs:simpleType>
  794. </xs:element>
  795. </xs:sequence>
  796. </xs:complexType>
  797. </xs:element>
  798. <xs:element name="Routes" msprop:Generator_TableClassName="RoutesDataTable" msprop:Generator_TableVarName="tableRoutes" msprop:Generator_TablePropName="Routes" msprop:Generator_RowDeletingName="RoutesRowDeleting" msprop:Generator_RowChangingName="RoutesRowChanging" msprop:Generator_RowEvHandlerName="RoutesRowChangeEventHandler" msprop:Generator_RowDeletedName="RoutesRowDeleted" msprop:Generator_UserTableName="Routes" msprop:Generator_RowChangedName="RoutesRowChanged" msprop:Generator_RowEvArgName="RoutesRowChangeEvent" msprop:Generator_RowClassName="RoutesRow">
  799. <xs:complexType>
  800. <xs:sequence>
  801. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  802. <xs:element name="DepartureAirportID" msprop:Generator_ColumnVarNameInTable="columnDepartureAirportID" msprop:Generator_ColumnPropNameInRow="DepartureAirportID" msprop:Generator_ColumnPropNameInTable="DepartureAirportIDColumn" msprop:Generator_UserColumnName="DepartureAirportID" type="xs:int" />
  803. <xs:element name="ArrivalAirportID" msprop:Generator_ColumnVarNameInTable="columnArrivalAirportID" msprop:Generator_ColumnPropNameInRow="ArrivalAirportID" msprop:Generator_ColumnPropNameInTable="ArrivalAirportIDColumn" msprop:Generator_UserColumnName="ArrivalAirportID" type="xs:int" />
  804. <xs:element name="Distance" msprop:Generator_ColumnVarNameInTable="columnDistance" msprop:Generator_ColumnPropNameInRow="Distance" msprop:Generator_ColumnPropNameInTable="DistanceColumn" msprop:Generator_UserColumnName="Distance" type="xs:int" />
  805. <xs:element name="FlightTime" msprop:Generator_ColumnVarNameInTable="columnFlightTime" msprop:Generator_ColumnPropNameInRow="FlightTime" msprop:Generator_ColumnPropNameInTable="FlightTimeColumn" msprop:Generator_UserColumnName="FlightTime" type="xs:int" />
  806. </xs:sequence>
  807. </xs:complexType>
  808. </xs:element>
  809. <xs:element name="Schedules" msprop:Generator_TableClassName="SchedulesDataTable" msprop:Generator_TableVarName="tableSchedules" msprop:Generator_TablePropName="Schedules" msprop:Generator_RowDeletingName="SchedulesRowDeleting" msprop:Generator_RowChangingName="SchedulesRowChanging" msprop:Generator_RowEvHandlerName="SchedulesRowChangeEventHandler" msprop:Generator_RowDeletedName="SchedulesRowDeleted" msprop:Generator_UserTableName="Schedules" msprop:Generator_RowChangedName="SchedulesRowChanged" msprop:Generator_RowEvArgName="SchedulesRowChangeEvent" msprop:Generator_RowClassName="SchedulesRow">
  810. <xs:complexType>
  811. <xs:sequence>
  812. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  813. <xs:element name="Date" msprop:Generator_ColumnVarNameInTable="columnDate" msprop:Generator_ColumnPropNameInRow="Date" msprop:Generator_ColumnPropNameInTable="DateColumn" msprop:Generator_UserColumnName="Date" type="xs:dateTime" />
  814. <xs:element name="Time" msprop:Generator_ColumnVarNameInTable="columnTime" msprop:Generator_ColumnPropNameInRow="Time" msprop:Generator_ColumnPropNameInTable="TimeColumn" msprop:Generator_UserColumnName="Time" type="xs:duration" />
  815. <xs:element name="AircraftID" msprop:Generator_ColumnVarNameInTable="columnAircraftID" msprop:Generator_ColumnPropNameInRow="AircraftID" msprop:Generator_ColumnPropNameInTable="AircraftIDColumn" msprop:Generator_UserColumnName="AircraftID" type="xs:int" />
  816. <xs:element name="RouteID" msprop:Generator_ColumnVarNameInTable="columnRouteID" msprop:Generator_ColumnPropNameInRow="RouteID" msprop:Generator_ColumnPropNameInTable="RouteIDColumn" msprop:Generator_UserColumnName="RouteID" type="xs:int" />
  817. <xs:element name="EconomyPrice" msprop:Generator_ColumnVarNameInTable="columnEconomyPrice" msprop:Generator_ColumnPropNameInRow="EconomyPrice" msprop:Generator_ColumnPropNameInTable="EconomyPriceColumn" msprop:Generator_UserColumnName="EconomyPrice" type="xs:decimal" />
  818. <xs:element name="Confirmed" msprop:Generator_ColumnVarNameInTable="columnConfirmed" msprop:Generator_ColumnPropNameInRow="Confirmed" msprop:Generator_ColumnPropNameInTable="ConfirmedColumn" msprop:Generator_UserColumnName="Confirmed" type="xs:boolean" />
  819. <xs:element name="FlightNumber" msprop:Generator_ColumnVarNameInTable="columnFlightNumber" msprop:Generator_ColumnPropNameInRow="FlightNumber" msprop:Generator_ColumnPropNameInTable="FlightNumberColumn" msprop:Generator_UserColumnName="FlightNumber" minOccurs="0">
  820. <xs:simpleType>
  821. <xs:restriction base="xs:string">
  822. <xs:maxLength value="10" />
  823. </xs:restriction>
  824. </xs:simpleType>
  825. </xs:element>
  826. </xs:sequence>
  827. </xs:complexType>
  828. </xs:element>
  829. <xs:element name="Tickets" msprop:Generator_TableClassName="TicketsDataTable" msprop:Generator_TableVarName="tableTickets" msprop:Generator_TablePropName="Tickets" msprop:Generator_RowDeletingName="TicketsRowDeleting" msprop:Generator_RowChangingName="TicketsRowChanging" msprop:Generator_RowEvHandlerName="TicketsRowChangeEventHandler" msprop:Generator_RowDeletedName="TicketsRowDeleted" msprop:Generator_UserTableName="Tickets" msprop:Generator_RowChangedName="TicketsRowChanged" msprop:Generator_RowEvArgName="TicketsRowChangeEvent" msprop:Generator_RowClassName="TicketsRow">
  830. <xs:complexType>
  831. <xs:sequence>
  832. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  833. <xs:element name="UserID" msprop:Generator_ColumnVarNameInTable="columnUserID" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn" msprop:Generator_UserColumnName="UserID" type="xs:int" />
  834. <xs:element name="ScheduleID" msprop:Generator_ColumnVarNameInTable="columnScheduleID" msprop:Generator_ColumnPropNameInRow="ScheduleID" msprop:Generator_ColumnPropNameInTable="ScheduleIDColumn" msprop:Generator_UserColumnName="ScheduleID" type="xs:int" />
  835. <xs:element name="CabinTypeID" msprop:Generator_ColumnVarNameInTable="columnCabinTypeID" msprop:Generator_ColumnPropNameInRow="CabinTypeID" msprop:Generator_ColumnPropNameInTable="CabinTypeIDColumn" msprop:Generator_UserColumnName="CabinTypeID" type="xs:int" />
  836. <xs:element name="Firstname" msprop:Generator_ColumnVarNameInTable="columnFirstname" msprop:Generator_ColumnPropNameInRow="Firstname" msprop:Generator_ColumnPropNameInTable="FirstnameColumn" msprop:Generator_UserColumnName="Firstname">
  837. <xs:simpleType>
  838. <xs:restriction base="xs:string">
  839. <xs:maxLength value="50" />
  840. </xs:restriction>
  841. </xs:simpleType>
  842. </xs:element>
  843. <xs:element name="Lastname" msprop:Generator_ColumnVarNameInTable="columnLastname" msprop:Generator_ColumnPropNameInRow="Lastname" msprop:Generator_ColumnPropNameInTable="LastnameColumn" msprop:Generator_UserColumnName="Lastname">
  844. <xs:simpleType>
  845. <xs:restriction base="xs:string">
  846. <xs:maxLength value="50" />
  847. </xs:restriction>
  848. </xs:simpleType>
  849. </xs:element>
  850. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email" minOccurs="0">
  851. <xs:simpleType>
  852. <xs:restriction base="xs:string">
  853. <xs:maxLength value="50" />
  854. </xs:restriction>
  855. </xs:simpleType>
  856. </xs:element>
  857. <xs:element name="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone">
  858. <xs:simpleType>
  859. <xs:restriction base="xs:string">
  860. <xs:maxLength value="14" />
  861. </xs:restriction>
  862. </xs:simpleType>
  863. </xs:element>
  864. <xs:element name="PassportNumber" msprop:Generator_ColumnVarNameInTable="columnPassportNumber" msprop:Generator_ColumnPropNameInRow="PassportNumber" msprop:Generator_ColumnPropNameInTable="PassportNumberColumn" msprop:Generator_UserColumnName="PassportNumber">
  865. <xs:simpleType>
  866. <xs:restriction base="xs:string">
  867. <xs:maxLength value="9" />
  868. </xs:restriction>
  869. </xs:simpleType>
  870. </xs:element>
  871. <xs:element name="PassportCountryID" msprop:Generator_ColumnVarNameInTable="columnPassportCountryID" msprop:Generator_ColumnPropNameInRow="PassportCountryID" msprop:Generator_ColumnPropNameInTable="PassportCountryIDColumn" msprop:Generator_UserColumnName="PassportCountryID" type="xs:int" />
  872. <xs:element name="BookingReference" msprop:Generator_ColumnVarNameInTable="columnBookingReference" msprop:Generator_ColumnPropNameInRow="BookingReference" msprop:Generator_ColumnPropNameInTable="BookingReferenceColumn" msprop:Generator_UserColumnName="BookingReference">
  873. <xs:simpleType>
  874. <xs:restriction base="xs:string">
  875. <xs:maxLength value="6" />
  876. </xs:restriction>
  877. </xs:simpleType>
  878. </xs:element>
  879. <xs:element name="Confirmed" msprop:Generator_ColumnVarNameInTable="columnConfirmed" msprop:Generator_ColumnPropNameInRow="Confirmed" msprop:Generator_ColumnPropNameInTable="ConfirmedColumn" msprop:Generator_UserColumnName="Confirmed" type="xs:boolean" />
  880. </xs:sequence>
  881. </xs:complexType>
  882. </xs:element>
  883. <xs:element name="Users" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers" msprop:Generator_TablePropName="Users" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_UserTableName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_RowClassName="UsersRow">
  884. <xs:complexType>
  885. <xs:sequence>
  886. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  887. <xs:element name="RoleID" msprop:Generator_ColumnVarNameInTable="columnRoleID" msprop:Generator_ColumnPropNameInRow="RoleID" msprop:Generator_ColumnPropNameInTable="RoleIDColumn" msprop:Generator_UserColumnName="RoleID" type="xs:int" />
  888. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email">
  889. <xs:simpleType>
  890. <xs:restriction base="xs:string">
  891. <xs:maxLength value="150" />
  892. </xs:restriction>
  893. </xs:simpleType>
  894. </xs:element>
  895. <xs:element name="Password" msprop:Generator_ColumnVarNameInTable="columnPassword" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_UserColumnName="Password">
  896. <xs:simpleType>
  897. <xs:restriction base="xs:string">
  898. <xs:maxLength value="50" />
  899. </xs:restriction>
  900. </xs:simpleType>
  901. </xs:element>
  902. <xs:element name="FirstName" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ColumnPropNameInTable="FirstNameColumn" msprop:Generator_UserColumnName="FirstName" minOccurs="0">
  903. <xs:simpleType>
  904. <xs:restriction base="xs:string">
  905. <xs:maxLength value="50" />
  906. </xs:restriction>
  907. </xs:simpleType>
  908. </xs:element>
  909. <xs:element name="LastName" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ColumnPropNameInTable="LastNameColumn" msprop:Generator_UserColumnName="LastName">
  910. <xs:simpleType>
  911. <xs:restriction base="xs:string">
  912. <xs:maxLength value="50" />
  913. </xs:restriction>
  914. </xs:simpleType>
  915. </xs:element>
  916. <xs:element name="OfficeID" msprop:Generator_ColumnVarNameInTable="columnOfficeID" msprop:Generator_ColumnPropNameInRow="OfficeID" msprop:Generator_ColumnPropNameInTable="OfficeIDColumn" msprop:Generator_UserColumnName="OfficeID" type="xs:int" minOccurs="0" />
  917. <xs:element name="Birthdate" msprop:Generator_ColumnVarNameInTable="columnBirthdate" msprop:Generator_ColumnPropNameInRow="Birthdate" msprop:Generator_ColumnPropNameInTable="BirthdateColumn" msprop:Generator_UserColumnName="Birthdate" type="xs:dateTime" minOccurs="0" />
  918. <xs:element name="Active" msprop:Generator_ColumnVarNameInTable="columnActive" msprop:Generator_ColumnPropNameInRow="Active" msprop:Generator_ColumnPropNameInTable="ActiveColumn" msprop:Generator_UserColumnName="Active" type="xs:boolean" minOccurs="0" />
  919. </xs:sequence>
  920. </xs:complexType>
  921. </xs:element>
  922. </xs:choice>
  923. </xs:complexType>
  924. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  925. <xs:selector xpath=".//mstns:Aircrafts" />
  926. <xs:field xpath="mstns:ID" />
  927. </xs:unique>
  928. <xs:unique name="Airports_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  929. <xs:selector xpath=".//mstns:Airports" />
  930. <xs:field xpath="mstns:ID" />
  931. </xs:unique>
  932. <xs:unique name="CabinTypes_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  933. <xs:selector xpath=".//mstns:CabinTypes" />
  934. <xs:field xpath="mstns:ID" />
  935. </xs:unique>
  936. <xs:unique name="Countries_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  937. <xs:selector xpath=".//mstns:Countries" />
  938. <xs:field xpath="mstns:ID" />
  939. </xs:unique>
  940. <xs:unique name="Offices_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  941. <xs:selector xpath=".//mstns:Offices" />
  942. <xs:field xpath="mstns:ID" />
  943. </xs:unique>
  944. <xs:unique name="Roles_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  945. <xs:selector xpath=".//mstns:Roles" />
  946. <xs:field xpath="mstns:ID" />
  947. </xs:unique>
  948. <xs:unique name="Routes_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  949. <xs:selector xpath=".//mstns:Routes" />
  950. <xs:field xpath="mstns:ID" />
  951. </xs:unique>
  952. <xs:unique name="Schedules_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  953. <xs:selector xpath=".//mstns:Schedules" />
  954. <xs:field xpath="mstns:ID" />
  955. </xs:unique>
  956. <xs:unique name="Tickets_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  957. <xs:selector xpath=".//mstns:Tickets" />
  958. <xs:field xpath="mstns:ID" />
  959. </xs:unique>
  960. <xs:unique name="Users_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  961. <xs:selector xpath=".//mstns:Users" />
  962. <xs:field xpath="mstns:ID" />
  963. </xs:unique>
  964. </xs:element>
  965. <xs:annotation>
  966. <xs:appinfo>
  967. <msdata:Relationship name="FK_AirPort_Country" msdata:parent="Countries" msdata:child="Airports" msdata:parentkey="ID" msdata:childkey="CountryID" msprop:Generator_UserChildTable="Airports" msprop:Generator_ChildPropName="GetAirportsRows" msprop:Generator_UserRelationName="FK_AirPort_Country" msprop:Generator_RelationVarName="relationFK_AirPort_Country" msprop:Generator_UserParentTable="Countries" msprop:Generator_ParentPropName="CountriesRow" />
  968. <msdata:Relationship name="FK_Office_Country" msdata:parent="Countries" msdata:child="Offices" msdata:parentkey="ID" msdata:childkey="CountryID" msprop:Generator_UserChildTable="Offices" msprop:Generator_ChildPropName="GetOfficesRows" msprop:Generator_UserRelationName="FK_Office_Country" msprop:Generator_ParentPropName="CountriesRow" msprop:Generator_RelationVarName="relationFK_Office_Country" msprop:Generator_UserParentTable="Countries" />
  969. <msdata:Relationship name="FK_Routes_Airports2" msdata:parent="Airports" msdata:child="Routes" msdata:parentkey="ID" msdata:childkey="DepartureAirportID" msprop:Generator_UserChildTable="Routes" msprop:Generator_ChildPropName="GetRoutesRowsByFK_Routes_Airports2" msprop:Generator_UserRelationName="FK_Routes_Airports2" msprop:Generator_ParentPropName="AirportsRowByFK_Routes_Airports2" msprop:Generator_RelationVarName="relationFK_Routes_Airports2" msprop:Generator_UserParentTable="Airports" />
  970. <msdata:Relationship name="FK_Routes_Airports3" msdata:parent="Airports" msdata:child="Routes" msdata:parentkey="ID" msdata:childkey="ArrivalAirportID" msprop:Generator_UserChildTable="Routes" msprop:Generator_ChildPropName="GetRoutesRowsByFK_Routes_Airports3" msprop:Generator_UserRelationName="FK_Routes_Airports3" msprop:Generator_ParentPropName="AirportsRowByFK_Routes_Airports3" msprop:Generator_RelationVarName="relationFK_Routes_Airports3" msprop:Generator_UserParentTable="Airports" />
  971. <msdata:Relationship name="FK_Schedule_AirCraft" msdata:parent="Aircrafts" msdata:child="Schedules" msdata:parentkey="ID" msdata:childkey="AircraftID" msprop:Generator_UserChildTable="Schedules" msprop:Generator_ChildPropName="GetSchedulesRows" msprop:Generator_UserRelationName="FK_Schedule_AirCraft" msprop:Generator_ParentPropName="AircraftsRow" msprop:Generator_RelationVarName="relationFK_Schedule_AirCraft" msprop:Generator_UserParentTable="Aircrafts" />
  972. <msdata:Relationship name="FK_Schedule_Routes" msdata:parent="Routes" msdata:child="Schedules" msdata:parentkey="ID" msdata:childkey="RouteID" msprop:Generator_UserChildTable="Schedules" msprop:Generator_ChildPropName="GetSchedulesRows" msprop:Generator_UserRelationName="FK_Schedule_Routes" msprop:Generator_ParentPropName="RoutesRow" msprop:Generator_RelationVarName="relationFK_Schedule_Routes" msprop:Generator_UserParentTable="Routes" />
  973. <msdata:Relationship name="FK_Ticket_Schedule" msdata:parent="Schedules" msdata:child="Tickets" msdata:parentkey="ID" msdata:childkey="ScheduleID" msprop:Generator_UserChildTable="Tickets" msprop:Generator_ChildPropName="GetTicketsRows" msprop:Generator_UserRelationName="FK_Ticket_Schedule" msprop:Generator_ParentPropName="SchedulesRow" msprop:Generator_RelationVarName="relationFK_Ticket_Schedule" msprop:Generator_UserParentTable="Schedules" />
  974. <msdata:Relationship name="FK_Ticket_TravelClass" msdata:parent="CabinTypes" msdata:child="Tickets" msdata:parentkey="ID" msdata:childkey="CabinTypeID" msprop:Generator_UserChildTable="Tickets" msprop:Generator_ChildPropName="GetTicketsRows" msprop:Generator_UserRelationName="FK_Ticket_TravelClass" msprop:Generator_ParentPropName="CabinTypesRow" msprop:Generator_RelationVarName="relationFK_Ticket_TravelClass" msprop:Generator_UserParentTable="CabinTypes" />
  975. <msdata:Relationship name="FK_Ticket_User" msdata:parent="Users" msdata:child="Tickets" msdata:parentkey="ID" msdata:childkey="UserID" msprop:Generator_UserChildTable="Tickets" msprop:Generator_ChildPropName="GetTicketsRows" msprop:Generator_UserRelationName="FK_Ticket_User" msprop:Generator_RelationVarName="relationFK_Ticket_User" msprop:Generator_UserParentTable="Users" msprop:Generator_ParentPropName="UsersRow" />
  976. <msdata:Relationship name="FK_Users_Offices" msdata:parent="Offices" msdata:child="Users" msdata:parentkey="ID" msdata:childkey="OfficeID" msprop:Generator_UserChildTable="Users" msprop:Generator_ChildPropName="GetUsersRows" msprop:Generator_UserRelationName="FK_Users_Offices" msprop:Generator_ParentPropName="OfficesRow" msprop:Generator_RelationVarName="relationFK_Users_Offices" msprop:Generator_UserParentTable="Offices" />
  977. <msdata:Relationship name="FK_Users_Roles" msdata:parent="Roles" msdata:child="Users" msdata:parentkey="ID" msdata:childkey="RoleID" msprop:Generator_UserChildTable="Users" msprop:Generator_ChildPropName="GetUsersRows" msprop:Generator_UserRelationName="FK_Users_Roles" msprop:Generator_ParentPropName="RolesRow" msprop:Generator_RelationVarName="relationFK_Users_Roles" msprop:Generator_UserParentTable="Roles" />
  978. </xs:appinfo>
  979. </xs:annotation>
  980. </xs:schema>