-
Notifications
You must be signed in to change notification settings - Fork 0
/
TripExpenseTrackerDataSet1.xsd
87 lines (87 loc) · 8.2 KB
/
TripExpenseTrackerDataSet1.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TripExpenseTrackerDataSet" targetNamespace="http://tempuri.org/TripExpenseTrackerDataSet1.xsd" xmlns:mstns="http://tempuri.org/TripExpenseTrackerDataSet1.xsd" xmlns="http://tempuri.org/TripExpenseTrackerDataSet1.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="TripExpenseTrackerConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TripExpenseTrackerConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Trip_Expense_Tracker.Properties.Settings.GlobalReference.Default.TripExpenseTrackerConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="budgetTableAdapter" GeneratorDataComponentClassName="budgetTableAdapter" Name="budget" UserDataComponentName="budgetTableAdapter">
<MainSource>
<DbSource ConnectionRef="TripExpenseTrackerConnectionString (Settings)" DbObjectName="TripExpenseTracker.dbo.budget" 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 [dbo].[budget] WHERE (([budgno] = @Original_budgno) AND ([name] = @Original_name))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_budgno" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="budgno" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[budget] ([budgno], [name]) VALUES (@budgno, @name);
SELECT budgno, name FROM budget WHERE (budgno = @budgno)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@budgno" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="budgno" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT budgno, name FROM dbo.budget</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[budget] SET [budgno] = @budgno, [name] = @name WHERE (([budgno] = @Original_budgno) AND ([name] = @Original_name));
SELECT budgno, name FROM budget WHERE (budgno = @budgno)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@budgno" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="budgno" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_budgno" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="budgno" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="budgno" DataSetColumn="budgno" />
<Mapping SourceColumn="name" DataSetColumn="name" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="TripExpenseTrackerDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="TripExpenseTrackerDataSet" msprop:Generator_DataSetName="TripExpenseTrackerDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="budget" msprop:Generator_RowEvHandlerName="budgetRowChangeEventHandler" msprop:Generator_RowDeletedName="budgetRowDeleted" msprop:Generator_RowDeletingName="budgetRowDeleting" msprop:Generator_RowEvArgName="budgetRowChangeEvent" msprop:Generator_TablePropName="budget" msprop:Generator_RowChangedName="budgetRowChanged" msprop:Generator_RowChangingName="budgetRowChanging" msprop:Generator_TableClassName="budgetDataTable" msprop:Generator_RowClassName="budgetRow" msprop:Generator_TableVarName="tablebudget" msprop:Generator_UserTableName="budget">
<xs:complexType>
<xs:sequence>
<xs:element name="budgno" msprop:Generator_ColumnPropNameInRow="budgno" msprop:Generator_ColumnPropNameInTable="budgnoColumn" msprop:Generator_ColumnVarNameInTable="columnbudgno" msprop:Generator_UserColumnName="budgno" type="xs:int" />
<xs:element name="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_UserColumnName="name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:budget" />
<xs:field xpath="mstns:budgno" />
</xs:unique>
</xs:element>
</xs:schema>