-
Notifications
You must be signed in to change notification settings - Fork 0
/
BooksDataSet.xsd
109 lines (109 loc) · 13.1 KB
/
BooksDataSet.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="BooksDataSet" targetNamespace="http://tempuri.org/BooksDataSet.xsd" xmlns:mstns="http://tempuri.org/BooksDataSet.xsd" xmlns="http://tempuri.org/BooksDataSet.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">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="BooksConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BooksConnectionString (Settings)" PropertyReference="ApplicationSettings.SQLTester.Properties.Settings.GlobalReference.Default.BooksConnectionString" Provider="System.Data.OleDb" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TitlesTableAdapter" GeneratorDataComponentClassName="TitlesTableAdapter" Name="Titles" UserDataComponentName="TitlesTableAdapter">
<MainSource>
<DbSource ConnectionRef="BooksConnectionString (Settings)" DbObjectName="Titles" 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">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `Titles` WHERE ((`ISBN` = ?) AND ((? = 1 AND `Title` IS NULL) OR (`Title` = ?)) AND ((? = 1 AND `Year_Published` IS NULL) OR (`Year_Published` = ?)) AND ((? = 1 AND `PubID` IS NULL) OR (`PubID` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_ISBN" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Title" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Title" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Year_Published" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Year_Published" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Year_Published" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Year_Published" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_PubID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PubID" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_PubID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PubID" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `Titles` (`ISBN`, `Title`, `Year_Published`, `PubID`) VALUES (?, ?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ISBN" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Title" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Year_Published" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Year_Published" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="PubID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PubID" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT ISBN, Title, Year_Published, PubID FROM Titles</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `Titles` SET `ISBN` = ?, `Title` = ?, `Year_Published` = ?, `PubID` = ? WHERE ((`ISBN` = ?) AND ((? = 1 AND `Title` IS NULL) OR (`Title` = ?)) AND ((? = 1 AND `Year_Published` IS NULL) OR (`Year_Published` = ?)) AND ((? = 1 AND `PubID` IS NULL) OR (`PubID` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ISBN" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Title" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Year_Published" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Year_Published" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="PubID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PubID" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_ISBN" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Title" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Title" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Year_Published" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Year_Published" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Year_Published" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Year_Published" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_PubID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PubID" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_PubID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PubID" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="ISBN" DataSetColumn="ISBN" />
<Mapping SourceColumn="Title" DataSetColumn="Title" />
<Mapping SourceColumn="Year_Published" DataSetColumn="Year_Published" />
<Mapping SourceColumn="PubID" DataSetColumn="PubID" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="BooksDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="BooksDataSet" msprop:Generator_DataSetName="BooksDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Titles" msprop:Generator_RowEvHandlerName="TitlesRowChangeEventHandler" msprop:Generator_RowDeletedName="TitlesRowDeleted" msprop:Generator_RowDeletingName="TitlesRowDeleting" msprop:Generator_RowEvArgName="TitlesRowChangeEvent" msprop:Generator_TablePropName="Titles" msprop:Generator_RowChangedName="TitlesRowChanged" msprop:Generator_RowChangingName="TitlesRowChanging" msprop:Generator_TableClassName="TitlesDataTable" msprop:Generator_RowClassName="TitlesRow" msprop:Generator_TableVarName="tableTitles" msprop:Generator_UserTableName="Titles">
<xs:complexType>
<xs:sequence>
<xs:element name="ISBN" msprop:Generator_ColumnPropNameInRow="ISBN" msprop:Generator_ColumnPropNameInTable="ISBNColumn" msprop:Generator_ColumnVarNameInTable="columnISBN" msprop:Generator_UserColumnName="ISBN">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_UserColumnName="Title" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Year_Published" msprop:Generator_ColumnPropNameInRow="Year_Published" msprop:Generator_ColumnPropNameInTable="Year_PublishedColumn" msprop:Generator_ColumnVarNameInTable="columnYear_Published" msprop:Generator_UserColumnName="Year_Published" type="xs:int" minOccurs="0" />
<xs:element name="PubID" msprop:Generator_ColumnPropNameInRow="PubID" msprop:Generator_ColumnPropNameInTable="PubIDColumn" msprop:Generator_ColumnVarNameInTable="columnPubID" msprop:Generator_UserColumnName="PubID" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Titles" />
<xs:field xpath="mstns:ISBN" />
</xs:unique>
</xs:element>
</xs:schema>