SewingFactoryDataSet.xsd 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="SewingFactoryDataSet" targetNamespace="http://tempuri.org/SewingFactoryDataSet.xsd" xmlns:mstns="http://tempuri.org/SewingFactoryDataSet.xsd" xmlns="http://tempuri.org/SewingFactoryDataSet.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="SewingFactoryConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SewingFactoryConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Швейная_фабрика.Properties.Settings.GlobalReference.Default.SewingFactoryConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="SewingFactoryConnectionString (Settings)" DbObjectName="SewingFactory.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">
  13. <DeleteCommand>
  14. <DbCommand CommandType="Text" ModifiedByUser="false">
  15. <CommandText>DELETE FROM [dbo].[Users] WHERE (([UserID] = @Original_UserID) AND ([Login] = @Original_Login) AND ([Password] = @Original_Password) AND ([RoleID] = @Original_RoleID) AND ([Surname] = @Original_Surname) AND ([Name] = @Original_Name) AND ([Patronymic] = @Original_Patronymic) AND ((@IsNull_PhoneNumber = 1 AND [PhoneNumber] IS NULL) OR ([PhoneNumber] = @Original_PhoneNumber)))</CommandText>
  16. <Parameters>
  17. <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" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <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" />
  20. <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" />
  21. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <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" />
  23. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  24. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhoneNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhoneNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
  25. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_PhoneNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="PhoneNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  26. </Parameters>
  27. </DbCommand>
  28. </DeleteCommand>
  29. <InsertCommand>
  30. <DbCommand CommandType="Text" ModifiedByUser="false">
  31. <CommandText>INSERT INTO [dbo].[Users] ([Login], [Password], [RoleID], [Surname], [Name], [Patronymic], [PhoneNumber]) VALUES (@Login, @Password, @RoleID, @Surname, @Name, @Patronymic, @PhoneNumber);
  32. SELECT UserID, Login, Password, RoleID, Surname, Name, Patronymic, PhoneNumber FROM Users WHERE (UserID = SCOPE_IDENTITY())</CommandText>
  33. <Parameters>
  34. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Current" />
  35. <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" />
  36. <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" />
  37. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  38. <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" />
  39. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  40. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@PhoneNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="PhoneNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  41. </Parameters>
  42. </DbCommand>
  43. </InsertCommand>
  44. <SelectCommand>
  45. <DbCommand CommandType="Text" ModifiedByUser="false">
  46. <CommandText>SELECT UserID, Login, Password, RoleID, Surname, Name, Patronymic, PhoneNumber FROM dbo.Users</CommandText>
  47. <Parameters />
  48. </DbCommand>
  49. </SelectCommand>
  50. <UpdateCommand>
  51. <DbCommand CommandType="Text" ModifiedByUser="false">
  52. <CommandText>UPDATE [dbo].[Users] SET [Login] = @Login, [Password] = @Password, [RoleID] = @RoleID, [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [PhoneNumber] = @PhoneNumber WHERE (([UserID] = @Original_UserID) AND ([Login] = @Original_Login) AND ([Password] = @Original_Password) AND ([RoleID] = @Original_RoleID) AND ([Surname] = @Original_Surname) AND ([Name] = @Original_Name) AND ([Patronymic] = @Original_Patronymic) AND ((@IsNull_PhoneNumber = 1 AND [PhoneNumber] IS NULL) OR ([PhoneNumber] = @Original_PhoneNumber)));
  53. SELECT UserID, Login, Password, RoleID, Surname, Name, Patronymic, PhoneNumber FROM Users WHERE (UserID = @UserID)</CommandText>
  54. <Parameters>
  55. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Current" />
  56. <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" />
  57. <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" />
  58. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  59. <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" />
  60. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  61. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@PhoneNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="PhoneNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  62. <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" />
  63. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Original" />
  64. <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" />
  65. <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" />
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  67. <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" />
  68. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhoneNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhoneNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_PhoneNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="PhoneNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  71. <Parameter AllowDbNull="false" AutogeneratedName="UserID" ColumnName="UserID" DataSourceName="SewingFactory.dbo.Users" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  72. </Parameters>
  73. </DbCommand>
  74. </UpdateCommand>
  75. </DbSource>
  76. </MainSource>
  77. <Mappings>
  78. <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
  79. <Mapping SourceColumn="Login" DataSetColumn="Login" />
  80. <Mapping SourceColumn="Password" DataSetColumn="Password" />
  81. <Mapping SourceColumn="RoleID" DataSetColumn="RoleID" />
  82. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  83. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  84. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  85. <Mapping SourceColumn="PhoneNumber" DataSetColumn="PhoneNumber" />
  86. </Mappings>
  87. <Sources />
  88. </TableAdapter>
  89. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ColoursTableAdapter" GeneratorDataComponentClassName="ColoursTableAdapter" Name="Colours" UserDataComponentName="ColoursTableAdapter">
  90. <MainSource>
  91. <DbSource ConnectionRef="SewingFactoryConnectionString (Settings)" DbObjectName="SewingFactory.dbo.Colours" 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">
  92. <DeleteCommand>
  93. <DbCommand CommandType="Text" ModifiedByUser="false">
  94. <CommandText>DELETE FROM [dbo].[Colours] WHERE (([ColourID] = @Original_ColourID) AND ((@IsNull_ColourName = 1 AND [ColourName] IS NULL) OR ([ColourName] = @Original_ColourName)))</CommandText>
  95. <Parameters>
  96. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="false" SourceVersion="Original" />
  97. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ColourName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourName" SourceColumnNullMapping="true" SourceVersion="Original" />
  98. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ColourName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ColourName" SourceColumnNullMapping="false" SourceVersion="Original" />
  99. </Parameters>
  100. </DbCommand>
  101. </DeleteCommand>
  102. <InsertCommand>
  103. <DbCommand CommandType="Text" ModifiedByUser="false">
  104. <CommandText>INSERT INTO [dbo].[Colours] ([ColourName]) VALUES (@ColourName);
  105. SELECT ColourID, ColourName FROM Colours WHERE (ColourID = SCOPE_IDENTITY())</CommandText>
  106. <Parameters>
  107. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ColourName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ColourName" SourceColumnNullMapping="false" SourceVersion="Current" />
  108. </Parameters>
  109. </DbCommand>
  110. </InsertCommand>
  111. <SelectCommand>
  112. <DbCommand CommandType="Text" ModifiedByUser="false">
  113. <CommandText>SELECT ColourID, ColourName FROM dbo.Colours</CommandText>
  114. <Parameters />
  115. </DbCommand>
  116. </SelectCommand>
  117. <UpdateCommand>
  118. <DbCommand CommandType="Text" ModifiedByUser="false">
  119. <CommandText>UPDATE [dbo].[Colours] SET [ColourName] = @ColourName WHERE (([ColourID] = @Original_ColourID) AND ((@IsNull_ColourName = 1 AND [ColourName] IS NULL) OR ([ColourName] = @Original_ColourName)));
  120. SELECT ColourID, ColourName FROM Colours WHERE (ColourID = @ColourID)</CommandText>
  121. <Parameters>
  122. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ColourName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ColourName" SourceColumnNullMapping="false" SourceVersion="Current" />
  123. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="false" SourceVersion="Original" />
  124. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ColourName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourName" SourceColumnNullMapping="true" SourceVersion="Original" />
  125. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ColourName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ColourName" SourceColumnNullMapping="false" SourceVersion="Original" />
  126. <Parameter AllowDbNull="false" AutogeneratedName="ColourID" ColumnName="ColourID" DataSourceName="SewingFactory.dbo.Colours" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ColourID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ColourID" SourceColumnNullMapping="false" SourceVersion="Current" />
  127. </Parameters>
  128. </DbCommand>
  129. </UpdateCommand>
  130. </DbSource>
  131. </MainSource>
  132. <Mappings>
  133. <Mapping SourceColumn="ColourID" DataSetColumn="ColourID" />
  134. <Mapping SourceColumn="ColourName" DataSetColumn="ColourName" />
  135. </Mappings>
  136. <Sources />
  137. </TableAdapter>
  138. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TexturesTableAdapter" GeneratorDataComponentClassName="TexturesTableAdapter" Name="Textures" UserDataComponentName="TexturesTableAdapter">
  139. <MainSource>
  140. <DbSource ConnectionRef="SewingFactoryConnectionString (Settings)" DbObjectName="SewingFactory.dbo.Textures" 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].[Textures] WHERE (([TextureID] = @Original_TextureID) AND ([TextureName] = @Original_TextureName) AND ([TextureTypeID] = @Original_TextureTypeID) AND ((@IsNull_ColourID = 1 AND [ColourID] IS NULL) OR ([ColourID] = @Original_ColourID)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)))</CommandText>
  144. <Parameters>
  145. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TextureID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureID" SourceColumnNullMapping="false" SourceVersion="Original" />
  146. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TextureName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureName" SourceColumnNullMapping="false" SourceVersion="Original" />
  147. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TextureTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  148. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="true" SourceVersion="Original" />
  149. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="false" SourceVersion="Original" />
  150. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="true" SourceVersion="Original" />
  151. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Original" />
  152. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="true" SourceVersion="Original" />
  153. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Original" />
  154. </Parameters>
  155. </DbCommand>
  156. </DeleteCommand>
  157. <InsertCommand>
  158. <DbCommand CommandType="Text" ModifiedByUser="false">
  159. <CommandText>INSERT INTO [dbo].[Textures] ([TextureName], [TextureTypeID], [ColourID], [Width], [Length], [Description], [TexturePhoto]) VALUES (@TextureName, @TextureTypeID, @ColourID, @Width, @Length, @Description, @TexturePhoto);
  160. SELECT TextureID, TextureName, TextureTypeID, ColourID, Width, Length, Description, TexturePhoto FROM Textures WHERE (TextureID = SCOPE_IDENTITY())</CommandText>
  161. <Parameters>
  162. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TextureName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureName" SourceColumnNullMapping="false" SourceVersion="Current" />
  163. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TextureTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  164. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="false" SourceVersion="Current" />
  165. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Current" />
  166. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Current" />
  167. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  168. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@TexturePhoto" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="TexturePhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
  169. </Parameters>
  170. </DbCommand>
  171. </InsertCommand>
  172. <SelectCommand>
  173. <DbCommand CommandType="Text" ModifiedByUser="false">
  174. <CommandText>SELECT TextureID, TextureName, TextureTypeID, ColourID, Width, Length, Description, TexturePhoto FROM dbo.Textures</CommandText>
  175. <Parameters />
  176. </DbCommand>
  177. </SelectCommand>
  178. <UpdateCommand>
  179. <DbCommand CommandType="Text" ModifiedByUser="false">
  180. <CommandText>UPDATE [dbo].[Textures] SET [TextureName] = @TextureName, [TextureTypeID] = @TextureTypeID, [ColourID] = @ColourID, [Width] = @Width, [Length] = @Length, [Description] = @Description, [TexturePhoto] = @TexturePhoto WHERE (([TextureID] = @Original_TextureID) AND ([TextureName] = @Original_TextureName) AND ([TextureTypeID] = @Original_TextureTypeID) AND ((@IsNull_ColourID = 1 AND [ColourID] IS NULL) OR ([ColourID] = @Original_ColourID)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)));
  181. SELECT TextureID, TextureName, TextureTypeID, ColourID, Width, Length, Description, TexturePhoto FROM Textures WHERE (TextureID = @TextureID)</CommandText>
  182. <Parameters>
  183. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TextureName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureName" SourceColumnNullMapping="false" SourceVersion="Current" />
  184. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TextureTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  185. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="false" SourceVersion="Current" />
  186. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Current" />
  187. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Current" />
  188. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  189. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@TexturePhoto" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="TexturePhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
  190. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TextureID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureID" SourceColumnNullMapping="false" SourceVersion="Original" />
  191. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TextureName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureName" SourceColumnNullMapping="false" SourceVersion="Original" />
  192. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TextureTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  193. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="true" SourceVersion="Original" />
  194. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ColourID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColourID" SourceColumnNullMapping="false" SourceVersion="Original" />
  195. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="true" SourceVersion="Original" />
  196. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Original" />
  197. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="true" SourceVersion="Original" />
  198. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Original" />
  199. <Parameter AllowDbNull="false" AutogeneratedName="TextureID" ColumnName="TextureID" DataSourceName="SewingFactory.dbo.Textures" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@TextureID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="TextureID" SourceColumnNullMapping="false" SourceVersion="Current" />
  200. </Parameters>
  201. </DbCommand>
  202. </UpdateCommand>
  203. </DbSource>
  204. </MainSource>
  205. <Mappings>
  206. <Mapping SourceColumn="TextureID" DataSetColumn="TextureID" />
  207. <Mapping SourceColumn="TextureName" DataSetColumn="TextureName" />
  208. <Mapping SourceColumn="TextureTypeID" DataSetColumn="TextureTypeID" />
  209. <Mapping SourceColumn="ColourID" DataSetColumn="ColourID" />
  210. <Mapping SourceColumn="Width" DataSetColumn="Width" />
  211. <Mapping SourceColumn="Length" DataSetColumn="Length" />
  212. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  213. <Mapping SourceColumn="TexturePhoto" DataSetColumn="TexturePhoto" />
  214. </Mappings>
  215. <Sources />
  216. </TableAdapter>
  217. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TextureTypeTableAdapter" GeneratorDataComponentClassName="TextureTypeTableAdapter" Name="TextureType" UserDataComponentName="TextureTypeTableAdapter">
  218. <MainSource>
  219. <DbSource ConnectionRef="SewingFactoryConnectionString (Settings)" DbObjectName="SewingFactory.dbo.TextureType" 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">
  220. <DeleteCommand>
  221. <DbCommand CommandType="Text" ModifiedByUser="false">
  222. <CommandText>DELETE FROM [dbo].[TextureType] WHERE (([TextureTypeID] = @Original_TextureTypeID) AND ((@IsNull_TextureTypeName = 1 AND [TextureTypeName] IS NULL) OR ([TextureTypeName] = @Original_TextureTypeName)))</CommandText>
  223. <Parameters>
  224. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TextureTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  225. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TextureTypeName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeName" SourceColumnNullMapping="true" SourceVersion="Original" />
  226. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TextureTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureTypeName" SourceColumnNullMapping="false" SourceVersion="Original" />
  227. </Parameters>
  228. </DbCommand>
  229. </DeleteCommand>
  230. <InsertCommand>
  231. <DbCommand CommandType="Text" ModifiedByUser="false">
  232. <CommandText>INSERT INTO [dbo].[TextureType] ([TextureTypeName]) VALUES (@TextureTypeName);
  233. SELECT TextureTypeID, TextureTypeName FROM TextureType WHERE (TextureTypeID = SCOPE_IDENTITY())</CommandText>
  234. <Parameters>
  235. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TextureTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureTypeName" SourceColumnNullMapping="false" SourceVersion="Current" />
  236. </Parameters>
  237. </DbCommand>
  238. </InsertCommand>
  239. <SelectCommand>
  240. <DbCommand CommandType="Text" ModifiedByUser="false">
  241. <CommandText>SELECT TextureTypeID, TextureTypeName FROM dbo.TextureType</CommandText>
  242. <Parameters />
  243. </DbCommand>
  244. </SelectCommand>
  245. <UpdateCommand>
  246. <DbCommand CommandType="Text" ModifiedByUser="false">
  247. <CommandText>UPDATE [dbo].[TextureType] SET [TextureTypeName] = @TextureTypeName WHERE (([TextureTypeID] = @Original_TextureTypeID) AND ((@IsNull_TextureTypeName = 1 AND [TextureTypeName] IS NULL) OR ([TextureTypeName] = @Original_TextureTypeName)));
  248. SELECT TextureTypeID, TextureTypeName FROM TextureType WHERE (TextureTypeID = @TextureTypeID)</CommandText>
  249. <Parameters>
  250. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TextureTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureTypeName" SourceColumnNullMapping="false" SourceVersion="Current" />
  251. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TextureTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  252. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TextureTypeName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TextureTypeName" SourceColumnNullMapping="true" SourceVersion="Original" />
  253. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TextureTypeName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TextureTypeName" SourceColumnNullMapping="false" SourceVersion="Original" />
  254. <Parameter AllowDbNull="false" AutogeneratedName="TextureTypeID" ColumnName="TextureTypeID" DataSourceName="SewingFactory.dbo.TextureType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@TextureTypeID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="TextureTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  255. </Parameters>
  256. </DbCommand>
  257. </UpdateCommand>
  258. </DbSource>
  259. </MainSource>
  260. <Mappings>
  261. <Mapping SourceColumn="TextureTypeID" DataSetColumn="TextureTypeID" />
  262. <Mapping SourceColumn="TextureTypeName" DataSetColumn="TextureTypeName" />
  263. </Mappings>
  264. <Sources />
  265. </TableAdapter>
  266. </Tables>
  267. <Sources />
  268. </DataSource>
  269. </xs:appinfo>
  270. </xs:annotation>
  271. <xs:element name="SewingFactoryDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="SewingFactoryDataSet" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="SewingFactoryDataSet">
  272. <xs:complexType>
  273. <xs:choice minOccurs="0" maxOccurs="unbounded">
  274. <xs:element name="Users" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_UserTableName="Users" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers">
  275. <xs:complexType>
  276. <xs:sequence>
  277. <xs:element name="UserID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnVarNameInTable="columnUserID" type="xs:int" />
  278. <xs:element name="Login" msprop:Generator_UserColumnName="Login" msprop:Generator_ColumnPropNameInTable="LoginColumn" msprop:Generator_ColumnPropNameInRow="Login" msprop:Generator_ColumnVarNameInTable="columnLogin">
  279. <xs:simpleType>
  280. <xs:restriction base="xs:string">
  281. <xs:maxLength value="50" />
  282. </xs:restriction>
  283. </xs:simpleType>
  284. </xs:element>
  285. <xs:element name="Password" msprop:Generator_UserColumnName="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_ColumnVarNameInTable="columnPassword">
  286. <xs:simpleType>
  287. <xs:restriction base="xs:string">
  288. <xs:maxLength value="50" />
  289. </xs:restriction>
  290. </xs:simpleType>
  291. </xs:element>
  292. <xs:element name="RoleID" msprop:Generator_UserColumnName="RoleID" msprop:Generator_ColumnPropNameInTable="RoleIDColumn" msprop:Generator_ColumnPropNameInRow="RoleID" msprop:Generator_ColumnVarNameInTable="columnRoleID" type="xs:int" />
  293. <xs:element name="Surname" msprop:Generator_UserColumnName="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_ColumnVarNameInTable="columnSurname">
  294. <xs:simpleType>
  295. <xs:restriction base="xs:string">
  296. <xs:maxLength value="50" />
  297. </xs:restriction>
  298. </xs:simpleType>
  299. </xs:element>
  300. <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName">
  301. <xs:simpleType>
  302. <xs:restriction base="xs:string">
  303. <xs:maxLength value="50" />
  304. </xs:restriction>
  305. </xs:simpleType>
  306. </xs:element>
  307. <xs:element name="Patronymic" msprop:Generator_UserColumnName="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic">
  308. <xs:simpleType>
  309. <xs:restriction base="xs:string">
  310. <xs:maxLength value="50" />
  311. </xs:restriction>
  312. </xs:simpleType>
  313. </xs:element>
  314. <xs:element name="PhoneNumber" msprop:Generator_UserColumnName="PhoneNumber" msprop:Generator_ColumnPropNameInTable="PhoneNumberColumn" msprop:Generator_ColumnPropNameInRow="PhoneNumber" msprop:Generator_ColumnVarNameInTable="columnPhoneNumber" minOccurs="0">
  315. <xs:simpleType>
  316. <xs:restriction base="xs:string">
  317. <xs:maxLength value="18" />
  318. </xs:restriction>
  319. </xs:simpleType>
  320. </xs:element>
  321. </xs:sequence>
  322. </xs:complexType>
  323. </xs:element>
  324. <xs:element name="Colours" msprop:Generator_RowEvHandlerName="ColoursRowChangeEventHandler" msprop:Generator_RowDeletedName="ColoursRowDeleted" msprop:Generator_RowDeletingName="ColoursRowDeleting" msprop:Generator_RowEvArgName="ColoursRowChangeEvent" msprop:Generator_TablePropName="Colours" msprop:Generator_RowChangedName="ColoursRowChanged" msprop:Generator_RowChangingName="ColoursRowChanging" msprop:Generator_TableClassName="ColoursDataTable" msprop:Generator_RowClassName="ColoursRow" msprop:Generator_TableVarName="tableColours" msprop:Generator_UserTableName="Colours">
  325. <xs:complexType>
  326. <xs:sequence>
  327. <xs:element name="ColourID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="ColourID" msprop:Generator_ColumnPropNameInTable="ColourIDColumn" msprop:Generator_ColumnVarNameInTable="columnColourID" msprop:Generator_UserColumnName="ColourID" type="xs:int" />
  328. <xs:element name="ColourName" msprop:Generator_ColumnPropNameInRow="ColourName" msprop:Generator_ColumnPropNameInTable="ColourNameColumn" msprop:Generator_ColumnVarNameInTable="columnColourName" msprop:Generator_UserColumnName="ColourName" minOccurs="0">
  329. <xs:simpleType>
  330. <xs:restriction base="xs:string">
  331. <xs:maxLength value="50" />
  332. </xs:restriction>
  333. </xs:simpleType>
  334. </xs:element>
  335. </xs:sequence>
  336. </xs:complexType>
  337. </xs:element>
  338. <xs:element name="Textures" msprop:Generator_RowEvHandlerName="TexturesRowChangeEventHandler" msprop:Generator_RowDeletedName="TexturesRowDeleted" msprop:Generator_RowDeletingName="TexturesRowDeleting" msprop:Generator_RowEvArgName="TexturesRowChangeEvent" msprop:Generator_TablePropName="Textures" msprop:Generator_RowChangedName="TexturesRowChanged" msprop:Generator_RowChangingName="TexturesRowChanging" msprop:Generator_TableClassName="TexturesDataTable" msprop:Generator_RowClassName="TexturesRow" msprop:Generator_TableVarName="tableTextures" msprop:Generator_UserTableName="Textures">
  339. <xs:complexType>
  340. <xs:sequence>
  341. <xs:element name="TextureID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="TextureID" msprop:Generator_ColumnPropNameInTable="TextureIDColumn" msprop:Generator_ColumnVarNameInTable="columnTextureID" msprop:Generator_UserColumnName="TextureID" type="xs:int" />
  342. <xs:element name="TextureName" msprop:Generator_ColumnPropNameInRow="TextureName" msprop:Generator_ColumnPropNameInTable="TextureNameColumn" msprop:Generator_ColumnVarNameInTable="columnTextureName" msprop:Generator_UserColumnName="TextureName">
  343. <xs:simpleType>
  344. <xs:restriction base="xs:string">
  345. <xs:maxLength value="50" />
  346. </xs:restriction>
  347. </xs:simpleType>
  348. </xs:element>
  349. <xs:element name="TextureTypeID" msprop:Generator_ColumnPropNameInRow="TextureTypeID" msprop:Generator_ColumnPropNameInTable="TextureTypeIDColumn" msprop:Generator_ColumnVarNameInTable="columnTextureTypeID" msprop:Generator_UserColumnName="TextureTypeID" type="xs:int" />
  350. <xs:element name="ColourID" msprop:Generator_ColumnPropNameInRow="ColourID" msprop:Generator_ColumnPropNameInTable="ColourIDColumn" msprop:Generator_ColumnVarNameInTable="columnColourID" msprop:Generator_UserColumnName="ColourID" type="xs:int" minOccurs="0" />
  351. <xs:element name="Width" msprop:Generator_ColumnPropNameInRow="Width" msprop:Generator_ColumnPropNameInTable="WidthColumn" msprop:Generator_ColumnVarNameInTable="columnWidth" msprop:Generator_UserColumnName="Width" type="xs:int" minOccurs="0" />
  352. <xs:element name="Length" msprop:Generator_ColumnPropNameInRow="Length" msprop:Generator_ColumnPropNameInTable="LengthColumn" msprop:Generator_ColumnVarNameInTable="columnLength" msprop:Generator_UserColumnName="Length" type="xs:int" minOccurs="0" />
  353. <xs:element name="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_UserColumnName="Description" minOccurs="0">
  354. <xs:simpleType>
  355. <xs:restriction base="xs:string">
  356. <xs:maxLength value="2147483647" />
  357. </xs:restriction>
  358. </xs:simpleType>
  359. </xs:element>
  360. <xs:element name="TexturePhoto" msprop:Generator_ColumnPropNameInRow="TexturePhoto" msprop:Generator_ColumnPropNameInTable="TexturePhotoColumn" msprop:Generator_ColumnVarNameInTable="columnTexturePhoto" msprop:Generator_UserColumnName="TexturePhoto" type="xs:base64Binary" minOccurs="0" />
  361. </xs:sequence>
  362. </xs:complexType>
  363. </xs:element>
  364. <xs:element name="TextureType" msprop:Generator_RowEvHandlerName="TextureTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="TextureTypeRowDeleted" msprop:Generator_RowDeletingName="TextureTypeRowDeleting" msprop:Generator_RowEvArgName="TextureTypeRowChangeEvent" msprop:Generator_TablePropName="TextureType" msprop:Generator_RowChangedName="TextureTypeRowChanged" msprop:Generator_RowChangingName="TextureTypeRowChanging" msprop:Generator_TableClassName="TextureTypeDataTable" msprop:Generator_RowClassName="TextureTypeRow" msprop:Generator_TableVarName="tableTextureType" msprop:Generator_UserTableName="TextureType">
  365. <xs:complexType>
  366. <xs:sequence>
  367. <xs:element name="TextureTypeID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="TextureTypeID" msprop:Generator_ColumnPropNameInTable="TextureTypeIDColumn" msprop:Generator_ColumnVarNameInTable="columnTextureTypeID" msprop:Generator_UserColumnName="TextureTypeID" type="xs:int" />
  368. <xs:element name="TextureTypeName" msprop:Generator_ColumnPropNameInRow="TextureTypeName" msprop:Generator_ColumnPropNameInTable="TextureTypeNameColumn" msprop:Generator_ColumnVarNameInTable="columnTextureTypeName" msprop:Generator_UserColumnName="TextureTypeName" minOccurs="0">
  369. <xs:simpleType>
  370. <xs:restriction base="xs:string">
  371. <xs:maxLength value="50" />
  372. </xs:restriction>
  373. </xs:simpleType>
  374. </xs:element>
  375. </xs:sequence>
  376. </xs:complexType>
  377. </xs:element>
  378. </xs:choice>
  379. </xs:complexType>
  380. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  381. <xs:selector xpath=".//mstns:Users" />
  382. <xs:field xpath="mstns:UserID" />
  383. </xs:unique>
  384. <xs:unique name="Colours_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  385. <xs:selector xpath=".//mstns:Colours" />
  386. <xs:field xpath="mstns:ColourID" />
  387. </xs:unique>
  388. <xs:unique name="Textures_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  389. <xs:selector xpath=".//mstns:Textures" />
  390. <xs:field xpath="mstns:TextureID" />
  391. </xs:unique>
  392. <xs:unique name="TextureType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  393. <xs:selector xpath=".//mstns:TextureType" />
  394. <xs:field xpath="mstns:TextureTypeID" />
  395. </xs:unique>
  396. </xs:element>
  397. <xs:annotation>
  398. <xs:appinfo>
  399. <msdata:Relationship name="FK_Textures_TextureType" msdata:parent="TextureType" msdata:child="Textures" msdata:parentkey="TextureTypeID" msdata:childkey="TextureTypeID" msprop:Generator_UserParentTable="TextureType" msprop:Generator_UserChildTable="Textures" msprop:Generator_RelationVarName="relationFK_Textures_TextureType" msprop:Generator_UserRelationName="FK_Textures_TextureType" msprop:Generator_ChildPropName="GetTexturesRows" msprop:Generator_ParentPropName="TextureTypeRow" />
  400. </xs:appinfo>
  401. </xs:annotation>
  402. </xs:schema>