Mercurial > pub > bltoolkit
comparison UnitTests/CS/DataAccess/PersonDataSet2.xsd @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <xs:schema id="PersonDataSet2" targetNamespace="http://tempuri.org/PersonDataSet2.xsd" xmlns:mstns="http://tempuri.org/PersonDataSet2.xsd" xmlns="http://tempuri.org/PersonDataSet2.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"> | |
3 <xs:annotation> | |
4 <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> | |
5 <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> | |
6 <Connections> | |
7 <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="BLToolkitDataConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BLToolkitDataConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.UnitTests.CS.Properties.Settings.GlobalReference.Default.BLToolkitDataConnectionString" Provider="System.Data.SqlClient" /> | |
8 </Connections> | |
9 <Tables> | |
10 <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PersonTableAdapter" GeneratorDataComponentClassName="PersonTableAdapter" Name="Person" UserDataComponentName="PersonTableAdapter"> | |
11 <MainSource> | |
12 <DbSource ConnectionRef="BLToolkitDataConnectionString (Settings)" DbObjectName="BLToolkitData.dbo.Person" 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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> | |
13 <DeleteCommand> | |
14 <DbCommand CommandType="Text" ModifiedByUser="false"> | |
15 <CommandText>DELETE FROM [dbo].[Person] WHERE (([PersonID] = @Original_PersonID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_MiddleName = 1 AND [MiddleName] IS NULL) OR ([MiddleName] = @Original_MiddleName)) AND ([Gender] = @Original_Gender))</CommandText> | |
16 <Parameters> | |
17 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PersonID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PersonID" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
18 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
19 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
20 <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MiddleName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MiddleName" SourceColumnNullMapping="true" SourceVersion="Original" /> | |
21 <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MiddleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MiddleName" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
22 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Gender" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
23 </Parameters> | |
24 </DbCommand> | |
25 </DeleteCommand> | |
26 <InsertCommand> | |
27 <DbCommand CommandType="Text" ModifiedByUser="false"> | |
28 <CommandText>INSERT INTO [dbo].[Person] ([FirstName], [LastName], [MiddleName], [Gender]) VALUES (@FirstName, @LastName, @MiddleName, @Gender); | |
29 SELECT PersonID, FirstName, LastName, MiddleName, Gender FROM Person WHERE (PersonID = SCOPE_IDENTITY())</CommandText> | |
30 <Parameters> | |
31 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
32 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
33 <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MiddleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MiddleName" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
34 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Gender" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
35 </Parameters> | |
36 </DbCommand> | |
37 </InsertCommand> | |
38 <SelectCommand> | |
39 <DbCommand CommandType="Text" ModifiedByUser="false"> | |
40 <CommandText>SELECT PersonID, FirstName, LastName, MiddleName, Gender FROM dbo.Person</CommandText> | |
41 <Parameters /> | |
42 </DbCommand> | |
43 </SelectCommand> | |
44 <UpdateCommand> | |
45 <DbCommand CommandType="Text" ModifiedByUser="false"> | |
46 <CommandText>UPDATE [dbo].[Person] SET [FirstName] = @FirstName, [LastName] = @LastName, [MiddleName] = @MiddleName, [Gender] = @Gender WHERE (([PersonID] = @Original_PersonID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_MiddleName = 1 AND [MiddleName] IS NULL) OR ([MiddleName] = @Original_MiddleName)) AND ([Gender] = @Original_Gender)); | |
47 SELECT PersonID, FirstName, LastName, MiddleName, Gender FROM Person WHERE (PersonID = @PersonID)</CommandText> | |
48 <Parameters> | |
49 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
50 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
51 <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MiddleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MiddleName" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
52 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Gender" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
53 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PersonID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PersonID" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
54 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
55 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
56 <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MiddleName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MiddleName" SourceColumnNullMapping="true" SourceVersion="Original" /> | |
57 <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MiddleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MiddleName" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
58 <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_Gender" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="false" SourceVersion="Original" /> | |
59 <Parameter AllowDbNull="false" AutogeneratedName="PersonID" ColumnName="PersonID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PersonID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PersonID" SourceColumnNullMapping="false" SourceVersion="Current" /> | |
60 </Parameters> | |
61 </DbCommand> | |
62 </UpdateCommand> | |
63 </DbSource> | |
64 </MainSource> | |
65 <Mappings> | |
66 <Mapping SourceColumn="PersonID" DataSetColumn="PersonID" /> | |
67 <Mapping SourceColumn="FirstName" DataSetColumn="FirstName" /> | |
68 <Mapping SourceColumn="LastName" DataSetColumn="LastName" /> | |
69 <Mapping SourceColumn="MiddleName" DataSetColumn="MiddleName" /> | |
70 <Mapping SourceColumn="Gender" DataSetColumn="Gender" /> | |
71 </Mappings> | |
72 <Sources /> | |
73 </TableAdapter> | |
74 </Tables> | |
75 <Sources /> | |
76 </DataSource> | |
77 </xs:appinfo> | |
78 </xs:annotation> | |
79 <xs:element name="PersonDataSet2" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="PersonDataSet2" msprop:Generator_DataSetName="PersonDataSet2"> | |
80 <xs:complexType> | |
81 <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
82 <xs:element name="Person" msprop:Generator_UserTableName="Person" msprop:Generator_RowDeletedName="PersonRowDeleted" msprop:Generator_RowChangedName="PersonRowChanged" msprop:Generator_RowClassName="PersonRow" msprop:Generator_RowChangingName="PersonRowChanging" msprop:Generator_RowEvArgName="PersonRowChangeEvent" msprop:Generator_RowEvHandlerName="PersonRowChangeEventHandler" msprop:Generator_TableClassName="PersonDataTable" msprop:Generator_TableVarName="tablePerson" msprop:Generator_RowDeletingName="PersonRowDeleting" msprop:Generator_TablePropName="Person"> | |
83 <xs:complexType> | |
84 <xs:sequence> | |
85 <xs:element name="PersonID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="PersonID" msprop:Generator_ColumnVarNameInTable="columnPersonID" msprop:Generator_ColumnPropNameInRow="PersonID" msprop:Generator_ColumnPropNameInTable="PersonIDColumn" type="xs:int" /> | |
86 <xs:element name="FirstName" msprop:Generator_UserColumnName="FirstName" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ColumnPropNameInTable="FirstNameColumn"> | |
87 <xs:simpleType> | |
88 <xs:restriction base="xs:string"> | |
89 <xs:maxLength value="50" /> | |
90 </xs:restriction> | |
91 </xs:simpleType> | |
92 </xs:element> | |
93 <xs:element name="LastName" msprop:Generator_UserColumnName="LastName" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ColumnPropNameInTable="LastNameColumn"> | |
94 <xs:simpleType> | |
95 <xs:restriction base="xs:string"> | |
96 <xs:maxLength value="50" /> | |
97 </xs:restriction> | |
98 </xs:simpleType> | |
99 </xs:element> | |
100 <xs:element name="MiddleName" msprop:Generator_UserColumnName="MiddleName" msprop:Generator_ColumnVarNameInTable="columnMiddleName" msprop:Generator_ColumnPropNameInRow="MiddleName" msprop:Generator_ColumnPropNameInTable="MiddleNameColumn" minOccurs="0"> | |
101 <xs:simpleType> | |
102 <xs:restriction base="xs:string"> | |
103 <xs:maxLength value="50" /> | |
104 </xs:restriction> | |
105 </xs:simpleType> | |
106 </xs:element> | |
107 <xs:element name="Gender" msprop:Generator_UserColumnName="Gender" msprop:Generator_ColumnVarNameInTable="columnGender" msprop:Generator_ColumnPropNameInRow="Gender" msprop:Generator_ColumnPropNameInTable="GenderColumn"> | |
108 <xs:simpleType> | |
109 <xs:restriction base="xs:string"> | |
110 <xs:maxLength value="1" /> | |
111 </xs:restriction> | |
112 </xs:simpleType> | |
113 </xs:element> | |
114 </xs:sequence> | |
115 </xs:complexType> | |
116 </xs:element> | |
117 </xs:choice> | |
118 </xs:complexType> | |
119 <xs:unique name="Constraint1" msdata:PrimaryKey="true"> | |
120 <xs:selector xpath=".//mstns:Person" /> | |
121 <xs:field xpath="mstns:PersonID" /> | |
122 </xs:unique> | |
123 </xs:element> | |
124 </xs:schema> |