-
Notifications
You must be signed in to change notification settings - Fork 0
/
fOOD.xsd
99 lines (99 loc) · 11.6 KB
/
fOOD.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="fOOD" targetNamespace="http://tempuri.org/fOOD.xsd" xmlns:mstns="http://tempuri.org/fOOD.xsd" xmlns="http://tempuri.org/fOOD.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="categorycon" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="categorycon (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WindowsFormsApp2.Properties.Settings.GlobalReference.Default.categorycon" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FooditemsTableAdapter" GeneratorDataComponentClassName="FooditemsTableAdapter" Name="Fooditems" UserDataComponentName="FooditemsTableAdapter">
<MainSource>
<DbSource ConnectionRef="categorycon (Settings)" DbObjectName="Restaurent.dbo.Fooditems" 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].[Fooditems] WHERE (([food_id] = @Original_food_id) AND ([food_Name] = @Original_food_Name) AND ([food_price] = @Original_food_price) AND ([food_category] = @Original_food_category))</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="false" 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="false" 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="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_category" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_category" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[Fooditems] ([food_id], [food_Name], [food_price], [food_category]) VALUES (@food_id, @food_Name, @food_price, @food_category);
SELECT food_id, food_Name, food_price, food_category FROM Fooditems WHERE (food_id = @food_id)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_id" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" 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="false" 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="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_category" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_category" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT food_id, food_Name, food_price, food_category FROM dbo.Fooditems</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[Fooditems] SET [food_id] = @food_id, [food_Name] = @food_Name, [food_price] = @food_price, [food_category] = @food_category WHERE (([food_id] = @Original_food_id) AND ([food_Name] = @Original_food_Name) AND ([food_price] = @Original_food_price) AND ([food_category] = @Original_food_category));
SELECT food_id, food_Name, food_price, food_category FROM Fooditems WHERE (food_id = @food_id)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_id" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" 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="false" 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="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@food_category" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_category" 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="false" 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="false" 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="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_food_category" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="food_category" SourceColumnNullMapping="false" SourceVersion="Original" />
</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_category" DataSetColumn="food_category" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="fOOD" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="fOOD" msprop:Generator_UserDSName="fOOD">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Fooditems" msprop:Generator_TableClassName="FooditemsDataTable" msprop:Generator_TableVarName="tableFooditems" msprop:Generator_TablePropName="Fooditems" msprop:Generator_RowDeletingName="FooditemsRowDeleting" msprop:Generator_RowChangingName="FooditemsRowChanging" msprop:Generator_RowEvHandlerName="FooditemsRowChangeEventHandler" msprop:Generator_RowDeletedName="FooditemsRowDeleted" msprop:Generator_UserTableName="Fooditems" msprop:Generator_RowChangedName="FooditemsRowChanged" msprop:Generator_RowEvArgName="FooditemsRowChangeEvent" msprop:Generator_RowClassName="FooditemsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="food_id" msprop:Generator_ColumnVarNameInTable="columnfood_id" msprop:Generator_ColumnPropNameInRow="food_id" msprop:Generator_ColumnPropNameInTable="food_idColumn" msprop:Generator_UserColumnName="food_id" type="xs:int" />
<xs:element name="food_Name" msprop:Generator_ColumnVarNameInTable="columnfood_Name" msprop:Generator_ColumnPropNameInRow="food_Name" msprop:Generator_ColumnPropNameInTable="food_NameColumn" msprop:Generator_UserColumnName="food_Name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="food_price" msprop:Generator_ColumnVarNameInTable="columnfood_price" msprop:Generator_ColumnPropNameInRow="food_price" msprop:Generator_ColumnPropNameInTable="food_priceColumn" msprop:Generator_UserColumnName="food_price" type="xs:int" />
<xs:element name="food_category" msprop:Generator_ColumnVarNameInTable="columnfood_category" msprop:Generator_ColumnPropNameInRow="food_category" msprop:Generator_ColumnPropNameInTable="food_categoryColumn" msprop:Generator_UserColumnName="food_category" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Fooditems" />
<xs:field xpath="mstns:food_id" />
</xs:unique>
</xs:element>
</xs:schema>