Badretdinov_PR13DataSet.xsd 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="Badretdinov_PR13DataSet" targetNamespace="http://tempuri.org/Badretdinov_PR13DataSet.xsd" xmlns:mstns="http://tempuri.org/Badretdinov_PR13DataSet.xsd" xmlns="http://tempuri.org/Badretdinov_PR13DataSet.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="Badretdinov_PR13ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Badretdinov_PR13ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WpfApp3.Properties.Settings.GlobalReference.Default.Badretdinov_PR13ConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UserTableAdapter" GeneratorDataComponentClassName="UserTableAdapter" Name="User" UserDataComponentName="UserTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="Badretdinov_PR13ConnectionString (Settings)" DbObjectName="Badretdinov_PR13.dbo.[User]" 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].[User] WHERE (([ID] = @Original_ID) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пороль = 1 AND [Пороль] IS NULL) OR ([Пороль] = @Original_Пороль)) AND ((@IsNull_Роль = 1 AND [Роль] IS NULL) OR ([Роль] = @Original_Роль)))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Логин" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Логин" SourceColumnNullMapping="true" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Логин" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Логин" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Пороль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Пороль" SourceColumnNullMapping="true" SourceVersion="Original" />
  21. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Пороль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пороль" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="true" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Роль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Original" />
  24. </Parameters>
  25. </DbCommand>
  26. </DeleteCommand>
  27. <InsertCommand>
  28. <DbCommand CommandType="Text" ModifiedByUser="false">
  29. <CommandText>INSERT INTO [dbo].[User] ([Логин], [Пороль], [Роль]) VALUES (@Логин, @Пороль, @Роль);
  30. SELECT ID, Логин, Пороль, Роль FROM [User] WHERE (ID = SCOPE_IDENTITY())</CommandText>
  31. <Parameters>
  32. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Логин" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Логин" SourceColumnNullMapping="false" SourceVersion="Current" />
  33. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Пороль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пороль" SourceColumnNullMapping="false" SourceVersion="Current" />
  34. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Роль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Current" />
  35. </Parameters>
  36. </DbCommand>
  37. </InsertCommand>
  38. <SelectCommand>
  39. <DbCommand CommandType="Text" ModifiedByUser="false">
  40. <CommandText>SELECT ID, Логин, Пороль, Роль FROM dbo.[User]</CommandText>
  41. <Parameters />
  42. </DbCommand>
  43. </SelectCommand>
  44. <UpdateCommand>
  45. <DbCommand CommandType="Text" ModifiedByUser="false">
  46. <CommandText>UPDATE [dbo].[User] SET [Логин] = @Логин, [Пороль] = @Пороль, [Роль] = @Роль WHERE (([ID] = @Original_ID) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пороль = 1 AND [Пороль] IS NULL) OR ([Пороль] = @Original_Пороль)) AND ((@IsNull_Роль = 1 AND [Роль] IS NULL) OR ([Роль] = @Original_Роль)));
  47. SELECT ID, Логин, Пороль, Роль FROM [User] WHERE (ID = @ID)</CommandText>
  48. <Parameters>
  49. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Логин" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Логин" SourceColumnNullMapping="false" SourceVersion="Current" />
  50. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Пороль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пороль" SourceColumnNullMapping="false" SourceVersion="Current" />
  51. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Роль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Current" />
  52. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  53. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Логин" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Логин" SourceColumnNullMapping="true" SourceVersion="Original" />
  54. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Логин" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Логин" SourceColumnNullMapping="false" SourceVersion="Original" />
  55. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Пороль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Пороль" SourceColumnNullMapping="true" SourceVersion="Original" />
  56. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Пороль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пороль" SourceColumnNullMapping="false" SourceVersion="Original" />
  57. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="true" SourceVersion="Original" />
  58. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Роль" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Original" />
  59. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Badretdinov_PR13.dbo.[User]" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="TinyInt" Scale="0" Size="1" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  60. </Parameters>
  61. </DbCommand>
  62. </UpdateCommand>
  63. </DbSource>
  64. </MainSource>
  65. <Mappings>
  66. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  67. <Mapping SourceColumn="Логин" DataSetColumn="Логин" />
  68. <Mapping SourceColumn="Пороль" DataSetColumn="Пороль" />
  69. <Mapping SourceColumn="Роль" DataSetColumn="Роль" />
  70. </Mappings>
  71. <Sources />
  72. </TableAdapter>
  73. </Tables>
  74. <Sources />
  75. </DataSource>
  76. </xs:appinfo>
  77. </xs:annotation>
  78. <xs:element name="Badretdinov_PR13DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Badretdinov_PR13DataSet" msprop:Generator_UserDSName="Badretdinov_PR13DataSet">
  79. <xs:complexType>
  80. <xs:choice minOccurs="0" maxOccurs="unbounded">
  81. <xs:element name="User" msprop:Generator_TableClassName="UserDataTable" msprop:Generator_TableVarName="tableUser" msprop:Generator_TablePropName="User" msprop:Generator_RowDeletingName="UserRowDeleting" msprop:Generator_RowChangingName="UserRowChanging" msprop:Generator_RowEvHandlerName="UserRowChangeEventHandler" msprop:Generator_RowDeletedName="UserRowDeleted" msprop:Generator_UserTableName="User" msprop:Generator_RowChangedName="UserRowChanged" msprop:Generator_RowEvArgName="UserRowChangeEvent" msprop:Generator_RowClassName="UserRow">
  82. <xs:complexType>
  83. <xs:sequence>
  84. <xs:element name="ID" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:unsignedByte" />
  85. <xs:element name="Логин" msprop:Generator_ColumnVarNameInTable="columnЛогин" msprop:Generator_ColumnPropNameInRow="Логин" msprop:Generator_ColumnPropNameInTable="ЛогинColumn" msprop:Generator_UserColumnName="Логин" minOccurs="0">
  86. <xs:simpleType>
  87. <xs:restriction base="xs:string">
  88. <xs:maxLength value="50" />
  89. </xs:restriction>
  90. </xs:simpleType>
  91. </xs:element>
  92. <xs:element name="Пороль" msprop:Generator_ColumnVarNameInTable="columnПороль" msprop:Generator_ColumnPropNameInRow="Пороль" msprop:Generator_ColumnPropNameInTable="ПорольColumn" msprop:Generator_UserColumnName="Пороль" minOccurs="0">
  93. <xs:simpleType>
  94. <xs:restriction base="xs:string">
  95. <xs:maxLength value="50" />
  96. </xs:restriction>
  97. </xs:simpleType>
  98. </xs:element>
  99. <xs:element name="Роль" msprop:Generator_ColumnVarNameInTable="columnРоль" msprop:Generator_ColumnPropNameInRow="Роль" msprop:Generator_ColumnPropNameInTable="РольColumn" msprop:Generator_UserColumnName="Роль" minOccurs="0">
  100. <xs:simpleType>
  101. <xs:restriction base="xs:string">
  102. <xs:maxLength value="50" />
  103. </xs:restriction>
  104. </xs:simpleType>
  105. </xs:element>
  106. </xs:sequence>
  107. </xs:complexType>
  108. </xs:element>
  109. </xs:choice>
  110. </xs:complexType>
  111. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  112. <xs:selector xpath=".//mstns:User" />
  113. <xs:field xpath="mstns:ID" />
  114. </xs:unique>
  115. </xs:element>
  116. </xs:schema>