DB_Кузьменко_V2DataSet.xsd 151 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="DB_Кузьменко_V2DataSet" targetNamespace="http://tempuri.org/DB_Кузьменко_V2DataSet.xsd" xmlns:mstns="http://tempuri.org/DB_Кузьменко_V2DataSet.xsd" xmlns="http://tempuri.org/DB_Кузьменко_V2DataSet.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="DB_Кузьменко_V2ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="DB_Кузьменко_V2ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Бархотные_брови.Properties.Settings.GlobalReference.Default.DB_Кузьменко_V2ConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AttachedProductTableAdapter" GeneratorDataComponentClassName="AttachedProductTableAdapter" Name="AttachedProduct" UserDataComponentName="AttachedProductTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.AttachedProduct" 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].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. </Parameters>
  20. </DbCommand>
  21. </DeleteCommand>
  22. <InsertCommand>
  23. <DbCommand CommandType="Text" ModifiedByUser="false">
  24. <CommandText>INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  25. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)</CommandText>
  26. <Parameters>
  27. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  28. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  29. </Parameters>
  30. </DbCommand>
  31. </InsertCommand>
  32. <SelectCommand>
  33. <DbCommand CommandType="Text" ModifiedByUser="false">
  34. <CommandText>SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct</CommandText>
  35. <Parameters />
  36. </DbCommand>
  37. </SelectCommand>
  38. <UpdateCommand>
  39. <DbCommand CommandType="Text" ModifiedByUser="false">
  40. <CommandText>UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  41. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)</CommandText>
  42. <Parameters>
  43. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  45. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  46. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  47. </Parameters>
  48. </DbCommand>
  49. </UpdateCommand>
  50. </DbSource>
  51. </MainSource>
  52. <Mappings>
  53. <Mapping SourceColumn="MainProductID" DataSetColumn="MainProductID" />
  54. <Mapping SourceColumn="AttachedProductID" DataSetColumn="AttachedProductID" />
  55. </Mappings>
  56. <Sources />
  57. </TableAdapter>
  58. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientTableAdapter" GeneratorDataComponentClassName="ClientTableAdapter" Name="Client" UserDataComponentName="ClientTableAdapter">
  59. <MainSource>
  60. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.Client" 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">
  61. <DeleteCommand>
  62. <DbCommand CommandType="Text" ModifiedByUser="false">
  63. <CommandText>DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ((@IsNull_GenderCode = 1 AND [GenderCode] IS NULL) OR ([GenderCode] = @Original_GenderCode)) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))</CommandText>
  64. <Parameters>
  65. <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" />
  66. <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" />
  67. <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" />
  68. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthday" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="true" SourceVersion="Original" />
  71. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Original" />
  72. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  73. <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" />
  74. <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" />
  75. <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" />
  76. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GenderCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="true" SourceVersion="Original" />
  77. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_GenderCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  78. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhotoPath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="true" SourceVersion="Original" />
  79. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  80. </Parameters>
  81. </DbCommand>
  82. </DeleteCommand>
  83. <InsertCommand>
  84. <DbCommand CommandType="Text" ModifiedByUser="false">
  85. <CommandText>INSERT INTO [dbo].[Client] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  86. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())</CommandText>
  87. <Parameters>
  88. <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" />
  89. <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" />
  90. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  91. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Current" />
  92. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  93. <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" />
  94. <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" />
  95. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@GenderCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  96. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  97. </Parameters>
  98. </DbCommand>
  99. </InsertCommand>
  100. <SelectCommand>
  101. <DbCommand CommandType="Text" ModifiedByUser="false">
  102. <CommandText>SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM dbo.Client</CommandText>
  103. <Parameters />
  104. </DbCommand>
  105. </SelectCommand>
  106. <UpdateCommand>
  107. <DbCommand CommandType="Text" ModifiedByUser="false">
  108. <CommandText>UPDATE [dbo].[Client] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ((@IsNull_GenderCode = 1 AND [GenderCode] IS NULL) OR ([GenderCode] = @Original_GenderCode)) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  109. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)</CommandText>
  110. <Parameters>
  111. <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" />
  112. <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" />
  113. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  114. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Current" />
  115. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  116. <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" />
  117. <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" />
  118. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@GenderCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  119. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  120. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  121. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
  122. <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" />
  123. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  124. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  125. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthday" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="true" SourceVersion="Original" />
  126. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Original" />
  127. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  128. <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" />
  129. <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" />
  130. <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" />
  131. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GenderCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="true" SourceVersion="Original" />
  132. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_GenderCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  133. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhotoPath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="true" SourceVersion="Original" />
  134. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  135. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.Client" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  136. </Parameters>
  137. </DbCommand>
  138. </UpdateCommand>
  139. </DbSource>
  140. </MainSource>
  141. <Mappings>
  142. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  143. <Mapping SourceColumn="FirstName" DataSetColumn="FirstName" />
  144. <Mapping SourceColumn="LastName" DataSetColumn="LastName" />
  145. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  146. <Mapping SourceColumn="Birthday" DataSetColumn="Birthday" />
  147. <Mapping SourceColumn="RegistrationDate" DataSetColumn="RegistrationDate" />
  148. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  149. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  150. <Mapping SourceColumn="GenderCode" DataSetColumn="GenderCode" />
  151. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  152. </Mappings>
  153. <Sources />
  154. </TableAdapter>
  155. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientServiceTableAdapter" GeneratorDataComponentClassName="ClientServiceTableAdapter" Name="ClientService" UserDataComponentName="ClientServiceTableAdapter">
  156. <MainSource>
  157. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.ClientService" 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">
  158. <DeleteCommand>
  159. <DbCommand CommandType="Text" ModifiedByUser="false">
  160. <CommandText>DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime))</CommandText>
  161. <Parameters>
  162. <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" />
  163. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  164. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  165. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Original" />
  166. </Parameters>
  167. </DbCommand>
  168. </DeleteCommand>
  169. <InsertCommand>
  170. <DbCommand CommandType="Text" ModifiedByUser="false">
  171. <CommandText>INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);
  172. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())</CommandText>
  173. <Parameters>
  174. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  175. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  176. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Current" />
  177. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
  178. </Parameters>
  179. </DbCommand>
  180. </InsertCommand>
  181. <SelectCommand>
  182. <DbCommand CommandType="Text" ModifiedByUser="false">
  183. <CommandText>SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService</CommandText>
  184. <Parameters />
  185. </DbCommand>
  186. </SelectCommand>
  187. <UpdateCommand>
  188. <DbCommand CommandType="Text" ModifiedByUser="false">
  189. <CommandText>UPDATE [dbo].[ClientService] SET [ClientID] = @ClientID, [ServiceID] = @ServiceID, [StartTime] = @StartTime, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime));
  190. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)</CommandText>
  191. <Parameters>
  192. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  193. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  194. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Current" />
  195. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
  196. <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" />
  197. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  198. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  199. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Original" />
  200. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.ClientService" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  201. </Parameters>
  202. </DbCommand>
  203. </UpdateCommand>
  204. </DbSource>
  205. </MainSource>
  206. <Mappings>
  207. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  208. <Mapping SourceColumn="ClientID" DataSetColumn="ClientID" />
  209. <Mapping SourceColumn="ServiceID" DataSetColumn="ServiceID" />
  210. <Mapping SourceColumn="StartTime" DataSetColumn="StartTime" />
  211. <Mapping SourceColumn="Comment" DataSetColumn="Comment" />
  212. </Mappings>
  213. <Sources />
  214. </TableAdapter>
  215. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DocumentByServiceTableAdapter" GeneratorDataComponentClassName="DocumentByServiceTableAdapter" Name="DocumentByService" UserDataComponentName="DocumentByServiceTableAdapter">
  216. <MainSource>
  217. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.DocumentByService" 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">
  218. <DeleteCommand>
  219. <DbCommand CommandType="Text" ModifiedByUser="false">
  220. <CommandText>DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath))</CommandText>
  221. <Parameters>
  222. <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" />
  223. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  224. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  225. </Parameters>
  226. </DbCommand>
  227. </DeleteCommand>
  228. <InsertCommand>
  229. <DbCommand CommandType="Text" ModifiedByUser="false">
  230. <CommandText>INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES (@ClientServiceID, @DocumentPath);
  231. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = SCOPE_IDENTITY())</CommandText>
  232. <Parameters>
  233. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  234. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  235. </Parameters>
  236. </DbCommand>
  237. </InsertCommand>
  238. <SelectCommand>
  239. <DbCommand CommandType="Text" ModifiedByUser="false">
  240. <CommandText>SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService</CommandText>
  241. <Parameters />
  242. </DbCommand>
  243. </SelectCommand>
  244. <UpdateCommand>
  245. <DbCommand CommandType="Text" ModifiedByUser="false">
  246. <CommandText>UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  247. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)</CommandText>
  248. <Parameters>
  249. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  250. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  251. <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" />
  252. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  253. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  254. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.DocumentByService" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  255. </Parameters>
  256. </DbCommand>
  257. </UpdateCommand>
  258. </DbSource>
  259. </MainSource>
  260. <Mappings>
  261. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  262. <Mapping SourceColumn="ClientServiceID" DataSetColumn="ClientServiceID" />
  263. <Mapping SourceColumn="DocumentPath" DataSetColumn="DocumentPath" />
  264. </Mappings>
  265. <Sources />
  266. </TableAdapter>
  267. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GenderTableAdapter" GeneratorDataComponentClassName="GenderTableAdapter" Name="Gender" UserDataComponentName="GenderTableAdapter">
  268. <MainSource>
  269. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.Gender" 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">
  270. <DeleteCommand>
  271. <DbCommand CommandType="Text" ModifiedByUser="false">
  272. <CommandText>DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))</CommandText>
  273. <Parameters>
  274. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Original" />
  275. <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" />
  276. <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" />
  277. </Parameters>
  278. </DbCommand>
  279. </DeleteCommand>
  280. <InsertCommand>
  281. <DbCommand CommandType="Text" ModifiedByUser="false">
  282. <CommandText>INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);
  283. SELECT Code, Name FROM Gender WHERE (Code = @Code)</CommandText>
  284. <Parameters>
  285. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Current" />
  286. <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" />
  287. </Parameters>
  288. </DbCommand>
  289. </InsertCommand>
  290. <SelectCommand>
  291. <DbCommand CommandType="Text" ModifiedByUser="false">
  292. <CommandText>SELECT Code, Name FROM dbo.Gender</CommandText>
  293. <Parameters />
  294. </DbCommand>
  295. </SelectCommand>
  296. <UpdateCommand>
  297. <DbCommand CommandType="Text" ModifiedByUser="false">
  298. <CommandText>UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)));
  299. SELECT Code, Name FROM Gender WHERE (Code = @Code)</CommandText>
  300. <Parameters>
  301. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Current" />
  302. <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" />
  303. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Original" />
  304. <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" />
  305. <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" />
  306. </Parameters>
  307. </DbCommand>
  308. </UpdateCommand>
  309. </DbSource>
  310. </MainSource>
  311. <Mappings>
  312. <Mapping SourceColumn="Code" DataSetColumn="Code" />
  313. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  314. </Mappings>
  315. <Sources />
  316. </TableAdapter>
  317. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ManufacturerTableAdapter" GeneratorDataComponentClassName="ManufacturerTableAdapter" Name="Manufacturer" UserDataComponentName="ManufacturerTableAdapter">
  318. <MainSource>
  319. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.Manufacturer" 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">
  320. <DeleteCommand>
  321. <DbCommand CommandType="Text" ModifiedByUser="false">
  322. <CommandText>DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)))</CommandText>
  323. <Parameters>
  324. <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" />
  325. <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" />
  326. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_StartDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="true" SourceVersion="Original" />
  327. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  328. </Parameters>
  329. </DbCommand>
  330. </DeleteCommand>
  331. <InsertCommand>
  332. <DbCommand CommandType="Text" ModifiedByUser="false">
  333. <CommandText>INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate);
  334. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())</CommandText>
  335. <Parameters>
  336. <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" />
  337. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  338. </Parameters>
  339. </DbCommand>
  340. </InsertCommand>
  341. <SelectCommand>
  342. <DbCommand CommandType="Text" ModifiedByUser="false">
  343. <CommandText>SELECT ID, Name, StartDate FROM dbo.Manufacturer</CommandText>
  344. <Parameters />
  345. </DbCommand>
  346. </SelectCommand>
  347. <UpdateCommand>
  348. <DbCommand CommandType="Text" ModifiedByUser="false">
  349. <CommandText>UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  350. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)</CommandText>
  351. <Parameters>
  352. <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" />
  353. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  354. <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" />
  355. <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" />
  356. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_StartDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="true" SourceVersion="Original" />
  357. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  358. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.Manufacturer" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  359. </Parameters>
  360. </DbCommand>
  361. </UpdateCommand>
  362. </DbSource>
  363. </MainSource>
  364. <Mappings>
  365. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  366. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  367. <Mapping SourceColumn="StartDate" DataSetColumn="StartDate" />
  368. </Mappings>
  369. <Sources />
  370. </TableAdapter>
  371. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  372. <MainSource>
  373. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.Product" 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">
  374. <DeleteCommand>
  375. <DbCommand CommandType="Text" ModifiedByUser="false">
  376. <CommandText>DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))</CommandText>
  377. <Parameters>
  378. <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" />
  379. <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" />
  380. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  381. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  382. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  383. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
  384. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="true" SourceVersion="Original" />
  385. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Original" />
  386. </Parameters>
  387. </DbCommand>
  388. </DeleteCommand>
  389. <InsertCommand>
  390. <DbCommand CommandType="Text" ModifiedByUser="false">
  391. <CommandText>INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  392. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())</CommandText>
  393. <Parameters>
  394. <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" />
  395. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  396. <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" />
  397. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  398. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
  399. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Current" />
  400. </Parameters>
  401. </DbCommand>
  402. </InsertCommand>
  403. <SelectCommand>
  404. <DbCommand CommandType="Text" ModifiedByUser="false">
  405. <CommandText>SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM dbo.Product</CommandText>
  406. <Parameters />
  407. </DbCommand>
  408. </SelectCommand>
  409. <UpdateCommand>
  410. <DbCommand CommandType="Text" ModifiedByUser="false">
  411. <CommandText>UPDATE [dbo].[Product] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [MainImagePath] = @MainImagePath, [IsActive] = @IsActive, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  412. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)</CommandText>
  413. <Parameters>
  414. <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" />
  415. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  416. <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" />
  417. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  418. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
  419. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Current" />
  420. <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" />
  421. <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" />
  422. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  423. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  424. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  425. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
  426. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="true" SourceVersion="Original" />
  427. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Original" />
  428. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  429. </Parameters>
  430. </DbCommand>
  431. </UpdateCommand>
  432. </DbSource>
  433. </MainSource>
  434. <Mappings>
  435. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  436. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  437. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  438. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  439. <Mapping SourceColumn="MainImagePath" DataSetColumn="MainImagePath" />
  440. <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
  441. <Mapping SourceColumn="ManufacturerID" DataSetColumn="ManufacturerID" />
  442. </Mappings>
  443. <Sources />
  444. </TableAdapter>
  445. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductPhotoTableAdapter" GeneratorDataComponentClassName="ProductPhotoTableAdapter" Name="ProductPhoto" UserDataComponentName="ProductPhotoTableAdapter">
  446. <MainSource>
  447. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.ProductPhoto" 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">
  448. <DeleteCommand>
  449. <DbCommand CommandType="Text" ModifiedByUser="false">
  450. <CommandText>DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))</CommandText>
  451. <Parameters>
  452. <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" />
  453. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  454. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  455. </Parameters>
  456. </DbCommand>
  457. </DeleteCommand>
  458. <InsertCommand>
  459. <DbCommand CommandType="Text" ModifiedByUser="false">
  460. <CommandText>INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @PhotoPath);
  461. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE_IDENTITY())</CommandText>
  462. <Parameters>
  463. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  464. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  465. </Parameters>
  466. </DbCommand>
  467. </InsertCommand>
  468. <SelectCommand>
  469. <DbCommand CommandType="Text" ModifiedByUser="false">
  470. <CommandText>SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto</CommandText>
  471. <Parameters />
  472. </DbCommand>
  473. </SelectCommand>
  474. <UpdateCommand>
  475. <DbCommand CommandType="Text" ModifiedByUser="false">
  476. <CommandText>UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  477. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)</CommandText>
  478. <Parameters>
  479. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  480. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  481. <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" />
  482. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  483. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  484. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.ProductPhoto" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  485. </Parameters>
  486. </DbCommand>
  487. </UpdateCommand>
  488. </DbSource>
  489. </MainSource>
  490. <Mappings>
  491. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  492. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  493. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  494. </Mappings>
  495. <Sources />
  496. </TableAdapter>
  497. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductSaleTableAdapter" GeneratorDataComponentClassName="ProductSaleTableAdapter" Name="ProductSale" UserDataComponentName="ProductSaleTableAdapter">
  498. <MainSource>
  499. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.ProductSale" 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">
  500. <DeleteCommand>
  501. <DbCommand CommandType="Text" ModifiedByUser="false">
  502. <CommandText>DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)))</CommandText>
  503. <Parameters>
  504. <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" />
  505. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  506. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  507. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
  508. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="true" SourceVersion="Original" />
  509. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  510. </Parameters>
  511. </DbCommand>
  512. </DeleteCommand>
  513. <InsertCommand>
  514. <DbCommand CommandType="Text" ModifiedByUser="false">
  515. <CommandText>INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServiceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);
  516. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCOPE_IDENTITY())</CommandText>
  517. <Parameters>
  518. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  519. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  520. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
  521. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  522. </Parameters>
  523. </DbCommand>
  524. </InsertCommand>
  525. <SelectCommand>
  526. <DbCommand CommandType="Text" ModifiedByUser="false">
  527. <CommandText>SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale</CommandText>
  528. <Parameters />
  529. </DbCommand>
  530. </SelectCommand>
  531. <UpdateCommand>
  532. <DbCommand CommandType="Text" ModifiedByUser="false">
  533. <CommandText>UPDATE [dbo].[ProductSale] SET [SaleDate] = @SaleDate, [ProductID] = @ProductID, [Quantity] = @Quantity, [ClientServiceID] = @ClientServiceID WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)));
  534. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)</CommandText>
  535. <Parameters>
  536. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  537. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  538. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
  539. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  540. <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" />
  541. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  542. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  543. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
  544. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="true" SourceVersion="Original" />
  545. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  546. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.ProductSale" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  547. </Parameters>
  548. </DbCommand>
  549. </UpdateCommand>
  550. </DbSource>
  551. </MainSource>
  552. <Mappings>
  553. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  554. <Mapping SourceColumn="SaleDate" DataSetColumn="SaleDate" />
  555. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  556. <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
  557. <Mapping SourceColumn="ClientServiceID" DataSetColumn="ClientServiceID" />
  558. </Mappings>
  559. <Sources />
  560. </TableAdapter>
  561. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ServiceTableAdapter" GeneratorDataComponentClassName="ServiceTableAdapter" Name="Service" UserDataComponentName="ServiceTableAdapter">
  562. <MainSource>
  563. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.Service" 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">
  564. <DeleteCommand>
  565. <DbCommand CommandType="Text" ModifiedByUser="false">
  566. <CommandText>DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)))</CommandText>
  567. <Parameters>
  568. <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" />
  569. <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" />
  570. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  571. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DurationInSeconds" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
  572. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
  573. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
  574. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  575. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  576. </Parameters>
  577. </DbCommand>
  578. </DeleteCommand>
  579. <InsertCommand>
  580. <DbCommand CommandType="Text" ModifiedByUser="false">
  581. <CommandText>INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Descritpion], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Descritpion, @Discount, @MainImagePath);
  582. SELECT ID, Title, Cost, DurationInSeconds, Descritpion, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())</CommandText>
  583. <Parameters>
  584. <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" />
  585. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  586. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DurationInSeconds" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
  587. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Descritpion" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descritpion" SourceColumnNullMapping="false" SourceVersion="Current" />
  588. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
  589. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  590. </Parameters>
  591. </DbCommand>
  592. </InsertCommand>
  593. <SelectCommand>
  594. <DbCommand CommandType="Text" ModifiedByUser="false">
  595. <CommandText>SELECT ID, Title, Cost, DurationInSeconds, Descritpion, Discount, MainImagePath FROM dbo.Service</CommandText>
  596. <Parameters />
  597. </DbCommand>
  598. </SelectCommand>
  599. <UpdateCommand>
  600. <DbCommand CommandType="Text" ModifiedByUser="false">
  601. <CommandText>UPDATE [dbo].[Service] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Descritpion] = @Descritpion, [Discount] = @Discount, [MainImagePath] = @MainImagePath WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)));
  602. SELECT ID, Title, Cost, DurationInSeconds, Descritpion, Discount, MainImagePath FROM Service WHERE (ID = @ID)</CommandText>
  603. <Parameters>
  604. <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" />
  605. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  606. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DurationInSeconds" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
  607. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Descritpion" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descritpion" SourceColumnNullMapping="false" SourceVersion="Current" />
  608. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
  609. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  610. <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" />
  611. <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" />
  612. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  613. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DurationInSeconds" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
  614. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
  615. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
  616. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  617. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  618. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.Service" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  619. </Parameters>
  620. </DbCommand>
  621. </UpdateCommand>
  622. </DbSource>
  623. </MainSource>
  624. <Mappings>
  625. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  626. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  627. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  628. <Mapping SourceColumn="DurationInSeconds" DataSetColumn="DurationInSeconds" />
  629. <Mapping SourceColumn="Descritpion" DataSetColumn="Descritpion" />
  630. <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
  631. <Mapping SourceColumn="MainImagePath" DataSetColumn="MainImagePath" />
  632. </Mappings>
  633. <Sources />
  634. </TableAdapter>
  635. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ServicePhotoTableAdapter" GeneratorDataComponentClassName="ServicePhotoTableAdapter" Name="ServicePhoto" UserDataComponentName="ServicePhotoTableAdapter">
  636. <MainSource>
  637. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.ServicePhoto" 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">
  638. <DeleteCommand>
  639. <DbCommand CommandType="Text" ModifiedByUser="false">
  640. <CommandText>DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))</CommandText>
  641. <Parameters>
  642. <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" />
  643. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  644. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhotoPath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="true" SourceVersion="Original" />
  645. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  646. </Parameters>
  647. </DbCommand>
  648. </DeleteCommand>
  649. <InsertCommand>
  650. <DbCommand CommandType="Text" ModifiedByUser="false">
  651. <CommandText>INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @PhotoPath);
  652. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE_IDENTITY())</CommandText>
  653. <Parameters>
  654. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  655. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  656. </Parameters>
  657. </DbCommand>
  658. </InsertCommand>
  659. <SelectCommand>
  660. <DbCommand CommandType="Text" ModifiedByUser="false">
  661. <CommandText>SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto</CommandText>
  662. <Parameters />
  663. </DbCommand>
  664. </SelectCommand>
  665. <UpdateCommand>
  666. <DbCommand CommandType="Text" ModifiedByUser="false">
  667. <CommandText>UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  668. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)</CommandText>
  669. <Parameters>
  670. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  671. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  672. <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" />
  673. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  674. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhotoPath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="true" SourceVersion="Original" />
  675. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  676. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.ServicePhoto" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  677. </Parameters>
  678. </DbCommand>
  679. </UpdateCommand>
  680. </DbSource>
  681. </MainSource>
  682. <Mappings>
  683. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  684. <Mapping SourceColumn="ServiceID" DataSetColumn="ServiceID" />
  685. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  686. </Mappings>
  687. <Sources />
  688. </TableAdapter>
  689. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TagTableAdapter" GeneratorDataComponentClassName="TagTableAdapter" Name="Tag" UserDataComponentName="TagTableAdapter">
  690. <MainSource>
  691. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.Tag" 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">
  692. <DeleteCommand>
  693. <DbCommand CommandType="Text" ModifiedByUser="false">
  694. <CommandText>DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color))</CommandText>
  695. <Parameters>
  696. <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" />
  697. <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" />
  698. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Original" />
  699. </Parameters>
  700. </DbCommand>
  701. </DeleteCommand>
  702. <InsertCommand>
  703. <DbCommand CommandType="Text" ModifiedByUser="false">
  704. <CommandText>INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);
  705. SELECT ID, Title, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())</CommandText>
  706. <Parameters>
  707. <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" />
  708. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Current" />
  709. </Parameters>
  710. </DbCommand>
  711. </InsertCommand>
  712. <SelectCommand>
  713. <DbCommand CommandType="Text" ModifiedByUser="false">
  714. <CommandText>SELECT ID, Title, Color FROM dbo.Tag</CommandText>
  715. <Parameters />
  716. </DbCommand>
  717. </SelectCommand>
  718. <UpdateCommand>
  719. <DbCommand CommandType="Text" ModifiedByUser="false">
  720. <CommandText>UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));
  721. SELECT ID, Title, Color FROM Tag WHERE (ID = @ID)</CommandText>
  722. <Parameters>
  723. <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" />
  724. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Current" />
  725. <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" />
  726. <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" />
  727. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Original" />
  728. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="DB_Кузьменко_V2.dbo.Tag" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  729. </Parameters>
  730. </DbCommand>
  731. </UpdateCommand>
  732. </DbSource>
  733. </MainSource>
  734. <Mappings>
  735. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  736. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  737. <Mapping SourceColumn="Color" DataSetColumn="Color" />
  738. </Mappings>
  739. <Sources />
  740. </TableAdapter>
  741. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TagOfClientTableAdapter" GeneratorDataComponentClassName="TagOfClientTableAdapter" Name="TagOfClient" UserDataComponentName="TagOfClientTableAdapter">
  742. <MainSource>
  743. <DbSource ConnectionRef="DB_Кузьменко_V2ConnectionString (Settings)" DbObjectName="DB_Кузьменко_V2.dbo.TagOfClient" 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">
  744. <DeleteCommand>
  745. <DbCommand CommandType="Text" ModifiedByUser="false">
  746. <CommandText>DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID))</CommandText>
  747. <Parameters>
  748. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  749. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Original" />
  750. </Parameters>
  751. </DbCommand>
  752. </DeleteCommand>
  753. <InsertCommand>
  754. <DbCommand CommandType="Text" ModifiedByUser="false">
  755. <CommandText>INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);
  756. SELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)</CommandText>
  757. <Parameters>
  758. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  759. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Current" />
  760. </Parameters>
  761. </DbCommand>
  762. </InsertCommand>
  763. <SelectCommand>
  764. <DbCommand CommandType="Text" ModifiedByUser="false">
  765. <CommandText>SELECT ClientID, TagID FROM dbo.TagOfClient</CommandText>
  766. <Parameters />
  767. </DbCommand>
  768. </SelectCommand>
  769. <UpdateCommand>
  770. <DbCommand CommandType="Text" ModifiedByUser="false">
  771. <CommandText>UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));
  772. SELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)</CommandText>
  773. <Parameters>
  774. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  775. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Current" />
  776. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  777. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Original" />
  778. </Parameters>
  779. </DbCommand>
  780. </UpdateCommand>
  781. </DbSource>
  782. </MainSource>
  783. <Mappings>
  784. <Mapping SourceColumn="ClientID" DataSetColumn="ClientID" />
  785. <Mapping SourceColumn="TagID" DataSetColumn="TagID" />
  786. </Mappings>
  787. <Sources />
  788. </TableAdapter>
  789. </Tables>
  790. <Sources />
  791. </DataSource>
  792. </xs:appinfo>
  793. </xs:annotation>
  794. <xs:element name="DB_Кузьменко_V2DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DB_Кузьменко_V2DataSet" msprop:Generator_UserDSName="DB_Кузьменко_V2DataSet">
  795. <xs:complexType>
  796. <xs:choice minOccurs="0" maxOccurs="unbounded">
  797. <xs:element name="AttachedProduct" msprop:Generator_TableClassName="AttachedProductDataTable" msprop:Generator_TableVarName="tableAttachedProduct" msprop:Generator_TablePropName="AttachedProduct" msprop:Generator_RowDeletingName="AttachedProductRowDeleting" msprop:Generator_RowChangingName="AttachedProductRowChanging" msprop:Generator_RowEvHandlerName="AttachedProductRowChangeEventHandler" msprop:Generator_RowDeletedName="AttachedProductRowDeleted" msprop:Generator_UserTableName="AttachedProduct" msprop:Generator_RowChangedName="AttachedProductRowChanged" msprop:Generator_RowEvArgName="AttachedProductRowChangeEvent" msprop:Generator_RowClassName="AttachedProductRow">
  798. <xs:complexType>
  799. <xs:sequence>
  800. <xs:element name="MainProductID" msprop:Generator_ColumnVarNameInTable="columnMainProductID" msprop:Generator_ColumnPropNameInRow="MainProductID" msprop:Generator_ColumnPropNameInTable="MainProductIDColumn" msprop:Generator_UserColumnName="MainProductID" type="xs:int" />
  801. <xs:element name="AttachedProductID" msprop:Generator_ColumnVarNameInTable="columnAttachedProductID" msprop:Generator_ColumnPropNameInRow="AttachedProductID" msprop:Generator_ColumnPropNameInTable="AttachedProductIDColumn" msprop:Generator_UserColumnName="AttachedProductID" type="xs:int" />
  802. </xs:sequence>
  803. </xs:complexType>
  804. </xs:element>
  805. <xs:element name="Client" msprop:Generator_TableClassName="ClientDataTable" msprop:Generator_TableVarName="tableClient" msprop:Generator_TablePropName="Client" msprop:Generator_RowDeletingName="ClientRowDeleting" msprop:Generator_RowChangingName="ClientRowChanging" msprop:Generator_RowEvHandlerName="ClientRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientRowDeleted" msprop:Generator_UserTableName="Client" msprop:Generator_RowChangedName="ClientRowChanged" msprop:Generator_RowEvArgName="ClientRowChangeEvent" msprop:Generator_RowClassName="ClientRow">
  806. <xs:complexType>
  807. <xs:sequence>
  808. <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" />
  809. <xs:element name="FirstName" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ColumnPropNameInTable="FirstNameColumn" msprop:Generator_UserColumnName="FirstName">
  810. <xs:simpleType>
  811. <xs:restriction base="xs:string">
  812. <xs:maxLength value="50" />
  813. </xs:restriction>
  814. </xs:simpleType>
  815. </xs:element>
  816. <xs:element name="LastName" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ColumnPropNameInTable="LastNameColumn" msprop:Generator_UserColumnName="LastName">
  817. <xs:simpleType>
  818. <xs:restriction base="xs:string">
  819. <xs:maxLength value="50" />
  820. </xs:restriction>
  821. </xs:simpleType>
  822. </xs:element>
  823. <xs:element name="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_UserColumnName="Patronymic" minOccurs="0">
  824. <xs:simpleType>
  825. <xs:restriction base="xs:string">
  826. <xs:maxLength value="50" />
  827. </xs:restriction>
  828. </xs:simpleType>
  829. </xs:element>
  830. <xs:element name="Birthday" msprop:Generator_ColumnVarNameInTable="columnBirthday" msprop:Generator_ColumnPropNameInRow="Birthday" msprop:Generator_ColumnPropNameInTable="BirthdayColumn" msprop:Generator_UserColumnName="Birthday" type="xs:dateTime" minOccurs="0" />
  831. <xs:element name="RegistrationDate" msprop:Generator_ColumnVarNameInTable="columnRegistrationDate" msprop:Generator_ColumnPropNameInRow="RegistrationDate" msprop:Generator_ColumnPropNameInTable="RegistrationDateColumn" msprop:Generator_UserColumnName="RegistrationDate" type="xs:dateTime" />
  832. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email" minOccurs="0">
  833. <xs:simpleType>
  834. <xs:restriction base="xs:string">
  835. <xs:maxLength value="255" />
  836. </xs:restriction>
  837. </xs:simpleType>
  838. </xs:element>
  839. <xs:element name="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone">
  840. <xs:simpleType>
  841. <xs:restriction base="xs:string">
  842. <xs:maxLength value="20" />
  843. </xs:restriction>
  844. </xs:simpleType>
  845. </xs:element>
  846. <xs:element name="GenderCode" msprop:Generator_ColumnVarNameInTable="columnGenderCode" msprop:Generator_ColumnPropNameInRow="GenderCode" msprop:Generator_ColumnPropNameInTable="GenderCodeColumn" msprop:Generator_UserColumnName="GenderCode" minOccurs="0">
  847. <xs:simpleType>
  848. <xs:restriction base="xs:string">
  849. <xs:maxLength value="50" />
  850. </xs:restriction>
  851. </xs:simpleType>
  852. </xs:element>
  853. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath" minOccurs="0">
  854. <xs:simpleType>
  855. <xs:restriction base="xs:string">
  856. <xs:maxLength value="1000" />
  857. </xs:restriction>
  858. </xs:simpleType>
  859. </xs:element>
  860. </xs:sequence>
  861. </xs:complexType>
  862. </xs:element>
  863. <xs:element name="ClientService" msprop:Generator_TableClassName="ClientServiceDataTable" msprop:Generator_TableVarName="tableClientService" msprop:Generator_TablePropName="ClientService" msprop:Generator_RowDeletingName="ClientServiceRowDeleting" msprop:Generator_RowChangingName="ClientServiceRowChanging" msprop:Generator_RowEvHandlerName="ClientServiceRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientServiceRowDeleted" msprop:Generator_UserTableName="ClientService" msprop:Generator_RowChangedName="ClientServiceRowChanged" msprop:Generator_RowEvArgName="ClientServiceRowChangeEvent" msprop:Generator_RowClassName="ClientServiceRow">
  864. <xs:complexType>
  865. <xs:sequence>
  866. <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" />
  867. <xs:element name="ClientID" msprop:Generator_ColumnVarNameInTable="columnClientID" msprop:Generator_ColumnPropNameInRow="ClientID" msprop:Generator_ColumnPropNameInTable="ClientIDColumn" msprop:Generator_UserColumnName="ClientID" type="xs:int" />
  868. <xs:element name="ServiceID" msprop:Generator_ColumnVarNameInTable="columnServiceID" msprop:Generator_ColumnPropNameInRow="ServiceID" msprop:Generator_ColumnPropNameInTable="ServiceIDColumn" msprop:Generator_UserColumnName="ServiceID" type="xs:int" />
  869. <xs:element name="StartTime" msprop:Generator_ColumnVarNameInTable="columnStartTime" msprop:Generator_ColumnPropNameInRow="StartTime" msprop:Generator_ColumnPropNameInTable="StartTimeColumn" msprop:Generator_UserColumnName="StartTime" type="xs:dateTime" />
  870. <xs:element name="Comment" msprop:Generator_ColumnVarNameInTable="columnComment" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_UserColumnName="Comment" minOccurs="0">
  871. <xs:simpleType>
  872. <xs:restriction base="xs:string">
  873. <xs:maxLength value="2147483647" />
  874. </xs:restriction>
  875. </xs:simpleType>
  876. </xs:element>
  877. </xs:sequence>
  878. </xs:complexType>
  879. </xs:element>
  880. <xs:element name="DocumentByService" msprop:Generator_TableClassName="DocumentByServiceDataTable" msprop:Generator_TableVarName="tableDocumentByService" msprop:Generator_TablePropName="DocumentByService" msprop:Generator_RowDeletingName="DocumentByServiceRowDeleting" msprop:Generator_RowChangingName="DocumentByServiceRowChanging" msprop:Generator_RowEvHandlerName="DocumentByServiceRowChangeEventHandler" msprop:Generator_RowDeletedName="DocumentByServiceRowDeleted" msprop:Generator_UserTableName="DocumentByService" msprop:Generator_RowChangedName="DocumentByServiceRowChanged" msprop:Generator_RowEvArgName="DocumentByServiceRowChangeEvent" msprop:Generator_RowClassName="DocumentByServiceRow">
  881. <xs:complexType>
  882. <xs:sequence>
  883. <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" />
  884. <xs:element name="ClientServiceID" msprop:Generator_ColumnVarNameInTable="columnClientServiceID" msprop:Generator_ColumnPropNameInRow="ClientServiceID" msprop:Generator_ColumnPropNameInTable="ClientServiceIDColumn" msprop:Generator_UserColumnName="ClientServiceID" type="xs:int" />
  885. <xs:element name="DocumentPath" msprop:Generator_ColumnVarNameInTable="columnDocumentPath" msprop:Generator_ColumnPropNameInRow="DocumentPath" msprop:Generator_ColumnPropNameInTable="DocumentPathColumn" msprop:Generator_UserColumnName="DocumentPath">
  886. <xs:simpleType>
  887. <xs:restriction base="xs:string">
  888. <xs:maxLength value="1000" />
  889. </xs:restriction>
  890. </xs:simpleType>
  891. </xs:element>
  892. </xs:sequence>
  893. </xs:complexType>
  894. </xs:element>
  895. <xs:element name="Gender" msprop:Generator_TableClassName="GenderDataTable" msprop:Generator_TableVarName="tableGender" msprop:Generator_TablePropName="Gender" msprop:Generator_RowDeletingName="GenderRowDeleting" msprop:Generator_RowChangingName="GenderRowChanging" msprop:Generator_RowEvHandlerName="GenderRowChangeEventHandler" msprop:Generator_RowDeletedName="GenderRowDeleted" msprop:Generator_UserTableName="Gender" msprop:Generator_RowChangedName="GenderRowChanged" msprop:Generator_RowEvArgName="GenderRowChangeEvent" msprop:Generator_RowClassName="GenderRow">
  896. <xs:complexType>
  897. <xs:sequence>
  898. <xs:element name="Code" msprop:Generator_ColumnVarNameInTable="columnCode" msprop:Generator_ColumnPropNameInRow="Code" msprop:Generator_ColumnPropNameInTable="CodeColumn" msprop:Generator_UserColumnName="Code">
  899. <xs:simpleType>
  900. <xs:restriction base="xs:string">
  901. <xs:maxLength value="50" />
  902. </xs:restriction>
  903. </xs:simpleType>
  904. </xs:element>
  905. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
  906. <xs:simpleType>
  907. <xs:restriction base="xs:string">
  908. <xs:maxLength value="10" />
  909. </xs:restriction>
  910. </xs:simpleType>
  911. </xs:element>
  912. </xs:sequence>
  913. </xs:complexType>
  914. </xs:element>
  915. <xs:element name="Manufacturer" msprop:Generator_TableClassName="ManufacturerDataTable" msprop:Generator_TableVarName="tableManufacturer" msprop:Generator_TablePropName="Manufacturer" msprop:Generator_RowDeletingName="ManufacturerRowDeleting" msprop:Generator_RowChangingName="ManufacturerRowChanging" msprop:Generator_RowEvHandlerName="ManufacturerRowChangeEventHandler" msprop:Generator_RowDeletedName="ManufacturerRowDeleted" msprop:Generator_UserTableName="Manufacturer" msprop:Generator_RowChangedName="ManufacturerRowChanged" msprop:Generator_RowEvArgName="ManufacturerRowChangeEvent" msprop:Generator_RowClassName="ManufacturerRow">
  916. <xs:complexType>
  917. <xs:sequence>
  918. <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" />
  919. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
  920. <xs:simpleType>
  921. <xs:restriction base="xs:string">
  922. <xs:maxLength value="100" />
  923. </xs:restriction>
  924. </xs:simpleType>
  925. </xs:element>
  926. <xs:element name="StartDate" msprop:Generator_ColumnVarNameInTable="columnStartDate" msprop:Generator_ColumnPropNameInRow="StartDate" msprop:Generator_ColumnPropNameInTable="StartDateColumn" msprop:Generator_UserColumnName="StartDate" type="xs:dateTime" minOccurs="0" />
  927. </xs:sequence>
  928. </xs:complexType>
  929. </xs:element>
  930. <xs:element name="Product" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_TableVarName="tableProduct" msprop:Generator_TablePropName="Product" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_UserTableName="Product" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_RowEvArgName="ProductRowChangeEvent" msprop:Generator_RowClassName="ProductRow">
  931. <xs:complexType>
  932. <xs:sequence>
  933. <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" />
  934. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  935. <xs:simpleType>
  936. <xs:restriction base="xs:string">
  937. <xs:maxLength value="100" />
  938. </xs:restriction>
  939. </xs:simpleType>
  940. </xs:element>
  941. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:decimal" />
  942. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  943. <xs:simpleType>
  944. <xs:restriction base="xs:string">
  945. <xs:maxLength value="2147483647" />
  946. </xs:restriction>
  947. </xs:simpleType>
  948. </xs:element>
  949. <xs:element name="MainImagePath" msprop:Generator_ColumnVarNameInTable="columnMainImagePath" msprop:Generator_ColumnPropNameInRow="MainImagePath" msprop:Generator_ColumnPropNameInTable="MainImagePathColumn" msprop:Generator_UserColumnName="MainImagePath" minOccurs="0">
  950. <xs:simpleType>
  951. <xs:restriction base="xs:string">
  952. <xs:maxLength value="1000" />
  953. </xs:restriction>
  954. </xs:simpleType>
  955. </xs:element>
  956. <xs:element name="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" msprop:Generator_UserColumnName="IsActive" type="xs:boolean" />
  957. <xs:element name="ManufacturerID" msprop:Generator_ColumnVarNameInTable="columnManufacturerID" msprop:Generator_ColumnPropNameInRow="ManufacturerID" msprop:Generator_ColumnPropNameInTable="ManufacturerIDColumn" msprop:Generator_UserColumnName="ManufacturerID" type="xs:int" minOccurs="0" />
  958. </xs:sequence>
  959. </xs:complexType>
  960. </xs:element>
  961. <xs:element name="ProductPhoto" msprop:Generator_TableClassName="ProductPhotoDataTable" msprop:Generator_TableVarName="tableProductPhoto" msprop:Generator_TablePropName="ProductPhoto" msprop:Generator_RowDeletingName="ProductPhotoRowDeleting" msprop:Generator_RowChangingName="ProductPhotoRowChanging" msprop:Generator_RowEvHandlerName="ProductPhotoRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductPhotoRowDeleted" msprop:Generator_UserTableName="ProductPhoto" msprop:Generator_RowChangedName="ProductPhotoRowChanged" msprop:Generator_RowEvArgName="ProductPhotoRowChangeEvent" msprop:Generator_RowClassName="ProductPhotoRow">
  962. <xs:complexType>
  963. <xs:sequence>
  964. <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" />
  965. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  966. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath">
  967. <xs:simpleType>
  968. <xs:restriction base="xs:string">
  969. <xs:maxLength value="1000" />
  970. </xs:restriction>
  971. </xs:simpleType>
  972. </xs:element>
  973. </xs:sequence>
  974. </xs:complexType>
  975. </xs:element>
  976. <xs:element name="ProductSale" msprop:Generator_TableClassName="ProductSaleDataTable" msprop:Generator_TableVarName="tableProductSale" msprop:Generator_TablePropName="ProductSale" msprop:Generator_RowDeletingName="ProductSaleRowDeleting" msprop:Generator_RowChangingName="ProductSaleRowChanging" msprop:Generator_RowEvHandlerName="ProductSaleRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductSaleRowDeleted" msprop:Generator_UserTableName="ProductSale" msprop:Generator_RowChangedName="ProductSaleRowChanged" msprop:Generator_RowEvArgName="ProductSaleRowChangeEvent" msprop:Generator_RowClassName="ProductSaleRow">
  977. <xs:complexType>
  978. <xs:sequence>
  979. <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" />
  980. <xs:element name="SaleDate" msprop:Generator_ColumnVarNameInTable="columnSaleDate" msprop:Generator_ColumnPropNameInRow="SaleDate" msprop:Generator_ColumnPropNameInTable="SaleDateColumn" msprop:Generator_UserColumnName="SaleDate" type="xs:dateTime" />
  981. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  982. <xs:element name="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:int" />
  983. <xs:element name="ClientServiceID" msprop:Generator_ColumnVarNameInTable="columnClientServiceID" msprop:Generator_ColumnPropNameInRow="ClientServiceID" msprop:Generator_ColumnPropNameInTable="ClientServiceIDColumn" msprop:Generator_UserColumnName="ClientServiceID" type="xs:int" minOccurs="0" />
  984. </xs:sequence>
  985. </xs:complexType>
  986. </xs:element>
  987. <xs:element name="Service" msprop:Generator_TableClassName="ServiceDataTable" msprop:Generator_TableVarName="tableService" msprop:Generator_TablePropName="Service" msprop:Generator_RowDeletingName="ServiceRowDeleting" msprop:Generator_RowChangingName="ServiceRowChanging" msprop:Generator_RowEvHandlerName="ServiceRowChangeEventHandler" msprop:Generator_RowDeletedName="ServiceRowDeleted" msprop:Generator_UserTableName="Service" msprop:Generator_RowChangedName="ServiceRowChanged" msprop:Generator_RowEvArgName="ServiceRowChangeEvent" msprop:Generator_RowClassName="ServiceRow">
  988. <xs:complexType>
  989. <xs:sequence>
  990. <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" />
  991. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  992. <xs:simpleType>
  993. <xs:restriction base="xs:string">
  994. <xs:maxLength value="100" />
  995. </xs:restriction>
  996. </xs:simpleType>
  997. </xs:element>
  998. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost">
  999. <xs:simpleType>
  1000. <xs:restriction base="xs:string">
  1001. <xs:maxLength value="50" />
  1002. </xs:restriction>
  1003. </xs:simpleType>
  1004. </xs:element>
  1005. <xs:element name="DurationInSeconds" msprop:Generator_ColumnVarNameInTable="columnDurationInSeconds" msprop:Generator_ColumnPropNameInRow="DurationInSeconds" msprop:Generator_ColumnPropNameInTable="DurationInSecondsColumn" msprop:Generator_UserColumnName="DurationInSeconds">
  1006. <xs:simpleType>
  1007. <xs:restriction base="xs:string">
  1008. <xs:maxLength value="50" />
  1009. </xs:restriction>
  1010. </xs:simpleType>
  1011. </xs:element>
  1012. <xs:element name="Descritpion" msprop:Generator_ColumnVarNameInTable="columnDescritpion" msprop:Generator_ColumnPropNameInRow="Descritpion" msprop:Generator_ColumnPropNameInTable="DescritpionColumn" msprop:Generator_UserColumnName="Descritpion" minOccurs="0">
  1013. <xs:simpleType>
  1014. <xs:restriction base="xs:string">
  1015. <xs:maxLength value="2147483647" />
  1016. </xs:restriction>
  1017. </xs:simpleType>
  1018. </xs:element>
  1019. <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" minOccurs="0">
  1020. <xs:simpleType>
  1021. <xs:restriction base="xs:string">
  1022. <xs:maxLength value="50" />
  1023. </xs:restriction>
  1024. </xs:simpleType>
  1025. </xs:element>
  1026. <xs:element name="MainImagePath" msprop:Generator_ColumnVarNameInTable="columnMainImagePath" msprop:Generator_ColumnPropNameInRow="MainImagePath" msprop:Generator_ColumnPropNameInTable="MainImagePathColumn" msprop:Generator_UserColumnName="MainImagePath" minOccurs="0">
  1027. <xs:simpleType>
  1028. <xs:restriction base="xs:string">
  1029. <xs:maxLength value="1000" />
  1030. </xs:restriction>
  1031. </xs:simpleType>
  1032. </xs:element>
  1033. </xs:sequence>
  1034. </xs:complexType>
  1035. </xs:element>
  1036. <xs:element name="ServicePhoto" msprop:Generator_TableClassName="ServicePhotoDataTable" msprop:Generator_TableVarName="tableServicePhoto" msprop:Generator_TablePropName="ServicePhoto" msprop:Generator_RowDeletingName="ServicePhotoRowDeleting" msprop:Generator_RowChangingName="ServicePhotoRowChanging" msprop:Generator_RowEvHandlerName="ServicePhotoRowChangeEventHandler" msprop:Generator_RowDeletedName="ServicePhotoRowDeleted" msprop:Generator_UserTableName="ServicePhoto" msprop:Generator_RowChangedName="ServicePhotoRowChanged" msprop:Generator_RowEvArgName="ServicePhotoRowChangeEvent" msprop:Generator_RowClassName="ServicePhotoRow">
  1037. <xs:complexType>
  1038. <xs:sequence>
  1039. <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" />
  1040. <xs:element name="ServiceID" msprop:Generator_ColumnVarNameInTable="columnServiceID" msprop:Generator_ColumnPropNameInRow="ServiceID" msprop:Generator_ColumnPropNameInTable="ServiceIDColumn" msprop:Generator_UserColumnName="ServiceID" type="xs:int" />
  1041. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath" minOccurs="0">
  1042. <xs:simpleType>
  1043. <xs:restriction base="xs:string">
  1044. <xs:maxLength value="1000" />
  1045. </xs:restriction>
  1046. </xs:simpleType>
  1047. </xs:element>
  1048. </xs:sequence>
  1049. </xs:complexType>
  1050. </xs:element>
  1051. <xs:element name="Tag" msprop:Generator_TableClassName="TagDataTable" msprop:Generator_TableVarName="tableTag" msprop:Generator_TablePropName="Tag" msprop:Generator_RowDeletingName="TagRowDeleting" msprop:Generator_RowChangingName="TagRowChanging" msprop:Generator_RowEvHandlerName="TagRowChangeEventHandler" msprop:Generator_RowDeletedName="TagRowDeleted" msprop:Generator_UserTableName="Tag" msprop:Generator_RowChangedName="TagRowChanged" msprop:Generator_RowEvArgName="TagRowChangeEvent" msprop:Generator_RowClassName="TagRow">
  1052. <xs:complexType>
  1053. <xs:sequence>
  1054. <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" />
  1055. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1056. <xs:simpleType>
  1057. <xs:restriction base="xs:string">
  1058. <xs:maxLength value="30" />
  1059. </xs:restriction>
  1060. </xs:simpleType>
  1061. </xs:element>
  1062. <xs:element name="Color" msprop:Generator_ColumnVarNameInTable="columnColor" msprop:Generator_ColumnPropNameInRow="Color" msprop:Generator_ColumnPropNameInTable="ColorColumn" msprop:Generator_UserColumnName="Color">
  1063. <xs:simpleType>
  1064. <xs:restriction base="xs:string">
  1065. <xs:maxLength value="6" />
  1066. </xs:restriction>
  1067. </xs:simpleType>
  1068. </xs:element>
  1069. </xs:sequence>
  1070. </xs:complexType>
  1071. </xs:element>
  1072. <xs:element name="TagOfClient" msprop:Generator_TableClassName="TagOfClientDataTable" msprop:Generator_TableVarName="tableTagOfClient" msprop:Generator_TablePropName="TagOfClient" msprop:Generator_RowDeletingName="TagOfClientRowDeleting" msprop:Generator_RowChangingName="TagOfClientRowChanging" msprop:Generator_RowEvHandlerName="TagOfClientRowChangeEventHandler" msprop:Generator_RowDeletedName="TagOfClientRowDeleted" msprop:Generator_UserTableName="TagOfClient" msprop:Generator_RowChangedName="TagOfClientRowChanged" msprop:Generator_RowEvArgName="TagOfClientRowChangeEvent" msprop:Generator_RowClassName="TagOfClientRow">
  1073. <xs:complexType>
  1074. <xs:sequence>
  1075. <xs:element name="ClientID" msprop:Generator_ColumnVarNameInTable="columnClientID" msprop:Generator_ColumnPropNameInRow="ClientID" msprop:Generator_ColumnPropNameInTable="ClientIDColumn" msprop:Generator_UserColumnName="ClientID" type="xs:int" />
  1076. <xs:element name="TagID" msprop:Generator_ColumnVarNameInTable="columnTagID" msprop:Generator_ColumnPropNameInRow="TagID" msprop:Generator_ColumnPropNameInTable="TagIDColumn" msprop:Generator_UserColumnName="TagID" type="xs:int" />
  1077. </xs:sequence>
  1078. </xs:complexType>
  1079. </xs:element>
  1080. </xs:choice>
  1081. </xs:complexType>
  1082. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  1083. <xs:selector xpath=".//mstns:AttachedProduct" />
  1084. <xs:field xpath="mstns:MainProductID" />
  1085. <xs:field xpath="mstns:AttachedProductID" />
  1086. </xs:unique>
  1087. <xs:unique name="Client_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1088. <xs:selector xpath=".//mstns:Client" />
  1089. <xs:field xpath="mstns:ID" />
  1090. </xs:unique>
  1091. <xs:unique name="ClientService_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1092. <xs:selector xpath=".//mstns:ClientService" />
  1093. <xs:field xpath="mstns:ID" />
  1094. </xs:unique>
  1095. <xs:unique name="DocumentByService_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1096. <xs:selector xpath=".//mstns:DocumentByService" />
  1097. <xs:field xpath="mstns:ID" />
  1098. </xs:unique>
  1099. <xs:unique name="Gender_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1100. <xs:selector xpath=".//mstns:Gender" />
  1101. <xs:field xpath="mstns:Code" />
  1102. </xs:unique>
  1103. <xs:unique name="Manufacturer_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1104. <xs:selector xpath=".//mstns:Manufacturer" />
  1105. <xs:field xpath="mstns:ID" />
  1106. </xs:unique>
  1107. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1108. <xs:selector xpath=".//mstns:Product" />
  1109. <xs:field xpath="mstns:ID" />
  1110. </xs:unique>
  1111. <xs:unique name="ProductPhoto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1112. <xs:selector xpath=".//mstns:ProductPhoto" />
  1113. <xs:field xpath="mstns:ID" />
  1114. </xs:unique>
  1115. <xs:unique name="ProductSale_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1116. <xs:selector xpath=".//mstns:ProductSale" />
  1117. <xs:field xpath="mstns:ID" />
  1118. </xs:unique>
  1119. <xs:unique name="Service_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1120. <xs:selector xpath=".//mstns:Service" />
  1121. <xs:field xpath="mstns:ID" />
  1122. </xs:unique>
  1123. <xs:unique name="ServicePhoto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1124. <xs:selector xpath=".//mstns:ServicePhoto" />
  1125. <xs:field xpath="mstns:ID" />
  1126. </xs:unique>
  1127. <xs:unique name="Tag_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1128. <xs:selector xpath=".//mstns:Tag" />
  1129. <xs:field xpath="mstns:ID" />
  1130. </xs:unique>
  1131. <xs:unique name="TagOfClient_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1132. <xs:selector xpath=".//mstns:TagOfClient" />
  1133. <xs:field xpath="mstns:ClientID" />
  1134. <xs:field xpath="mstns:TagID" />
  1135. </xs:unique>
  1136. </xs:element>
  1137. <xs:annotation>
  1138. <xs:appinfo>
  1139. <msdata:Relationship name="FK_AttachedProduct_Product" msdata:parent="Product" msdata:child="AttachedProduct" msdata:parentkey="ID" msdata:childkey="MainProductID" msprop:Generator_UserChildTable="AttachedProduct" msprop:Generator_ChildPropName="GetAttachedProductRowsByFK_AttachedProduct_Product" msprop:Generator_UserRelationName="FK_AttachedProduct_Product" msprop:Generator_RelationVarName="relationFK_AttachedProduct_Product" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRowByFK_AttachedProduct_Product" />
  1140. <msdata:Relationship name="FK_AttachedProduct_Product1" msdata:parent="Product" msdata:child="AttachedProduct" msdata:parentkey="ID" msdata:childkey="AttachedProductID" msprop:Generator_UserChildTable="AttachedProduct" msprop:Generator_ChildPropName="GetAttachedProductRowsByFK_AttachedProduct_Product1" msprop:Generator_UserRelationName="FK_AttachedProduct_Product1" msprop:Generator_RelationVarName="relationFK_AttachedProduct_Product1" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRowByFK_AttachedProduct_Product1" />
  1141. <msdata:Relationship name="FK_Client_Gender" msdata:parent="Gender" msdata:child="Client" msdata:parentkey="Code" msdata:childkey="GenderCode" msprop:Generator_UserChildTable="Client" msprop:Generator_ChildPropName="GetClientRows" msprop:Generator_UserRelationName="FK_Client_Gender" msprop:Generator_RelationVarName="relationFK_Client_Gender" msprop:Generator_UserParentTable="Gender" msprop:Generator_ParentPropName="GenderRow" />
  1142. <msdata:Relationship name="FK_ClientService_Client" msdata:parent="Client" msdata:child="ClientService" msdata:parentkey="ID" msdata:childkey="ClientID" msprop:Generator_UserChildTable="ClientService" msprop:Generator_ChildPropName="GetClientServiceRows" msprop:Generator_UserRelationName="FK_ClientService_Client" msprop:Generator_ParentPropName="ClientRow" msprop:Generator_RelationVarName="relationFK_ClientService_Client" msprop:Generator_UserParentTable="Client" />
  1143. <msdata:Relationship name="FK_ClientService_service_b_import" msdata:parent="Service" msdata:child="ClientService" msdata:parentkey="ID" msdata:childkey="ServiceID" msprop:Generator_UserChildTable="ClientService" msprop:Generator_ChildPropName="GetClientServiceRows" msprop:Generator_UserRelationName="FK_ClientService_service_b_import" msprop:Generator_RelationVarName="relationFK_ClientService_service_b_import" msprop:Generator_UserParentTable="Service" msprop:Generator_ParentPropName="ServiceRow" />
  1144. <msdata:Relationship name="FK_DocumentByService_ClientService" msdata:parent="ClientService" msdata:child="DocumentByService" msdata:parentkey="ID" msdata:childkey="ClientServiceID" msprop:Generator_UserChildTable="DocumentByService" msprop:Generator_ChildPropName="GetDocumentByServiceRows" msprop:Generator_UserRelationName="FK_DocumentByService_ClientService" msprop:Generator_ParentPropName="ClientServiceRow" msprop:Generator_RelationVarName="relationFK_DocumentByService_ClientService" msprop:Generator_UserParentTable="ClientService" />
  1145. <msdata:Relationship name="FK_Product_Manufacturer" msdata:parent="Manufacturer" msdata:child="Product" msdata:parentkey="ID" msdata:childkey="ManufacturerID" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_Manufacturer" msprop:Generator_ParentPropName="ManufacturerRow" msprop:Generator_RelationVarName="relationFK_Product_Manufacturer" msprop:Generator_UserParentTable="Manufacturer" />
  1146. <msdata:Relationship name="FK_ProductPhoto_Product" msdata:parent="Product" msdata:child="ProductPhoto" msdata:parentkey="ID" msdata:childkey="ProductID" msprop:Generator_UserChildTable="ProductPhoto" msprop:Generator_ChildPropName="GetProductPhotoRows" msprop:Generator_UserRelationName="FK_ProductPhoto_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductPhoto_Product" msprop:Generator_UserParentTable="Product" />
  1147. <msdata:Relationship name="FK_ProductSale_ClientService" msdata:parent="ClientService" msdata:child="ProductSale" msdata:parentkey="ID" msdata:childkey="ClientServiceID" msprop:Generator_UserChildTable="ProductSale" msprop:Generator_ChildPropName="GetProductSaleRows" msprop:Generator_UserRelationName="FK_ProductSale_ClientService" msprop:Generator_ParentPropName="ClientServiceRow" msprop:Generator_RelationVarName="relationFK_ProductSale_ClientService" msprop:Generator_UserParentTable="ClientService" />
  1148. <msdata:Relationship name="FK_ProductSale_Product" msdata:parent="Product" msdata:child="ProductSale" msdata:parentkey="ID" msdata:childkey="ProductID" msprop:Generator_UserChildTable="ProductSale" msprop:Generator_ChildPropName="GetProductSaleRows" msprop:Generator_UserRelationName="FK_ProductSale_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductSale_Product" msprop:Generator_UserParentTable="Product" />
  1149. <msdata:Relationship name="FK_ServicePhoto_service_b_import" msdata:parent="Service" msdata:child="ServicePhoto" msdata:parentkey="ID" msdata:childkey="ServiceID" msprop:Generator_UserChildTable="ServicePhoto" msprop:Generator_ChildPropName="GetServicePhotoRows" msprop:Generator_UserRelationName="FK_ServicePhoto_service_b_import" msprop:Generator_ParentPropName="ServiceRow" msprop:Generator_RelationVarName="relationFK_ServicePhoto_service_b_import" msprop:Generator_UserParentTable="Service" />
  1150. <msdata:Relationship name="FK_TagOfClient_Client" msdata:parent="Client" msdata:child="TagOfClient" msdata:parentkey="ID" msdata:childkey="ClientID" msprop:Generator_UserChildTable="TagOfClient" msprop:Generator_ChildPropName="GetTagOfClientRows" msprop:Generator_UserRelationName="FK_TagOfClient_Client" msprop:Generator_ParentPropName="ClientRow" msprop:Generator_RelationVarName="relationFK_TagOfClient_Client" msprop:Generator_UserParentTable="Client" />
  1151. <msdata:Relationship name="FK_TagOfClient_Tag" msdata:parent="Tag" msdata:child="TagOfClient" msdata:parentkey="ID" msdata:childkey="TagID" msprop:Generator_UserChildTable="TagOfClient" msprop:Generator_ChildPropName="GetTagOfClientRows" msprop:Generator_UserRelationName="FK_TagOfClient_Tag" msprop:Generator_ParentPropName="TagRow" msprop:Generator_RelationVarName="relationFK_TagOfClient_Tag" msprop:Generator_UserParentTable="Tag" />
  1152. </xs:appinfo>
  1153. </xs:annotation>
  1154. </xs:schema>