-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmtsDataSet1.xsd
88 lines (88 loc) · 9.24 KB
/
mtsDataSet1.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="mtsDataSet1" targetNamespace="http://tempuri.org/mtsDataSet1.xsd" xmlns:mstns="http://tempuri.org/mtsDataSet1.xsd" xmlns="http://tempuri.org/mtsDataSet1.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="mtsConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="mtsConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.VideoCaptureDemo.Properties.Settings.GlobalReference.Default.mtsConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SourceDestinationsTableAdapter" GeneratorDataComponentClassName="SourceDestinationsTableAdapter" Name="SourceDestinations" UserDataComponentName="SourceDestinationsTableAdapter">
<MainSource>
<DbSource ConnectionRef="mtsConnectionString (Settings)" DbObjectName="mts.dbo.SourceDestinations" 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].[SourceDestinations] WHERE (([Id] = @Original_Id) AND ((@IsNull_SourceDestination = 1 AND [SourceDestination] IS NULL) OR ([SourceDestination] = @Original_SourceDestination)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SourceDestination" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SourceDestination" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SourceDestination" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SourceDestination" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[SourceDestinations] ([SourceDestination]) VALUES (@SourceDestination);
SELECT Id, SourceDestination FROM SourceDestinations WHERE (Id = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SourceDestination" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SourceDestination" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT Id, SourceDestination FROM dbo.SourceDestinations</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[SourceDestinations] SET [SourceDestination] = @SourceDestination WHERE (([Id] = @Original_Id) AND ((@IsNull_SourceDestination = 1 AND [SourceDestination] IS NULL) OR ([SourceDestination] = @Original_SourceDestination)));
SELECT Id, SourceDestination FROM SourceDestinations WHERE (Id = @Id)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SourceDestination" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SourceDestination" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SourceDestination" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SourceDestination" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SourceDestination" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SourceDestination" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="mts.dbo.SourceDestinations" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Id" DataSetColumn="Id" />
<Mapping SourceColumn="SourceDestination" DataSetColumn="SourceDestination" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="mtsDataSet1" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="mtsDataSet1" msprop:Generator_UserDSName="mtsDataSet1">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="SourceDestinations" msprop:Generator_TableClassName="SourceDestinationsDataTable" msprop:Generator_TableVarName="tableSourceDestinations" msprop:Generator_TablePropName="SourceDestinations" msprop:Generator_RowDeletingName="SourceDestinationsRowDeleting" msprop:Generator_RowChangingName="SourceDestinationsRowChanging" msprop:Generator_RowEvHandlerName="SourceDestinationsRowChangeEventHandler" msprop:Generator_RowDeletedName="SourceDestinationsRowDeleted" msprop:Generator_UserTableName="SourceDestinations" msprop:Generator_RowChangedName="SourceDestinationsRowChanged" msprop:Generator_RowEvArgName="SourceDestinationsRowChangeEvent" msprop:Generator_RowClassName="SourceDestinationsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="Id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" />
<xs:element name="SourceDestination" msprop:Generator_ColumnVarNameInTable="columnSourceDestination" msprop:Generator_ColumnPropNameInRow="SourceDestination" msprop:Generator_ColumnPropNameInTable="SourceDestinationColumn" msprop:Generator_UserColumnName="SourceDestination" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</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:SourceDestinations" />
<xs:field xpath="mstns:Id" />
</xs:unique>
</xs:element>
</xs:schema>