bobrovDemoEgzamenDataSet.xsd 175 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="bobrovDemoEgzamenDataSet" targetNamespace="http://tempuri.org/bobrovDemoEgzamenDataSet.xsd" xmlns:mstns="http://tempuri.org/bobrovDemoEgzamenDataSet.xsd" xmlns="http://tempuri.org/bobrovDemoEgzamenDataSet.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="bobrovDemoEgzamenConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="bobrovDemoEgzamenConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.bobrov2demo.Properties.Settings.GlobalReference.Default.bobrovDemoEgzamenConnectionString" 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="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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 ([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="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  77. <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" />
  78. <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" />
  79. </Parameters>
  80. </DbCommand>
  81. </DeleteCommand>
  82. <InsertCommand>
  83. <DbCommand CommandType="Text" ModifiedByUser="false">
  84. <CommandText>INSERT INTO [dbo].[Client] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  85. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())</CommandText>
  86. <Parameters>
  87. <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" />
  88. <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" />
  89. <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" />
  90. <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" />
  91. <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" />
  92. <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" />
  93. <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" />
  94. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  95. <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" />
  96. </Parameters>
  97. </DbCommand>
  98. </InsertCommand>
  99. <SelectCommand>
  100. <DbCommand CommandType="Text" ModifiedByUser="false">
  101. <CommandText>SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM dbo.Client</CommandText>
  102. <Parameters />
  103. </DbCommand>
  104. </SelectCommand>
  105. <UpdateCommand>
  106. <DbCommand CommandType="Text" ModifiedByUser="false">
  107. <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 ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  108. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)</CommandText>
  109. <Parameters>
  110. <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" />
  111. <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" />
  112. <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" />
  113. <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" />
  114. <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" />
  115. <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" />
  116. <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" />
  117. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  118. <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" />
  119. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  120. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
  121. <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" />
  122. <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" />
  123. <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" />
  124. <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" />
  125. <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" />
  126. <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" />
  127. <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" />
  128. <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" />
  129. <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" />
  130. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  131. <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" />
  132. <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" />
  133. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.Client" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  134. </Parameters>
  135. </DbCommand>
  136. </UpdateCommand>
  137. </DbSource>
  138. </MainSource>
  139. <Mappings>
  140. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  141. <Mapping SourceColumn="FirstName" DataSetColumn="FirstName" />
  142. <Mapping SourceColumn="LastName" DataSetColumn="LastName" />
  143. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  144. <Mapping SourceColumn="Birthday" DataSetColumn="Birthday" />
  145. <Mapping SourceColumn="RegistrationDate" DataSetColumn="RegistrationDate" />
  146. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  147. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  148. <Mapping SourceColumn="GenderCode" DataSetColumn="GenderCode" />
  149. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  150. </Mappings>
  151. <Sources />
  152. </TableAdapter>
  153. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="client_b_importTableAdapter" GeneratorDataComponentClassName="client_b_importTableAdapter" Name="client_b_import" UserDataComponentName="client_b_importTableAdapter">
  154. <MainSource>
  155. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.dbo.client_b_import" 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">
  156. <InsertCommand>
  157. <DbCommand CommandType="Text" ModifiedByUser="false">
  158. <CommandText>INSERT INTO [dbo].[client_b_import] ([Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации)</CommandText>
  159. <Parameters>
  160. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  161. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  162. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  163. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Пол" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пол" SourceColumnNullMapping="false" SourceVersion="Current" />
  164. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  165. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_рождения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_рождения" SourceColumnNullMapping="false" SourceVersion="Current" />
  166. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  167. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_регистрации" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_регистрации" SourceColumnNullMapping="false" SourceVersion="Current" />
  168. </Parameters>
  169. </DbCommand>
  170. </InsertCommand>
  171. <SelectCommand>
  172. <DbCommand CommandType="Text" ModifiedByUser="false">
  173. <CommandText>SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM dbo.client_b_import</CommandText>
  174. <Parameters />
  175. </DbCommand>
  176. </SelectCommand>
  177. </DbSource>
  178. </MainSource>
  179. <Mappings>
  180. <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
  181. <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
  182. <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
  183. <Mapping SourceColumn="Пол" DataSetColumn="Пол" />
  184. <Mapping SourceColumn="Телефон" DataSetColumn="Телефон" />
  185. <Mapping SourceColumn="Дата_рождения" DataSetColumn="Дата_рождения" />
  186. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  187. <Mapping SourceColumn="Дата_регистрации" DataSetColumn="Дата_регистрации" />
  188. </Mappings>
  189. <Sources />
  190. </TableAdapter>
  191. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientServiceTableAdapter" GeneratorDataComponentClassName="ClientServiceTableAdapter" Name="ClientService" UserDataComponentName="ClientServiceTableAdapter">
  192. <MainSource>
  193. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  194. <DeleteCommand>
  195. <DbCommand CommandType="Text" ModifiedByUser="false">
  196. <CommandText>DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime))</CommandText>
  197. <Parameters>
  198. <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" />
  199. <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" />
  200. <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" />
  201. <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" />
  202. </Parameters>
  203. </DbCommand>
  204. </DeleteCommand>
  205. <InsertCommand>
  206. <DbCommand CommandType="Text" ModifiedByUser="false">
  207. <CommandText>INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);
  208. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())</CommandText>
  209. <Parameters>
  210. <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" />
  211. <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" />
  212. <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" />
  213. <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" />
  214. </Parameters>
  215. </DbCommand>
  216. </InsertCommand>
  217. <SelectCommand>
  218. <DbCommand CommandType="Text" ModifiedByUser="false">
  219. <CommandText>SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService</CommandText>
  220. <Parameters />
  221. </DbCommand>
  222. </SelectCommand>
  223. <UpdateCommand>
  224. <DbCommand CommandType="Text" ModifiedByUser="false">
  225. <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));
  226. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)</CommandText>
  227. <Parameters>
  228. <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" />
  229. <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" />
  230. <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" />
  231. <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" />
  232. <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" />
  233. <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" />
  234. <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" />
  235. <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" />
  236. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.ClientService" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  237. </Parameters>
  238. </DbCommand>
  239. </UpdateCommand>
  240. </DbSource>
  241. </MainSource>
  242. <Mappings>
  243. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  244. <Mapping SourceColumn="ClientID" DataSetColumn="ClientID" />
  245. <Mapping SourceColumn="ServiceID" DataSetColumn="ServiceID" />
  246. <Mapping SourceColumn="StartTime" DataSetColumn="StartTime" />
  247. <Mapping SourceColumn="Comment" DataSetColumn="Comment" />
  248. </Mappings>
  249. <Sources />
  250. </TableAdapter>
  251. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DocumentByServiceTableAdapter" GeneratorDataComponentClassName="DocumentByServiceTableAdapter" Name="DocumentByService" UserDataComponentName="DocumentByServiceTableAdapter">
  252. <MainSource>
  253. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  254. <DeleteCommand>
  255. <DbCommand CommandType="Text" ModifiedByUser="false">
  256. <CommandText>DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath))</CommandText>
  257. <Parameters>
  258. <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" />
  259. <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" />
  260. <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" />
  261. </Parameters>
  262. </DbCommand>
  263. </DeleteCommand>
  264. <InsertCommand>
  265. <DbCommand CommandType="Text" ModifiedByUser="false">
  266. <CommandText>INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES (@ClientServiceID, @DocumentPath);
  267. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = SCOPE_IDENTITY())</CommandText>
  268. <Parameters>
  269. <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" />
  270. <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" />
  271. </Parameters>
  272. </DbCommand>
  273. </InsertCommand>
  274. <SelectCommand>
  275. <DbCommand CommandType="Text" ModifiedByUser="false">
  276. <CommandText>SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService</CommandText>
  277. <Parameters />
  278. </DbCommand>
  279. </SelectCommand>
  280. <UpdateCommand>
  281. <DbCommand CommandType="Text" ModifiedByUser="false">
  282. <CommandText>UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  283. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)</CommandText>
  284. <Parameters>
  285. <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" />
  286. <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" />
  287. <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" />
  288. <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" />
  289. <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" />
  290. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.DocumentByService" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  291. </Parameters>
  292. </DbCommand>
  293. </UpdateCommand>
  294. </DbSource>
  295. </MainSource>
  296. <Mappings>
  297. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  298. <Mapping SourceColumn="ClientServiceID" DataSetColumn="ClientServiceID" />
  299. <Mapping SourceColumn="DocumentPath" DataSetColumn="DocumentPath" />
  300. </Mappings>
  301. <Sources />
  302. </TableAdapter>
  303. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GenderTableAdapter" GeneratorDataComponentClassName="GenderTableAdapter" Name="Gender" UserDataComponentName="GenderTableAdapter">
  304. <MainSource>
  305. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  306. <DeleteCommand>
  307. <DbCommand CommandType="Text" ModifiedByUser="false">
  308. <CommandText>DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))</CommandText>
  309. <Parameters>
  310. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Original" />
  311. <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" />
  312. <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" />
  313. </Parameters>
  314. </DbCommand>
  315. </DeleteCommand>
  316. <InsertCommand>
  317. <DbCommand CommandType="Text" ModifiedByUser="false">
  318. <CommandText>INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);
  319. SELECT Code, Name FROM Gender WHERE (Code = @Code)</CommandText>
  320. <Parameters>
  321. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Current" />
  322. <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" />
  323. </Parameters>
  324. </DbCommand>
  325. </InsertCommand>
  326. <SelectCommand>
  327. <DbCommand CommandType="Text" ModifiedByUser="false">
  328. <CommandText>SELECT Code, Name FROM dbo.Gender</CommandText>
  329. <Parameters />
  330. </DbCommand>
  331. </SelectCommand>
  332. <UpdateCommand>
  333. <DbCommand CommandType="Text" ModifiedByUser="false">
  334. <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)));
  335. SELECT Code, Name FROM Gender WHERE (Code = @Code)</CommandText>
  336. <Parameters>
  337. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Current" />
  338. <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" />
  339. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Original" />
  340. <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" />
  341. <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" />
  342. </Parameters>
  343. </DbCommand>
  344. </UpdateCommand>
  345. </DbSource>
  346. </MainSource>
  347. <Mappings>
  348. <Mapping SourceColumn="Code" DataSetColumn="Code" />
  349. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  350. </Mappings>
  351. <Sources />
  352. </TableAdapter>
  353. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ManufacturerTableAdapter" GeneratorDataComponentClassName="ManufacturerTableAdapter" Name="Manufacturer" UserDataComponentName="ManufacturerTableAdapter">
  354. <MainSource>
  355. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  356. <DeleteCommand>
  357. <DbCommand CommandType="Text" ModifiedByUser="false">
  358. <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>
  359. <Parameters>
  360. <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" />
  361. <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" />
  362. <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" />
  363. <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" />
  364. </Parameters>
  365. </DbCommand>
  366. </DeleteCommand>
  367. <InsertCommand>
  368. <DbCommand CommandType="Text" ModifiedByUser="false">
  369. <CommandText>INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate);
  370. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())</CommandText>
  371. <Parameters>
  372. <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" />
  373. <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" />
  374. </Parameters>
  375. </DbCommand>
  376. </InsertCommand>
  377. <SelectCommand>
  378. <DbCommand CommandType="Text" ModifiedByUser="false">
  379. <CommandText>SELECT ID, Name, StartDate FROM dbo.Manufacturer</CommandText>
  380. <Parameters />
  381. </DbCommand>
  382. </SelectCommand>
  383. <UpdateCommand>
  384. <DbCommand CommandType="Text" ModifiedByUser="false">
  385. <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)));
  386. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)</CommandText>
  387. <Parameters>
  388. <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" />
  389. <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" />
  390. <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" />
  391. <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" />
  392. <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" />
  393. <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" />
  394. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.Manufacturer" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  395. </Parameters>
  396. </DbCommand>
  397. </UpdateCommand>
  398. </DbSource>
  399. </MainSource>
  400. <Mappings>
  401. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  402. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  403. <Mapping SourceColumn="StartDate" DataSetColumn="StartDate" />
  404. </Mappings>
  405. <Sources />
  406. </TableAdapter>
  407. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  408. <MainSource>
  409. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  410. <DeleteCommand>
  411. <DbCommand CommandType="Text" ModifiedByUser="false">
  412. <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>
  413. <Parameters>
  414. <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" />
  415. <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" />
  416. <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" />
  417. <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" />
  418. <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" />
  419. <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" />
  420. <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" />
  421. <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" />
  422. </Parameters>
  423. </DbCommand>
  424. </DeleteCommand>
  425. <InsertCommand>
  426. <DbCommand CommandType="Text" ModifiedByUser="false">
  427. <CommandText>INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  428. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())</CommandText>
  429. <Parameters>
  430. <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" />
  431. <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" />
  432. <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" />
  433. <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" />
  434. <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" />
  435. <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" />
  436. </Parameters>
  437. </DbCommand>
  438. </InsertCommand>
  439. <SelectCommand>
  440. <DbCommand CommandType="Text" ModifiedByUser="false">
  441. <CommandText>SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM dbo.Product</CommandText>
  442. <Parameters />
  443. </DbCommand>
  444. </SelectCommand>
  445. <UpdateCommand>
  446. <DbCommand CommandType="Text" ModifiedByUser="false">
  447. <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)));
  448. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)</CommandText>
  449. <Parameters>
  450. <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" />
  451. <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" />
  452. <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" />
  453. <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" />
  454. <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" />
  455. <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" />
  456. <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" />
  457. <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" />
  458. <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" />
  459. <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" />
  460. <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" />
  461. <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" />
  462. <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" />
  463. <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" />
  464. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  465. </Parameters>
  466. </DbCommand>
  467. </UpdateCommand>
  468. </DbSource>
  469. </MainSource>
  470. <Mappings>
  471. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  472. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  473. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  474. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  475. <Mapping SourceColumn="MainImagePath" DataSetColumn="MainImagePath" />
  476. <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
  477. <Mapping SourceColumn="ManufacturerID" DataSetColumn="ManufacturerID" />
  478. </Mappings>
  479. <Sources />
  480. </TableAdapter>
  481. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductPhotoTableAdapter" GeneratorDataComponentClassName="ProductPhotoTableAdapter" Name="ProductPhoto" UserDataComponentName="ProductPhotoTableAdapter">
  482. <MainSource>
  483. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  484. <DeleteCommand>
  485. <DbCommand CommandType="Text" ModifiedByUser="false">
  486. <CommandText>DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))</CommandText>
  487. <Parameters>
  488. <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" />
  489. <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" />
  490. <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" />
  491. </Parameters>
  492. </DbCommand>
  493. </DeleteCommand>
  494. <InsertCommand>
  495. <DbCommand CommandType="Text" ModifiedByUser="false">
  496. <CommandText>INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @PhotoPath);
  497. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE_IDENTITY())</CommandText>
  498. <Parameters>
  499. <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" />
  500. <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" />
  501. </Parameters>
  502. </DbCommand>
  503. </InsertCommand>
  504. <SelectCommand>
  505. <DbCommand CommandType="Text" ModifiedByUser="false">
  506. <CommandText>SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto</CommandText>
  507. <Parameters />
  508. </DbCommand>
  509. </SelectCommand>
  510. <UpdateCommand>
  511. <DbCommand CommandType="Text" ModifiedByUser="false">
  512. <CommandText>UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  513. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)</CommandText>
  514. <Parameters>
  515. <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" />
  516. <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" />
  517. <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" />
  518. <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" />
  519. <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" />
  520. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.ProductPhoto" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  521. </Parameters>
  522. </DbCommand>
  523. </UpdateCommand>
  524. </DbSource>
  525. </MainSource>
  526. <Mappings>
  527. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  528. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  529. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  530. </Mappings>
  531. <Sources />
  532. </TableAdapter>
  533. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductSaleTableAdapter" GeneratorDataComponentClassName="ProductSaleTableAdapter" Name="ProductSale" UserDataComponentName="ProductSaleTableAdapter">
  534. <MainSource>
  535. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  536. <DeleteCommand>
  537. <DbCommand CommandType="Text" ModifiedByUser="false">
  538. <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>
  539. <Parameters>
  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. </Parameters>
  547. </DbCommand>
  548. </DeleteCommand>
  549. <InsertCommand>
  550. <DbCommand CommandType="Text" ModifiedByUser="false">
  551. <CommandText>INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServiceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);
  552. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCOPE_IDENTITY())</CommandText>
  553. <Parameters>
  554. <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" />
  555. <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" />
  556. <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" />
  557. <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" />
  558. </Parameters>
  559. </DbCommand>
  560. </InsertCommand>
  561. <SelectCommand>
  562. <DbCommand CommandType="Text" ModifiedByUser="false">
  563. <CommandText>SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale</CommandText>
  564. <Parameters />
  565. </DbCommand>
  566. </SelectCommand>
  567. <UpdateCommand>
  568. <DbCommand CommandType="Text" ModifiedByUser="false">
  569. <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)));
  570. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)</CommandText>
  571. <Parameters>
  572. <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" />
  573. <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" />
  574. <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" />
  575. <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" />
  576. <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" />
  577. <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" />
  578. <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" />
  579. <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" />
  580. <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" />
  581. <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" />
  582. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.ProductSale" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  583. </Parameters>
  584. </DbCommand>
  585. </UpdateCommand>
  586. </DbSource>
  587. </MainSource>
  588. <Mappings>
  589. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  590. <Mapping SourceColumn="SaleDate" DataSetColumn="SaleDate" />
  591. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  592. <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
  593. <Mapping SourceColumn="ClientServiceID" DataSetColumn="ClientServiceID" />
  594. </Mappings>
  595. <Sources />
  596. </TableAdapter>
  597. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ServiceTableAdapter" GeneratorDataComponentClassName="ServiceTableAdapter" Name="Service" UserDataComponentName="ServiceTableAdapter">
  598. <MainSource>
  599. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  600. <DeleteCommand>
  601. <DbCommand CommandType="Text" ModifiedByUser="false">
  602. <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>
  603. <Parameters>
  604. <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" />
  605. <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" />
  606. <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" />
  607. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
  608. <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" />
  609. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
  610. <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" />
  611. <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" />
  612. </Parameters>
  613. </DbCommand>
  614. </DeleteCommand>
  615. <InsertCommand>
  616. <DbCommand CommandType="Text" ModifiedByUser="false">
  617. <CommandText>INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  618. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())</CommandText>
  619. <Parameters>
  620. <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" />
  621. <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" />
  622. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
  623. <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" />
  624. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
  625. <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" />
  626. </Parameters>
  627. </DbCommand>
  628. </InsertCommand>
  629. <SelectCommand>
  630. <DbCommand CommandType="Text" ModifiedByUser="false">
  631. <CommandText>SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM dbo.Service</CommandText>
  632. <Parameters />
  633. </DbCommand>
  634. </SelectCommand>
  635. <UpdateCommand>
  636. <DbCommand CommandType="Text" ModifiedByUser="false">
  637. <CommandText>UPDATE [dbo].[Service] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Description] = @Description, [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)));
  638. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)</CommandText>
  639. <Parameters>
  640. <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" />
  641. <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" />
  642. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
  643. <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" />
  644. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
  645. <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" />
  646. <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" />
  647. <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" />
  648. <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" />
  649. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
  650. <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" />
  651. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
  652. <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" />
  653. <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" />
  654. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.Service" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  655. </Parameters>
  656. </DbCommand>
  657. </UpdateCommand>
  658. </DbSource>
  659. </MainSource>
  660. <Mappings>
  661. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  662. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  663. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  664. <Mapping SourceColumn="DurationInSeconds" DataSetColumn="DurationInSeconds" />
  665. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  666. <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
  667. <Mapping SourceColumn="MainImagePath" DataSetColumn="MainImagePath" />
  668. </Mappings>
  669. <Sources />
  670. </TableAdapter>
  671. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="service_b_importTableAdapter" GeneratorDataComponentClassName="service_b_importTableAdapter" Name="service_b_import" UserDataComponentName="service_b_importTableAdapter">
  672. <MainSource>
  673. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.dbo.service_b_import" 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">
  674. <DeleteCommand>
  675. <DbCommand CommandType="Text" ModifiedByUser="false">
  676. <CommandText>DELETE FROM [dbo].[service_b_import] WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))</CommandText>
  677. <Parameters>
  678. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Original" />
  679. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Original" />
  680. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Original" />
  681. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
  682. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Original" />
  683. </Parameters>
  684. </DbCommand>
  685. </DeleteCommand>
  686. <InsertCommand>
  687. <DbCommand CommandType="Text" ModifiedByUser="false">
  688. <CommandText>INSERT INTO [dbo].[service_b_import] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  689. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service_b_import WHERE (Наименование_услуги = @Наименование_услуги)</CommandText>
  690. <Parameters>
  691. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Current" />
  692. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Current" />
  693. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Current" />
  694. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  695. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Current" />
  696. </Parameters>
  697. </DbCommand>
  698. </InsertCommand>
  699. <SelectCommand>
  700. <DbCommand CommandType="Text" ModifiedByUser="false">
  701. <CommandText>SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM dbo.service_b_import</CommandText>
  702. <Parameters />
  703. </DbCommand>
  704. </SelectCommand>
  705. <UpdateCommand>
  706. <DbCommand CommandType="Text" ModifiedByUser="false">
  707. <CommandText>UPDATE [dbo].[service_b_import] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  708. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service_b_import WHERE (Наименование_услуги = @Наименование_услуги)</CommandText>
  709. <Parameters>
  710. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Current" />
  711. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Current" />
  712. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Current" />
  713. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  714. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Current" />
  715. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Original" />
  716. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Original" />
  717. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Original" />
  718. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
  719. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Original" />
  720. </Parameters>
  721. </DbCommand>
  722. </UpdateCommand>
  723. </DbSource>
  724. </MainSource>
  725. <Mappings>
  726. <Mapping SourceColumn="Наименование_услуги" DataSetColumn="Наименование_услуги" />
  727. <Mapping SourceColumn="Главное_изображение" DataSetColumn="Главное_изображение" />
  728. <Mapping SourceColumn="Длительность" DataSetColumn="Длительность" />
  729. <Mapping SourceColumn="Стоимость" DataSetColumn="Стоимость" />
  730. <Mapping SourceColumn="Действующая_скидка" DataSetColumn="Действующая_скидка" />
  731. </Mappings>
  732. <Sources />
  733. </TableAdapter>
  734. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ServicePhotoTableAdapter" GeneratorDataComponentClassName="ServicePhotoTableAdapter" Name="ServicePhoto" UserDataComponentName="ServicePhotoTableAdapter">
  735. <MainSource>
  736. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  737. <DeleteCommand>
  738. <DbCommand CommandType="Text" ModifiedByUser="false">
  739. <CommandText>DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))</CommandText>
  740. <Parameters>
  741. <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" />
  742. <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" />
  743. <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" />
  744. </Parameters>
  745. </DbCommand>
  746. </DeleteCommand>
  747. <InsertCommand>
  748. <DbCommand CommandType="Text" ModifiedByUser="false">
  749. <CommandText>INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @PhotoPath);
  750. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE_IDENTITY())</CommandText>
  751. <Parameters>
  752. <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" />
  753. <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" />
  754. </Parameters>
  755. </DbCommand>
  756. </InsertCommand>
  757. <SelectCommand>
  758. <DbCommand CommandType="Text" ModifiedByUser="false">
  759. <CommandText>SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto</CommandText>
  760. <Parameters />
  761. </DbCommand>
  762. </SelectCommand>
  763. <UpdateCommand>
  764. <DbCommand CommandType="Text" ModifiedByUser="false">
  765. <CommandText>UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  766. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)</CommandText>
  767. <Parameters>
  768. <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" />
  769. <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" />
  770. <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" />
  771. <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" />
  772. <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" />
  773. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.ServicePhoto" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  774. </Parameters>
  775. </DbCommand>
  776. </UpdateCommand>
  777. </DbSource>
  778. </MainSource>
  779. <Mappings>
  780. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  781. <Mapping SourceColumn="ServiceID" DataSetColumn="ServiceID" />
  782. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  783. </Mappings>
  784. <Sources />
  785. </TableAdapter>
  786. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TagTableAdapter" GeneratorDataComponentClassName="TagTableAdapter" Name="Tag" UserDataComponentName="TagTableAdapter">
  787. <MainSource>
  788. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  789. <DeleteCommand>
  790. <DbCommand CommandType="Text" ModifiedByUser="false">
  791. <CommandText>DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color))</CommandText>
  792. <Parameters>
  793. <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" />
  794. <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" />
  795. <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" />
  796. </Parameters>
  797. </DbCommand>
  798. </DeleteCommand>
  799. <InsertCommand>
  800. <DbCommand CommandType="Text" ModifiedByUser="false">
  801. <CommandText>INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);
  802. SELECT ID, Title, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())</CommandText>
  803. <Parameters>
  804. <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" />
  805. <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" />
  806. </Parameters>
  807. </DbCommand>
  808. </InsertCommand>
  809. <SelectCommand>
  810. <DbCommand CommandType="Text" ModifiedByUser="false">
  811. <CommandText>SELECT ID, Title, Color FROM dbo.Tag</CommandText>
  812. <Parameters />
  813. </DbCommand>
  814. </SelectCommand>
  815. <UpdateCommand>
  816. <DbCommand CommandType="Text" ModifiedByUser="false">
  817. <CommandText>UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));
  818. SELECT ID, Title, Color FROM Tag WHERE (ID = @ID)</CommandText>
  819. <Parameters>
  820. <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" />
  821. <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" />
  822. <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" />
  823. <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" />
  824. <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" />
  825. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="bobrovDemoEgzamen.dbo.Tag" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  826. </Parameters>
  827. </DbCommand>
  828. </UpdateCommand>
  829. </DbSource>
  830. </MainSource>
  831. <Mappings>
  832. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  833. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  834. <Mapping SourceColumn="Color" DataSetColumn="Color" />
  835. </Mappings>
  836. <Sources />
  837. </TableAdapter>
  838. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TagOfClientTableAdapter" GeneratorDataComponentClassName="TagOfClientTableAdapter" Name="TagOfClient" UserDataComponentName="TagOfClientTableAdapter">
  839. <MainSource>
  840. <DbSource ConnectionRef="bobrovDemoEgzamenConnectionString (Settings)" DbObjectName="bobrovDemoEgzamen.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">
  841. <DeleteCommand>
  842. <DbCommand CommandType="Text" ModifiedByUser="false">
  843. <CommandText>DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID))</CommandText>
  844. <Parameters>
  845. <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" />
  846. <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" />
  847. </Parameters>
  848. </DbCommand>
  849. </DeleteCommand>
  850. <InsertCommand>
  851. <DbCommand CommandType="Text" ModifiedByUser="false">
  852. <CommandText>INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);
  853. SELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)</CommandText>
  854. <Parameters>
  855. <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" />
  856. <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" />
  857. </Parameters>
  858. </DbCommand>
  859. </InsertCommand>
  860. <SelectCommand>
  861. <DbCommand CommandType="Text" ModifiedByUser="false">
  862. <CommandText>SELECT ClientID, TagID FROM dbo.TagOfClient</CommandText>
  863. <Parameters />
  864. </DbCommand>
  865. </SelectCommand>
  866. <UpdateCommand>
  867. <DbCommand CommandType="Text" ModifiedByUser="false">
  868. <CommandText>UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));
  869. SELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)</CommandText>
  870. <Parameters>
  871. <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" />
  872. <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" />
  873. <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" />
  874. <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" />
  875. </Parameters>
  876. </DbCommand>
  877. </UpdateCommand>
  878. </DbSource>
  879. </MainSource>
  880. <Mappings>
  881. <Mapping SourceColumn="ClientID" DataSetColumn="ClientID" />
  882. <Mapping SourceColumn="TagID" DataSetColumn="TagID" />
  883. </Mappings>
  884. <Sources />
  885. </TableAdapter>
  886. </Tables>
  887. <Sources />
  888. </DataSource>
  889. </xs:appinfo>
  890. </xs:annotation>
  891. <xs:element name="bobrovDemoEgzamenDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="bobrovDemoEgzamenDataSet" msprop:Generator_UserDSName="bobrovDemoEgzamenDataSet">
  892. <xs:complexType>
  893. <xs:choice minOccurs="0" maxOccurs="unbounded">
  894. <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">
  895. <xs:complexType>
  896. <xs:sequence>
  897. <xs:element name="MainProductID" msprop:Generator_ColumnVarNameInTable="columnMainProductID" msprop:Generator_ColumnPropNameInRow="MainProductID" msprop:Generator_ColumnPropNameInTable="MainProductIDColumn" msprop:Generator_UserColumnName="MainProductID" type="xs:int" />
  898. <xs:element name="AttachedProductID" msprop:Generator_ColumnVarNameInTable="columnAttachedProductID" msprop:Generator_ColumnPropNameInRow="AttachedProductID" msprop:Generator_ColumnPropNameInTable="AttachedProductIDColumn" msprop:Generator_UserColumnName="AttachedProductID" type="xs:int" />
  899. </xs:sequence>
  900. </xs:complexType>
  901. </xs:element>
  902. <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">
  903. <xs:complexType>
  904. <xs:sequence>
  905. <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" />
  906. <xs:element name="FirstName" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ColumnPropNameInTable="FirstNameColumn" msprop:Generator_UserColumnName="FirstName">
  907. <xs:simpleType>
  908. <xs:restriction base="xs:string">
  909. <xs:maxLength value="50" />
  910. </xs:restriction>
  911. </xs:simpleType>
  912. </xs:element>
  913. <xs:element name="LastName" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ColumnPropNameInTable="LastNameColumn" msprop:Generator_UserColumnName="LastName">
  914. <xs:simpleType>
  915. <xs:restriction base="xs:string">
  916. <xs:maxLength value="50" />
  917. </xs:restriction>
  918. </xs:simpleType>
  919. </xs:element>
  920. <xs:element name="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_UserColumnName="Patronymic" minOccurs="0">
  921. <xs:simpleType>
  922. <xs:restriction base="xs:string">
  923. <xs:maxLength value="50" />
  924. </xs:restriction>
  925. </xs:simpleType>
  926. </xs:element>
  927. <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" />
  928. <xs:element name="RegistrationDate" msprop:Generator_ColumnVarNameInTable="columnRegistrationDate" msprop:Generator_ColumnPropNameInRow="RegistrationDate" msprop:Generator_ColumnPropNameInTable="RegistrationDateColumn" msprop:Generator_UserColumnName="RegistrationDate" type="xs:dateTime" />
  929. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email" minOccurs="0">
  930. <xs:simpleType>
  931. <xs:restriction base="xs:string">
  932. <xs:maxLength value="255" />
  933. </xs:restriction>
  934. </xs:simpleType>
  935. </xs:element>
  936. <xs:element name="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone">
  937. <xs:simpleType>
  938. <xs:restriction base="xs:string">
  939. <xs:maxLength value="20" />
  940. </xs:restriction>
  941. </xs:simpleType>
  942. </xs:element>
  943. <xs:element name="GenderCode" msprop:Generator_ColumnVarNameInTable="columnGenderCode" msprop:Generator_ColumnPropNameInRow="GenderCode" msprop:Generator_ColumnPropNameInTable="GenderCodeColumn" msprop:Generator_UserColumnName="GenderCode">
  944. <xs:simpleType>
  945. <xs:restriction base="xs:string">
  946. <xs:maxLength value="1" />
  947. </xs:restriction>
  948. </xs:simpleType>
  949. </xs:element>
  950. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath" minOccurs="0">
  951. <xs:simpleType>
  952. <xs:restriction base="xs:string">
  953. <xs:maxLength value="1000" />
  954. </xs:restriction>
  955. </xs:simpleType>
  956. </xs:element>
  957. </xs:sequence>
  958. </xs:complexType>
  959. </xs:element>
  960. <xs:element name="client_b_import" msprop:Generator_TableClassName="client_b_importDataTable" msprop:Generator_TableVarName="tableclient_b_import" msprop:Generator_TablePropName="client_b_import" msprop:Generator_RowDeletingName="client_b_importRowDeleting" msprop:Generator_RowChangingName="client_b_importRowChanging" msprop:Generator_RowEvHandlerName="client_b_importRowChangeEventHandler" msprop:Generator_RowDeletedName="client_b_importRowDeleted" msprop:Generator_UserTableName="client_b_import" msprop:Generator_RowChangedName="client_b_importRowChanged" msprop:Generator_RowEvArgName="client_b_importRowChangeEvent" msprop:Generator_RowClassName="client_b_importRow">
  961. <xs:complexType>
  962. <xs:sequence>
  963. <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия">
  964. <xs:simpleType>
  965. <xs:restriction base="xs:string">
  966. <xs:maxLength value="50" />
  967. </xs:restriction>
  968. </xs:simpleType>
  969. </xs:element>
  970. <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя" minOccurs="0">
  971. <xs:simpleType>
  972. <xs:restriction base="xs:string">
  973. <xs:maxLength value="50" />
  974. </xs:restriction>
  975. </xs:simpleType>
  976. </xs:element>
  977. <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество" minOccurs="0">
  978. <xs:simpleType>
  979. <xs:restriction base="xs:string">
  980. <xs:maxLength value="50" />
  981. </xs:restriction>
  982. </xs:simpleType>
  983. </xs:element>
  984. <xs:element name="Пол" msprop:Generator_ColumnVarNameInTable="columnПол" msprop:Generator_ColumnPropNameInRow="Пол" msprop:Generator_ColumnPropNameInTable="ПолColumn" msprop:Generator_UserColumnName="Пол">
  985. <xs:simpleType>
  986. <xs:restriction base="xs:string">
  987. <xs:maxLength value="50" />
  988. </xs:restriction>
  989. </xs:simpleType>
  990. </xs:element>
  991. <xs:element name="Телефон" msprop:Generator_ColumnVarNameInTable="columnТелефон" msprop:Generator_ColumnPropNameInRow="Телефон" msprop:Generator_ColumnPropNameInTable="ТелефонColumn" msprop:Generator_UserColumnName="Телефон">
  992. <xs:simpleType>
  993. <xs:restriction base="xs:string">
  994. <xs:maxLength value="50" />
  995. </xs:restriction>
  996. </xs:simpleType>
  997. </xs:element>
  998. <xs:element name="Дата_рождения" msprop:Generator_ColumnVarNameInTable="columnДата_рождения" msprop:Generator_ColumnPropNameInRow="Дата_рождения" msprop:Generator_ColumnPropNameInTable="Дата_рожденияColumn" msprop:Generator_UserColumnName="Дата_рождения" type="xs:dateTime" />
  999. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email">
  1000. <xs:simpleType>
  1001. <xs:restriction base="xs:string">
  1002. <xs:maxLength value="50" />
  1003. </xs:restriction>
  1004. </xs:simpleType>
  1005. </xs:element>
  1006. <xs:element name="Дата_регистрации" msprop:Generator_ColumnVarNameInTable="columnДата_регистрации" msprop:Generator_ColumnPropNameInRow="Дата_регистрации" msprop:Generator_ColumnPropNameInTable="Дата_регистрацииColumn" msprop:Generator_UserColumnName="Дата_регистрации" type="xs:dateTime" />
  1007. </xs:sequence>
  1008. </xs:complexType>
  1009. </xs:element>
  1010. <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">
  1011. <xs:complexType>
  1012. <xs:sequence>
  1013. <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" />
  1014. <xs:element name="ClientID" msprop:Generator_ColumnVarNameInTable="columnClientID" msprop:Generator_ColumnPropNameInRow="ClientID" msprop:Generator_ColumnPropNameInTable="ClientIDColumn" msprop:Generator_UserColumnName="ClientID" type="xs:int" />
  1015. <xs:element name="ServiceID" msprop:Generator_ColumnVarNameInTable="columnServiceID" msprop:Generator_ColumnPropNameInRow="ServiceID" msprop:Generator_ColumnPropNameInTable="ServiceIDColumn" msprop:Generator_UserColumnName="ServiceID" type="xs:int" />
  1016. <xs:element name="StartTime" msprop:Generator_ColumnVarNameInTable="columnStartTime" msprop:Generator_ColumnPropNameInRow="StartTime" msprop:Generator_ColumnPropNameInTable="StartTimeColumn" msprop:Generator_UserColumnName="StartTime" type="xs:dateTime" />
  1017. <xs:element name="Comment" msprop:Generator_ColumnVarNameInTable="columnComment" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_UserColumnName="Comment" minOccurs="0">
  1018. <xs:simpleType>
  1019. <xs:restriction base="xs:string">
  1020. <xs:maxLength value="2147483647" />
  1021. </xs:restriction>
  1022. </xs:simpleType>
  1023. </xs:element>
  1024. </xs:sequence>
  1025. </xs:complexType>
  1026. </xs:element>
  1027. <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">
  1028. <xs:complexType>
  1029. <xs:sequence>
  1030. <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" />
  1031. <xs:element name="ClientServiceID" msprop:Generator_ColumnVarNameInTable="columnClientServiceID" msprop:Generator_ColumnPropNameInRow="ClientServiceID" msprop:Generator_ColumnPropNameInTable="ClientServiceIDColumn" msprop:Generator_UserColumnName="ClientServiceID" type="xs:int" />
  1032. <xs:element name="DocumentPath" msprop:Generator_ColumnVarNameInTable="columnDocumentPath" msprop:Generator_ColumnPropNameInRow="DocumentPath" msprop:Generator_ColumnPropNameInTable="DocumentPathColumn" msprop:Generator_UserColumnName="DocumentPath">
  1033. <xs:simpleType>
  1034. <xs:restriction base="xs:string">
  1035. <xs:maxLength value="1000" />
  1036. </xs:restriction>
  1037. </xs:simpleType>
  1038. </xs:element>
  1039. </xs:sequence>
  1040. </xs:complexType>
  1041. </xs:element>
  1042. <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">
  1043. <xs:complexType>
  1044. <xs:sequence>
  1045. <xs:element name="Code" msprop:Generator_ColumnVarNameInTable="columnCode" msprop:Generator_ColumnPropNameInRow="Code" msprop:Generator_ColumnPropNameInTable="CodeColumn" msprop:Generator_UserColumnName="Code">
  1046. <xs:simpleType>
  1047. <xs:restriction base="xs:string">
  1048. <xs:maxLength value="1" />
  1049. </xs:restriction>
  1050. </xs:simpleType>
  1051. </xs:element>
  1052. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
  1053. <xs:simpleType>
  1054. <xs:restriction base="xs:string">
  1055. <xs:maxLength value="10" />
  1056. </xs:restriction>
  1057. </xs:simpleType>
  1058. </xs:element>
  1059. </xs:sequence>
  1060. </xs:complexType>
  1061. </xs:element>
  1062. <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">
  1063. <xs:complexType>
  1064. <xs:sequence>
  1065. <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" />
  1066. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
  1067. <xs:simpleType>
  1068. <xs:restriction base="xs:string">
  1069. <xs:maxLength value="100" />
  1070. </xs:restriction>
  1071. </xs:simpleType>
  1072. </xs:element>
  1073. <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" />
  1074. </xs:sequence>
  1075. </xs:complexType>
  1076. </xs:element>
  1077. <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">
  1078. <xs:complexType>
  1079. <xs:sequence>
  1080. <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" />
  1081. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1082. <xs:simpleType>
  1083. <xs:restriction base="xs:string">
  1084. <xs:maxLength value="100" />
  1085. </xs:restriction>
  1086. </xs:simpleType>
  1087. </xs:element>
  1088. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:decimal" />
  1089. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  1090. <xs:simpleType>
  1091. <xs:restriction base="xs:string">
  1092. <xs:maxLength value="2147483647" />
  1093. </xs:restriction>
  1094. </xs:simpleType>
  1095. </xs:element>
  1096. <xs:element name="MainImagePath" msprop:Generator_ColumnVarNameInTable="columnMainImagePath" msprop:Generator_ColumnPropNameInRow="MainImagePath" msprop:Generator_ColumnPropNameInTable="MainImagePathColumn" msprop:Generator_UserColumnName="MainImagePath" minOccurs="0">
  1097. <xs:simpleType>
  1098. <xs:restriction base="xs:string">
  1099. <xs:maxLength value="1000" />
  1100. </xs:restriction>
  1101. </xs:simpleType>
  1102. </xs:element>
  1103. <xs:element name="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" msprop:Generator_UserColumnName="IsActive" type="xs:boolean" />
  1104. <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" />
  1105. </xs:sequence>
  1106. </xs:complexType>
  1107. </xs:element>
  1108. <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">
  1109. <xs:complexType>
  1110. <xs:sequence>
  1111. <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" />
  1112. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  1113. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath">
  1114. <xs:simpleType>
  1115. <xs:restriction base="xs:string">
  1116. <xs:maxLength value="1000" />
  1117. </xs:restriction>
  1118. </xs:simpleType>
  1119. </xs:element>
  1120. </xs:sequence>
  1121. </xs:complexType>
  1122. </xs:element>
  1123. <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">
  1124. <xs:complexType>
  1125. <xs:sequence>
  1126. <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" />
  1127. <xs:element name="SaleDate" msprop:Generator_ColumnVarNameInTable="columnSaleDate" msprop:Generator_ColumnPropNameInRow="SaleDate" msprop:Generator_ColumnPropNameInTable="SaleDateColumn" msprop:Generator_UserColumnName="SaleDate" type="xs:dateTime" />
  1128. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  1129. <xs:element name="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:int" />
  1130. <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" />
  1131. </xs:sequence>
  1132. </xs:complexType>
  1133. </xs:element>
  1134. <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">
  1135. <xs:complexType>
  1136. <xs:sequence>
  1137. <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" />
  1138. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1139. <xs:simpleType>
  1140. <xs:restriction base="xs:string">
  1141. <xs:maxLength value="100" />
  1142. </xs:restriction>
  1143. </xs:simpleType>
  1144. </xs:element>
  1145. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:decimal" />
  1146. <xs:element name="DurationInSeconds" msprop:Generator_ColumnVarNameInTable="columnDurationInSeconds" msprop:Generator_ColumnPropNameInRow="DurationInSeconds" msprop:Generator_ColumnPropNameInTable="DurationInSecondsColumn" msprop:Generator_UserColumnName="DurationInSeconds" type="xs:int" />
  1147. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  1148. <xs:simpleType>
  1149. <xs:restriction base="xs:string">
  1150. <xs:maxLength value="2147483647" />
  1151. </xs:restriction>
  1152. </xs:simpleType>
  1153. </xs:element>
  1154. <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" type="xs:double" minOccurs="0" />
  1155. <xs:element name="MainImagePath" msprop:Generator_ColumnVarNameInTable="columnMainImagePath" msprop:Generator_ColumnPropNameInRow="MainImagePath" msprop:Generator_ColumnPropNameInTable="MainImagePathColumn" msprop:Generator_UserColumnName="MainImagePath" minOccurs="0">
  1156. <xs:simpleType>
  1157. <xs:restriction base="xs:string">
  1158. <xs:maxLength value="1000" />
  1159. </xs:restriction>
  1160. </xs:simpleType>
  1161. </xs:element>
  1162. </xs:sequence>
  1163. </xs:complexType>
  1164. </xs:element>
  1165. <xs:element name="service_b_import" msprop:Generator_TableClassName="service_b_importDataTable" msprop:Generator_TableVarName="tableservice_b_import" msprop:Generator_TablePropName="service_b_import" msprop:Generator_RowDeletingName="service_b_importRowDeleting" msprop:Generator_RowChangingName="service_b_importRowChanging" msprop:Generator_RowEvHandlerName="service_b_importRowChangeEventHandler" msprop:Generator_RowDeletedName="service_b_importRowDeleted" msprop:Generator_UserTableName="service_b_import" msprop:Generator_RowChangedName="service_b_importRowChanged" msprop:Generator_RowEvArgName="service_b_importRowChangeEvent" msprop:Generator_RowClassName="service_b_importRow">
  1166. <xs:complexType>
  1167. <xs:sequence>
  1168. <xs:element name="Наименование_услуги" msprop:Generator_ColumnVarNameInTable="columnНаименование_услуги" msprop:Generator_ColumnPropNameInRow="Наименование_услуги" msprop:Generator_ColumnPropNameInTable="Наименование_услугиColumn" msprop:Generator_UserColumnName="Наименование_услуги">
  1169. <xs:simpleType>
  1170. <xs:restriction base="xs:string">
  1171. <xs:maxLength value="50" />
  1172. </xs:restriction>
  1173. </xs:simpleType>
  1174. </xs:element>
  1175. <xs:element name="Главное_изображение" msprop:Generator_ColumnVarNameInTable="columnГлавное_изображение" msprop:Generator_ColumnPropNameInRow="Главное_изображение" msprop:Generator_ColumnPropNameInTable="Главное_изображениеColumn" msprop:Generator_UserColumnName="Главное_изображение">
  1176. <xs:simpleType>
  1177. <xs:restriction base="xs:string">
  1178. <xs:maxLength value="100" />
  1179. </xs:restriction>
  1180. </xs:simpleType>
  1181. </xs:element>
  1182. <xs:element name="Длительность" msprop:Generator_ColumnVarNameInTable="columnДлительность" msprop:Generator_ColumnPropNameInRow="Длительность" msprop:Generator_ColumnPropNameInTable="ДлительностьColumn" msprop:Generator_UserColumnName="Длительность">
  1183. <xs:simpleType>
  1184. <xs:restriction base="xs:string">
  1185. <xs:maxLength value="50" />
  1186. </xs:restriction>
  1187. </xs:simpleType>
  1188. </xs:element>
  1189. <xs:element name="Стоимость" msprop:Generator_ColumnVarNameInTable="columnСтоимость" msprop:Generator_ColumnPropNameInRow="Стоимость" msprop:Generator_ColumnPropNameInTable="СтоимостьColumn" msprop:Generator_UserColumnName="Стоимость">
  1190. <xs:simpleType>
  1191. <xs:restriction base="xs:string">
  1192. <xs:maxLength value="50" />
  1193. </xs:restriction>
  1194. </xs:simpleType>
  1195. </xs:element>
  1196. <xs:element name="Действующая_скидка" msprop:Generator_ColumnVarNameInTable="columnДействующая_скидка" msprop:Generator_ColumnPropNameInRow="Действующая_скидка" msprop:Generator_ColumnPropNameInTable="Действующая_скидкаColumn" msprop:Generator_UserColumnName="Действующая_скидка">
  1197. <xs:simpleType>
  1198. <xs:restriction base="xs:string">
  1199. <xs:maxLength value="50" />
  1200. </xs:restriction>
  1201. </xs:simpleType>
  1202. </xs:element>
  1203. </xs:sequence>
  1204. </xs:complexType>
  1205. </xs:element>
  1206. <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">
  1207. <xs:complexType>
  1208. <xs:sequence>
  1209. <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" />
  1210. <xs:element name="ServiceID" msprop:Generator_ColumnVarNameInTable="columnServiceID" msprop:Generator_ColumnPropNameInRow="ServiceID" msprop:Generator_ColumnPropNameInTable="ServiceIDColumn" msprop:Generator_UserColumnName="ServiceID" type="xs:int" />
  1211. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath">
  1212. <xs:simpleType>
  1213. <xs:restriction base="xs:string">
  1214. <xs:maxLength value="1000" />
  1215. </xs:restriction>
  1216. </xs:simpleType>
  1217. </xs:element>
  1218. </xs:sequence>
  1219. </xs:complexType>
  1220. </xs:element>
  1221. <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">
  1222. <xs:complexType>
  1223. <xs:sequence>
  1224. <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" />
  1225. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1226. <xs:simpleType>
  1227. <xs:restriction base="xs:string">
  1228. <xs:maxLength value="30" />
  1229. </xs:restriction>
  1230. </xs:simpleType>
  1231. </xs:element>
  1232. <xs:element name="Color" msprop:Generator_ColumnVarNameInTable="columnColor" msprop:Generator_ColumnPropNameInRow="Color" msprop:Generator_ColumnPropNameInTable="ColorColumn" msprop:Generator_UserColumnName="Color">
  1233. <xs:simpleType>
  1234. <xs:restriction base="xs:string">
  1235. <xs:maxLength value="6" />
  1236. </xs:restriction>
  1237. </xs:simpleType>
  1238. </xs:element>
  1239. </xs:sequence>
  1240. </xs:complexType>
  1241. </xs:element>
  1242. <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">
  1243. <xs:complexType>
  1244. <xs:sequence>
  1245. <xs:element name="ClientID" msprop:Generator_ColumnVarNameInTable="columnClientID" msprop:Generator_ColumnPropNameInRow="ClientID" msprop:Generator_ColumnPropNameInTable="ClientIDColumn" msprop:Generator_UserColumnName="ClientID" type="xs:int" />
  1246. <xs:element name="TagID" msprop:Generator_ColumnVarNameInTable="columnTagID" msprop:Generator_ColumnPropNameInRow="TagID" msprop:Generator_ColumnPropNameInTable="TagIDColumn" msprop:Generator_UserColumnName="TagID" type="xs:int" />
  1247. </xs:sequence>
  1248. </xs:complexType>
  1249. </xs:element>
  1250. </xs:choice>
  1251. </xs:complexType>
  1252. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  1253. <xs:selector xpath=".//mstns:AttachedProduct" />
  1254. <xs:field xpath="mstns:MainProductID" />
  1255. <xs:field xpath="mstns:AttachedProductID" />
  1256. </xs:unique>
  1257. <xs:unique name="Client_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1258. <xs:selector xpath=".//mstns:Client" />
  1259. <xs:field xpath="mstns:ID" />
  1260. </xs:unique>
  1261. <xs:unique name="ClientService_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1262. <xs:selector xpath=".//mstns:ClientService" />
  1263. <xs:field xpath="mstns:ID" />
  1264. </xs:unique>
  1265. <xs:unique name="DocumentByService_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1266. <xs:selector xpath=".//mstns:DocumentByService" />
  1267. <xs:field xpath="mstns:ID" />
  1268. </xs:unique>
  1269. <xs:unique name="Gender_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1270. <xs:selector xpath=".//mstns:Gender" />
  1271. <xs:field xpath="mstns:Code" />
  1272. </xs:unique>
  1273. <xs:unique name="Manufacturer_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1274. <xs:selector xpath=".//mstns:Manufacturer" />
  1275. <xs:field xpath="mstns:ID" />
  1276. </xs:unique>
  1277. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1278. <xs:selector xpath=".//mstns:Product" />
  1279. <xs:field xpath="mstns:ID" />
  1280. </xs:unique>
  1281. <xs:unique name="ProductPhoto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1282. <xs:selector xpath=".//mstns:ProductPhoto" />
  1283. <xs:field xpath="mstns:ID" />
  1284. </xs:unique>
  1285. <xs:unique name="ProductSale_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1286. <xs:selector xpath=".//mstns:ProductSale" />
  1287. <xs:field xpath="mstns:ID" />
  1288. </xs:unique>
  1289. <xs:unique name="Service_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1290. <xs:selector xpath=".//mstns:Service" />
  1291. <xs:field xpath="mstns:ID" />
  1292. </xs:unique>
  1293. <xs:unique name="service_b_import_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1294. <xs:selector xpath=".//mstns:service_b_import" />
  1295. <xs:field xpath="mstns:Наименование_услуги" />
  1296. </xs:unique>
  1297. <xs:unique name="ServicePhoto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1298. <xs:selector xpath=".//mstns:ServicePhoto" />
  1299. <xs:field xpath="mstns:ID" />
  1300. </xs:unique>
  1301. <xs:unique name="Tag_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1302. <xs:selector xpath=".//mstns:Tag" />
  1303. <xs:field xpath="mstns:ID" />
  1304. </xs:unique>
  1305. <xs:unique name="TagOfClient_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1306. <xs:selector xpath=".//mstns:TagOfClient" />
  1307. <xs:field xpath="mstns:ClientID" />
  1308. <xs:field xpath="mstns:TagID" />
  1309. </xs:unique>
  1310. </xs:element>
  1311. <xs:annotation>
  1312. <xs:appinfo>
  1313. <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" />
  1314. <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" />
  1315. <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" />
  1316. <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" />
  1317. <msdata:Relationship name="FK_ClientService_Service" 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" msprop:Generator_RelationVarName="relationFK_ClientService_Service" msprop:Generator_UserParentTable="Service" msprop:Generator_ParentPropName="ServiceRow" />
  1318. <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" />
  1319. <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" />
  1320. <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" />
  1321. <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" />
  1322. <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" />
  1323. <msdata:Relationship name="FK_ServicePhoto_Service" 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" msprop:Generator_ParentPropName="ServiceRow" msprop:Generator_RelationVarName="relationFK_ServicePhoto_Service" msprop:Generator_UserParentTable="Service" />
  1324. <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" />
  1325. <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" />
  1326. </xs:appinfo>
  1327. </xs:annotation>
  1328. </xs:schema>