lyahov_portDataSet.xsd 136 KB

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