-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFoodpandaDataList.xsd
More file actions
104 lines (104 loc) · 13.7 KB
/
Copy pathFoodpandaDataList.xsd
File metadata and controls
104 lines (104 loc) · 13.7 KB
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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="FoodpandaDataList" targetNamespace="http://tempuri.org/FoodpandaDataList.xsd" xmlns:mstns="http://tempuri.org/FoodpandaDataList.xsd" xmlns="http://tempuri.org/FoodpandaDataList.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="foodpandaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="foodpandaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Admin_Panel_Assignment.Properties.Settings.GlobalReference.Default.foodpandaConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="foodlistTableAdapter" GeneratorDataComponentClassName="foodlistTableAdapter" Name="foodlist" UserDataComponentName="foodlistTableAdapter">
<MainSource>
<DbSource ConnectionRef="foodpandaConnectionString (Settings)" DbObjectName="foodpanda.dbo.foodlist" 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].[foodlist] WHERE (([food_ID] = @Original_food_ID) AND ((@IsNull_food_name = 1 AND [food_name] IS NULL) OR ([food_name] = @Original_food_name)) AND ((@IsNull_food_price = 1 AND [food_price] IS NULL) OR ([food_price] = @Original_food_price)) AND ((@IsNull_food_quantity = 1 AND [food_quantity] IS NULL) OR ([food_quantity] = @Original_food_quantity)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_food_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_name" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_food_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="food_name" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_food_price" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_price" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_price" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_price" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_food_quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[foodlist] ([food_name], [food_price], [food_quantity]) VALUES (@food_name, @food_price, @food_quantity);
SELECT food_ID, food_name, food_price, food_quantity FROM foodlist WHERE (food_ID = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@food_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="food_name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_price" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_price" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT food_ID, food_name, food_price, food_quantity FROM dbo.foodlist</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[foodlist] SET [food_name] = @food_name, [food_price] = @food_price, [food_quantity] = @food_quantity WHERE (([food_ID] = @Original_food_ID) AND ((@IsNull_food_name = 1 AND [food_name] IS NULL) OR ([food_name] = @Original_food_name)) AND ((@IsNull_food_price = 1 AND [food_price] IS NULL) OR ([food_price] = @Original_food_price)) AND ((@IsNull_food_quantity = 1 AND [food_quantity] IS NULL) OR ([food_quantity] = @Original_food_quantity)));
SELECT food_ID, food_name, food_price, food_quantity FROM foodlist WHERE (food_ID = @food_ID)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@food_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="food_name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_price" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_price" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_food_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_name" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_food_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="food_name" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_food_price" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_price" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_price" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_price" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_food_quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="food_ID" ColumnName="food_ID" DataSourceName="foodpanda.dbo.foodlist" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@food_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="food_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="food_ID" DataSetColumn="food_ID" />
<Mapping SourceColumn="food_name" DataSetColumn="food_name" />
<Mapping SourceColumn="food_price" DataSetColumn="food_price" />
<Mapping SourceColumn="food_quantity" DataSetColumn="food_quantity" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="FoodpandaDataList" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="FoodpandaDataList" msprop:Generator_DataSetName="FoodpandaDataList">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="foodlist" msprop:Generator_RowEvHandlerName="foodlistRowChangeEventHandler" msprop:Generator_RowDeletedName="foodlistRowDeleted" msprop:Generator_RowDeletingName="foodlistRowDeleting" msprop:Generator_RowEvArgName="foodlistRowChangeEvent" msprop:Generator_TablePropName="foodlist" msprop:Generator_RowChangedName="foodlistRowChanged" msprop:Generator_RowChangingName="foodlistRowChanging" msprop:Generator_TableClassName="foodlistDataTable" msprop:Generator_RowClassName="foodlistRow" msprop:Generator_TableVarName="tablefoodlist" msprop:Generator_UserTableName="foodlist">
<xs:complexType>
<xs:sequence>
<xs:element name="food_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="food_ID" msprop:Generator_ColumnPropNameInTable="food_IDColumn" msprop:Generator_ColumnVarNameInTable="columnfood_ID" msprop:Generator_UserColumnName="food_ID" type="xs:int" />
<xs:element name="food_name" msprop:Generator_ColumnPropNameInRow="food_name" msprop:Generator_ColumnPropNameInTable="food_nameColumn" msprop:Generator_ColumnVarNameInTable="columnfood_name" msprop:Generator_UserColumnName="food_name" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="food_price" msprop:Generator_ColumnPropNameInRow="food_price" msprop:Generator_ColumnPropNameInTable="food_priceColumn" msprop:Generator_ColumnVarNameInTable="columnfood_price" msprop:Generator_UserColumnName="food_price" type="xs:int" minOccurs="0" />
<xs:element name="food_quantity" msprop:Generator_ColumnPropNameInRow="food_quantity" msprop:Generator_ColumnPropNameInTable="food_quantityColumn" msprop:Generator_ColumnVarNameInTable="columnfood_quantity" msprop:Generator_UserColumnName="food_quantity" 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:foodlist" />
<xs:field xpath="mstns:food_ID" />
</xs:unique>
</xs:element>
</xs:schema>