-
Notifications
You must be signed in to change notification settings - Fork 1
/
TermProjectDBDataSet1.xsd
86 lines (86 loc) · 8.36 KB
/
TermProjectDBDataSet1.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TermProjectDBDataSet1" targetNamespace="http://tempuri.org/TermProjectDBDataSet1.xsd" xmlns:mstns="http://tempuri.org/TermProjectDBDataSet1.xsd" xmlns="http://tempuri.org/TermProjectDBDataSet1.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="TermProjectDBConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TermProjectDBConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.TermProjectDB.Properties.Settings.GlobalReference.Default.TermProjectDBConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PaymentMethodTableAdapter" GeneratorDataComponentClassName="PaymentMethodTableAdapter" Name="PaymentMethod" UserDataComponentName="PaymentMethodTableAdapter">
<MainSource>
<DbSource ConnectionRef="TermProjectDBConnectionString (Settings)" DbObjectName="TermProjectDB.dbo.PaymentMethod" 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].[PaymentMethod] WHERE (([PaymentID] = @Original_PaymentID) AND ([PmntType] = @Original_PmntType))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PaymentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PaymentID" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PmntType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PmntType" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[PaymentMethod] ([PmntType]) VALUES (@PmntType);
SELECT PaymentID, PmntType FROM PaymentMethod WHERE (PaymentID = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PmntType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PmntType" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT PaymentID, PmntType FROM dbo.PaymentMethod</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[PaymentMethod] SET [PmntType] = @PmntType WHERE (([PaymentID] = @Original_PaymentID) AND ([PmntType] = @Original_PmntType));
SELECT PaymentID, PmntType FROM PaymentMethod WHERE (PaymentID = @PaymentID)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PmntType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PmntType" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PaymentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PaymentID" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PmntType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PmntType" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="PaymentID" ColumnName="PaymentID" DataSourceName="TermProjectDB.dbo.PaymentMethod" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PaymentID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PaymentID" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="PaymentID" DataSetColumn="PaymentID" />
<Mapping SourceColumn="PmntType" DataSetColumn="PmntType" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="TermProjectDBDataSet1" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="TermProjectDBDataSet1" msprop:Generator_UserDSName="TermProjectDBDataSet1">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="PaymentMethod" msprop:Generator_TableClassName="PaymentMethodDataTable" msprop:Generator_TableVarName="tablePaymentMethod" msprop:Generator_TablePropName="PaymentMethod" msprop:Generator_RowDeletingName="PaymentMethodRowDeleting" msprop:Generator_RowChangingName="PaymentMethodRowChanging" msprop:Generator_RowEvHandlerName="PaymentMethodRowChangeEventHandler" msprop:Generator_RowDeletedName="PaymentMethodRowDeleted" msprop:Generator_UserTableName="PaymentMethod" msprop:Generator_RowChangedName="PaymentMethodRowChanged" msprop:Generator_RowEvArgName="PaymentMethodRowChangeEvent" msprop:Generator_RowClassName="PaymentMethodRow">
<xs:complexType>
<xs:sequence>
<xs:element name="PaymentID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnPaymentID" msprop:Generator_ColumnPropNameInRow="PaymentID" msprop:Generator_ColumnPropNameInTable="PaymentIDColumn" msprop:Generator_UserColumnName="PaymentID" type="xs:int" />
<xs:element name="PmntType" msprop:Generator_ColumnVarNameInTable="columnPmntType" msprop:Generator_ColumnPropNameInRow="PmntType" msprop:Generator_ColumnPropNameInTable="PmntTypeColumn" msprop:Generator_UserColumnName="PmntType">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</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:PaymentMethod" />
<xs:field xpath="mstns:PaymentID" />
</xs:unique>
</xs:element>
</xs:schema>