BranchesOperDataSet.xsd 9.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="BranchesOperDataSet" targetNamespace="http://tempuri.org/BranchesOperDataSet.xsd" xmlns:mstns="http://tempuri.org/BranchesOperDataSet.xsd" xmlns="http://tempuri.org/BranchesOperDataSet.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="courseConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="courseConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Course_Project.Properties.Settings.GlobalReference.Default.courseConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="BranchesTableAdapter" GeneratorDataComponentClassName="BranchesTableAdapter" Name="Branches" UserDataComponentName="BranchesTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="courseConnectionString (Settings)" DbObjectName="course.dbo.Branches" 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 [Branches] WHERE (([Title] = @Original_Title) AND ([Chief] = @Original_Chief) AND ([BranchID] = @Original_BranchID))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Chief" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Chief" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_BranchID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BranchID" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. </Parameters>
  21. </DbCommand>
  22. </DeleteCommand>
  23. <InsertCommand>
  24. <DbCommand CommandType="Text" ModifiedByUser="false">
  25. <CommandText>INSERT INTO [Branches] ([Title], [Chief]) VALUES (@Title, @Chief);
  26. SELECT Title, Chief, BranchID FROM Branches WHERE (BranchID = SCOPE_IDENTITY())</CommandText>
  27. <Parameters>
  28. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  29. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Chief" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Chief" SourceColumnNullMapping="false" SourceVersion="Current" />
  30. </Parameters>
  31. </DbCommand>
  32. </InsertCommand>
  33. <SelectCommand>
  34. <DbCommand CommandType="Text" ModifiedByUser="false">
  35. <CommandText>SELECT Title, Chief, BranchID FROM Branches</CommandText>
  36. <Parameters />
  37. </DbCommand>
  38. </SelectCommand>
  39. <UpdateCommand>
  40. <DbCommand CommandType="Text" ModifiedByUser="false">
  41. <CommandText>UPDATE [Branches] SET [Title] = @Title, [Chief] = @Chief WHERE (([Title] = @Original_Title) AND ([Chief] = @Original_Chief) AND ([BranchID] = @Original_BranchID));
  42. SELECT Title, Chief, BranchID FROM Branches WHERE (BranchID = @BranchID)</CommandText>
  43. <Parameters>
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  45. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Chief" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Chief" SourceColumnNullMapping="false" SourceVersion="Current" />
  46. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  47. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Chief" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Chief" SourceColumnNullMapping="false" SourceVersion="Original" />
  48. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_BranchID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BranchID" SourceColumnNullMapping="false" SourceVersion="Original" />
  49. <Parameter AllowDbNull="false" AutogeneratedName="BranchID" ColumnName="BranchID" DataSourceName="course.dbo.Branches" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@BranchID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="BranchID" SourceColumnNullMapping="false" SourceVersion="Current" />
  50. </Parameters>
  51. </DbCommand>
  52. </UpdateCommand>
  53. </DbSource>
  54. </MainSource>
  55. <Mappings>
  56. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  57. <Mapping SourceColumn="Chief" DataSetColumn="Chief" />
  58. <Mapping SourceColumn="BranchID" DataSetColumn="BranchID" />
  59. </Mappings>
  60. <Sources />
  61. </TableAdapter>
  62. </Tables>
  63. <Sources />
  64. </DataSource>
  65. </xs:appinfo>
  66. </xs:annotation>
  67. <xs:element name="BranchesOperDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="BranchesOperDataSet" msprop:Generator_UserDSName="BranchesOperDataSet">
  68. <xs:complexType>
  69. <xs:choice minOccurs="0" maxOccurs="unbounded">
  70. <xs:element name="Branches" msprop:Generator_TableClassName="BranchesDataTable" msprop:Generator_TableVarName="tableBranches" msprop:Generator_RowChangedName="BranchesRowChanged" msprop:Generator_TablePropName="Branches" msprop:Generator_RowDeletingName="BranchesRowDeleting" msprop:Generator_RowChangingName="BranchesRowChanging" msprop:Generator_RowEvHandlerName="BranchesRowChangeEventHandler" msprop:Generator_RowDeletedName="BranchesRowDeleted" msprop:Generator_RowClassName="BranchesRow" msprop:Generator_UserTableName="Branches" msprop:Generator_RowEvArgName="BranchesRowChangeEvent">
  71. <xs:complexType>
  72. <xs:sequence>
  73. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  74. <xs:simpleType>
  75. <xs:restriction base="xs:string">
  76. <xs:maxLength value="100" />
  77. </xs:restriction>
  78. </xs:simpleType>
  79. </xs:element>
  80. <xs:element name="Chief" msprop:Generator_ColumnVarNameInTable="columnChief" msprop:Generator_ColumnPropNameInRow="Chief" msprop:Generator_ColumnPropNameInTable="ChiefColumn" msprop:Generator_UserColumnName="Chief">
  81. <xs:simpleType>
  82. <xs:restriction base="xs:string">
  83. <xs:maxLength value="100" />
  84. </xs:restriction>
  85. </xs:simpleType>
  86. </xs:element>
  87. <xs:element name="BranchID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnBranchID" msprop:Generator_ColumnPropNameInRow="BranchID" msprop:Generator_ColumnPropNameInTable="BranchIDColumn" msprop:Generator_UserColumnName="BranchID" type="xs:int" />
  88. </xs:sequence>
  89. </xs:complexType>
  90. </xs:element>
  91. </xs:choice>
  92. </xs:complexType>
  93. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  94. <xs:selector xpath=".//mstns:Branches" />
  95. <xs:field xpath="mstns:BranchID" />
  96. </xs:unique>
  97. </xs:element>
  98. </xs:schema>