BookStoreDataSet.xsd
资源名称:BookStore.rar [点击查看]
上传用户:xyl529207
上传日期:2022-08-03
资源大小:935k
文件大小:92k
源码类别:
行业应用
开发平台:
SQL
- <?xml version="1.0" encoding="utf-8"?>
- <xs:schema id="BookStoreDataSet" targetNamespace="http://tempuri.org/BookStoreDataSet.xsd" xmlns:mstns="http://tempuri.org/BookStoreDataSet.xsd" xmlns="http://tempuri.org/BookStoreDataSet.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="BookStoreConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="BookStoreConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.BookStoreMan.Properties.Settings.GlobalReference.Default.BookStoreConnectionString" Provider="System.Data.SqlClient">
- </Connection>
- </Connections>
- <Tables>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="BookTableAdapter" GeneratorDataComponentClassName="BookTableAdapter" Name="Book" UserDataComponentName="BookTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="BookStoreConnectionString (Settings)" DbObjectName="BookStore.dbo.Book" 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">
- <DeleteCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>DELETE FROM [dbo].[Book] WHERE (([ID] = @Original_ID) AND ([ISBN] = @Original_ISBN) AND ([Name] = @Original_Name) AND ((@IsNull_Author = 1 AND [Author] IS NULL) OR ([Author] = @Original_Author)) AND ((@IsNull_Press = 1 AND [Press] IS NULL) OR ([Press] = @Original_Press)) AND ((@IsNull_PublishDate = 1 AND [PublishDate] IS NULL) OR ([PublishDate] = @Original_PublishDate)) AND ([Price] = @Original_Price) AND ((@IsNull_Pages = 1 AND [Pages] IS NULL) OR ([Pages] = @Original_Pages)) AND ([Barcode] = @Original_Barcode) AND ((@IsNull_CD = 1 AND [CD] IS NULL) OR ([CD] = @Original_CD)) AND ([Storage] = @Original_Storage))</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>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_ISBN" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Author" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Author" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Author" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Author" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Press" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Press" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Press" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Press" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PublishDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PublishDate" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_PublishDate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="PublishDate" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Price" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Price" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Pages" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Pages" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Pages" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Pages" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Barcode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Barcode" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CD" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CD" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_CD" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CD" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Storage" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Storage" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>INSERT INTO [dbo].[Book] ([ISBN], [Name], [Author], [Press], [PublishDate], [Price], [Pages], [Barcode], [CD], [Storage]) VALUES (@ISBN, @Name, @Author, @Press, @PublishDate, @Price, @Pages, @Barcode, @CD, @Storage);
- SELECT ID, ISBN, Name, Author, Press, PublishDate, Price, Pages, Barcode, CD, Storage FROM Book WHERE (ID = SCOPE_IDENTITY())</CommandText>
- <Parameters>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@ISBN" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Author" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Author" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Press" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Press" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PublishDate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="PublishDate" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Price" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Price" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Pages" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Pages" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Barcode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Barcode" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@CD" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CD" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Storage" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Storage" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>SELECT ID, ISBN, Name, Author, Press, PublishDate, Price, Pages, Barcode, CD, Storage FROM dbo.Book</CommandText>
- <Parameters>
- </Parameters>
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>UPDATE [dbo].[Book] SET [ISBN] = @ISBN, [Name] = @Name, [Author] = @Author, [Press] = @Press, [PublishDate] = @PublishDate, [Price] = @Price, [Pages] = @Pages, [Barcode] = @Barcode, [CD] = @CD, [Storage] = @Storage WHERE (([ID] = @Original_ID) AND ([ISBN] = @Original_ISBN) AND ([Name] = @Original_Name) AND ((@IsNull_Author = 1 AND [Author] IS NULL) OR ([Author] = @Original_Author)) AND ((@IsNull_Press = 1 AND [Press] IS NULL) OR ([Press] = @Original_Press)) AND ((@IsNull_PublishDate = 1 AND [PublishDate] IS NULL) OR ([PublishDate] = @Original_PublishDate)) AND ([Price] = @Original_Price) AND ((@IsNull_Pages = 1 AND [Pages] IS NULL) OR ([Pages] = @Original_Pages)) AND ([Barcode] = @Original_Barcode) AND ((@IsNull_CD = 1 AND [CD] IS NULL) OR ([CD] = @Original_CD)) AND ([Storage] = @Original_Storage));
- SELECT ID, ISBN, Name, Author, Press, PublishDate, Price, Pages, Barcode, CD, Storage FROM Book WHERE (ID = @ID)</CommandText>
- <Parameters>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@ISBN" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Author" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Author" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Press" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Press" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PublishDate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="PublishDate" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Price" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Price" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Pages" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Pages" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Barcode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Barcode" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@CD" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CD" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Storage" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Storage" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <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>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_ISBN" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ISBN" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Author" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Author" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Author" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Author" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Press" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Press" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Press" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Press" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PublishDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PublishDate" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_PublishDate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="PublishDate" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Price" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Price" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Pages" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Pages" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Pages" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Pages" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Barcode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Barcode" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CD" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CD" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_CD" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CD" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Storage" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Storage" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BookStore.dbo.Book" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="ID" DataSetColumn="ID" />
- <Mapping SourceColumn="ISBN" DataSetColumn="ISBN" />
- <Mapping SourceColumn="Name" DataSetColumn="Name" />
- <Mapping SourceColumn="Author" DataSetColumn="Author" />
- <Mapping SourceColumn="Press" DataSetColumn="Press" />
- <Mapping SourceColumn="PublishDate" DataSetColumn="PublishDate" />
- <Mapping SourceColumn="Price" DataSetColumn="Price" />
- <Mapping SourceColumn="Pages" DataSetColumn="Pages" />
- <Mapping SourceColumn="Barcode" DataSetColumn="Barcode" />
- <Mapping SourceColumn="CD" DataSetColumn="CD" />
- <Mapping SourceColumn="Storage" DataSetColumn="Storage" />
- </Mappings>
- <Sources>
- </Sources>
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CustomerTableAdapter" GeneratorDataComponentClassName="CustomerTableAdapter" Name="Customer" UserDataComponentName="CustomerTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="BookStoreConnectionString (Settings)" DbObjectName="BookStore.dbo.Customer" 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">
- <DeleteCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>DELETE FROM [dbo].[Customer] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ([Levels] = @Original_Levels) AND ((@IsNull_Gender = 1 AND [Gender] IS NULL) OR ([Gender] = @Original_Gender)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ((@IsNull_Degree = 1 AND [Degree] IS NULL) OR ([Degree] = @Original_Degree)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Telephone = 1 AND [Telephone] IS NULL) OR ([Telephone] = @Original_Telephone)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Score = 1 AND [Score] IS NULL) OR ([Score] = @Original_Score)))</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>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Levels" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Levels" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Gender" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Gender" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthday" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Birthday" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Degree" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Degree" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Degree" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Degree" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Score" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Score" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Score" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Score" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>INSERT INTO [dbo].[Customer] ([Name], [Levels], [Gender], [Birthday], [Degree], [Address], [Telephone], [Email], [Score]) VALUES (@Name, @Levels, @Gender, @Birthday, @Degree, @Address, @Telephone, @Email, @Score);
- SELECT ID, Name, Levels, Gender, Birthday, Degree, Address, Telephone, Email, Score FROM Customer WHERE (ID = SCOPE_IDENTITY())</CommandText>
- <Parameters>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Levels" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Levels" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Gender" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Birthday" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Degree" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Degree" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Score" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Score" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>SELECT ID, Name, Levels, Gender, Birthday, Degree, Address, Telephone, Email, Score FROM dbo.Customer</CommandText>
- <Parameters>
- </Parameters>
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>UPDATE [dbo].[Customer] SET [Name] = @Name, [Levels] = @Levels, [Gender] = @Gender, [Birthday] = @Birthday, [Degree] = @Degree, [Address] = @Address, [Telephone] = @Telephone, [Email] = @Email, [Score] = @Score WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ([Levels] = @Original_Levels) AND ((@IsNull_Gender = 1 AND [Gender] IS NULL) OR ([Gender] = @Original_Gender)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ((@IsNull_Degree = 1 AND [Degree] IS NULL) OR ([Degree] = @Original_Degree)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Telephone = 1 AND [Telephone] IS NULL) OR ([Telephone] = @Original_Telephone)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Score = 1 AND [Score] IS NULL) OR ([Score] = @Original_Score)));
- SELECT ID, Name, Levels, Gender, Birthday, Degree, Address, Telephone, Email, Score FROM Customer WHERE (ID = @ID)</CommandText>
- <Parameters>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Levels" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Levels" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Gender" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Birthday" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Degree" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Degree" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Score" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Score" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <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>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Levels" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Levels" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Gender" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Gender" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Gender" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthday" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Birthday" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Degree" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Degree" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Degree" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Degree" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Score" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Score" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Score" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Score" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BookStore.dbo.Customer" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="ID" DataSetColumn="ID" />
- <Mapping SourceColumn="Name" DataSetColumn="Name" />
- <Mapping SourceColumn="Levels" DataSetColumn="Levels" />
- <Mapping SourceColumn="Gender" DataSetColumn="Gender" />
- <Mapping SourceColumn="Birthday" DataSetColumn="Birthday" />
- <Mapping SourceColumn="Degree" DataSetColumn="Degree" />
- <Mapping SourceColumn="Address" DataSetColumn="Address" />
- <Mapping SourceColumn="Telephone" DataSetColumn="Telephone" />
- <Mapping SourceColumn="Email" DataSetColumn="Email" />
- <Mapping SourceColumn="Score" DataSetColumn="Score" />
- </Mappings>
- <Sources>
- </Sources>
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SellTableAdapter" GeneratorDataComponentClassName="SellTableAdapter" Name="Sell" UserDataComponentName="SellTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="BookStoreConnectionString (Settings)" DbObjectName="BookStore.dbo.Sell" 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">
- <DeleteCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>DELETE FROM [dbo].[Sell] WHERE (([ID] = @Original_ID) AND ((@IsNull_CustomerID = 1 AND [CustomerID] IS NULL) OR ([CustomerID] = @Original_CustomerID)) AND ([Sum] = @Original_Sum) AND ([Time] = @Original_Time))</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>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerID" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CustomerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerID" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Time" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>INSERT INTO [dbo].[Sell] ([CustomerID], [Sum], [Time]) VALUES (@CustomerID, @Sum, @Time);
- SELECT ID, CustomerID, Sum, Time FROM Sell WHERE (ID = SCOPE_IDENTITY())</CommandText>
- <Parameters>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CustomerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Time" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>SELECT ID, CustomerID, Sum, Time FROM dbo.Sell</CommandText>
- <Parameters>
- </Parameters>
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>UPDATE [dbo].[Sell] SET [CustomerID] = @CustomerID, [Sum] = @Sum, [Time] = @Time WHERE (([ID] = @Original_ID) AND ((@IsNull_CustomerID = 1 AND [CustomerID] IS NULL) OR ([CustomerID] = @Original_CustomerID)) AND ([Sum] = @Original_Sum) AND ([Time] = @Original_Time));
- SELECT ID, CustomerID, Sum, Time FROM Sell WHERE (ID = @ID)</CommandText>
- <Parameters>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CustomerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Time" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <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>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerID" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CustomerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerID" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Time" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BookStore.dbo.Sell" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="ID" DataSetColumn="ID" />
- <Mapping SourceColumn="CustomerID" DataSetColumn="CustomerID" />
- <Mapping SourceColumn="Sum" DataSetColumn="Sum" />
- <Mapping SourceColumn="Time" DataSetColumn="Time" />
- </Mappings>
- <Sources>
- </Sources>
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SellItemTableAdapter" GeneratorDataComponentClassName="SellItemTableAdapter" Name="SellItem" UserDataComponentName="SellItemTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="BookStoreConnectionString (Settings)" DbObjectName="BookStore.dbo.SellItem" 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">
- <DeleteCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>DELETE FROM [dbo].[SellItem] WHERE (([ID] = @Original_ID) AND ([SellID] = @Original_SellID) AND ([BookID] = @Original_BookID) AND ([Number] = @Original_Number) AND ([Discount] = @Original_Discount) AND ((@IsNull_Sum = 1 AND [Sum] IS NULL) OR ([Sum] = @Original_Sum)))</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>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SellID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SellID" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_BookID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BookID" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Number" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Number" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Sum" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>INSERT INTO [dbo].[SellItem] ([SellID], [BookID], [Number], [Discount], [Sum]) VALUES (@SellID, @BookID, @Number, @Discount, @Sum);
- SELECT ID, SellID, BookID, Number, Discount, Sum FROM SellItem WHERE (ID = SCOPE_IDENTITY())</CommandText>
- <Parameters>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SellID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SellID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@BookID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BookID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Number" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Number" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>SELECT ID, SellID, BookID, Number, Discount, Sum FROM dbo.SellItem</CommandText>
- <Parameters>
- </Parameters>
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="False">
- <CommandText>UPDATE [dbo].[SellItem] SET [SellID] = @SellID, [BookID] = @BookID, [Number] = @Number, [Discount] = @Discount, [Sum] = @Sum WHERE (([ID] = @Original_ID) AND ([SellID] = @Original_SellID) AND ([BookID] = @Original_BookID) AND ([Number] = @Original_Number) AND ([Discount] = @Original_Discount) AND ((@IsNull_Sum = 1 AND [Sum] IS NULL) OR ([Sum] = @Original_Sum)));
- SELECT ID, SellID, BookID, Number, Discount, Sum FROM SellItem WHERE (ID = @ID)</CommandText>
- <Parameters>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SellID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SellID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@BookID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BookID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Number" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Number" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <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>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SellID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SellID" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_BookID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BookID" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Number" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Number" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Sum" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="True" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Sum" Precision="0" ProviderType="SmallMoney" Scale="0" Size="0" SourceColumn="Sum" SourceColumnNullMapping="False" SourceVersion="Original">
- </Parameter>
- <Parameter AllowDbNull="False" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BookStore.dbo.SellItem" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="ID" DataSetColumn="ID" />
- <Mapping SourceColumn="SellID" DataSetColumn="SellID" />
- <Mapping SourceColumn="BookID" DataSetColumn="BookID" />
- <Mapping SourceColumn="Number" DataSetColumn="Number" />
- <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
- <Mapping SourceColumn="Sum" DataSetColumn="Sum" />
- </Mappings>
- <Sources>
- </Sources>
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="V_BookSellTableAdapter" GeneratorDataComponentClassName="V_BookSellTableAdapter" Name="V_BookSell" UserDataComponentName="V_BookSellTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="BookStoreConnectionString (Settings)" DbObjectName="BookStore.dbo.V_BookSell" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="True">
- <CommandText>SELECT ID, SellID, CustomerID, Time, ISBN, Name, Press, Price, Number, Discount, Sum FROM dbo.V_BookSell</CommandText>
- <Parameters>
- </Parameters>
- </DbCommand>
- </SelectCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="ID" DataSetColumn="ID" />
- <Mapping SourceColumn="CustomerID" DataSetColumn="CustomerID" />
- <Mapping SourceColumn="Time" DataSetColumn="Time" />
- <Mapping SourceColumn="ISBN" DataSetColumn="ISBN" />
- <Mapping SourceColumn="Name" DataSetColumn="Name" />
- <Mapping SourceColumn="Press" DataSetColumn="Press" />
- <Mapping SourceColumn="Price" DataSetColumn="Price" />
- <Mapping SourceColumn="Number" DataSetColumn="Number" />
- <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
- <Mapping SourceColumn="Sum" DataSetColumn="Sum" />
- <Mapping SourceColumn="SellID" DataSetColumn="SellID" />
- </Mappings>
- <Sources>
- </Sources>
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="P_GetSellDetailTableAdapter" GeneratorDataComponentClassName="P_GetSellDetailTableAdapter" Name="P_GetSellDetail" UserDataComponentName="P_GetSellDetailTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="BookStoreConnectionString (Settings)" DbObjectName="BookStore.dbo.P_GetSellDetail" DbObjectType="StoredProcedure" 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">
- <SelectCommand>
- <DbCommand CommandType="StoredProcedure" ModifiedByUser="False">
- <CommandText>dbo.P_GetSellDetail</CommandText>
- <Parameters>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SellID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
- </Parameter>
- </Parameters>
- </DbCommand>
- </SelectCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="BookID" DataSetColumn="BookID" />
- <Mapping SourceColumn="ISBN" DataSetColumn="ISBN" />
- <Mapping SourceColumn="Name" DataSetColumn="Name" />
- <Mapping SourceColumn="Price" DataSetColumn="Price" />
- <Mapping SourceColumn="Number" DataSetColumn="Number" />
- <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
- <Mapping SourceColumn="Sum" DataSetColumn="Sum" />
- </Mappings>
- <Sources>
- </Sources>
- </TableAdapter>
- </Tables>
- <Sources>
- </Sources>
- </DataSource>
- </xs:appinfo>
- </xs:annotation>
- <xs:element name="BookStoreDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="BookStoreDataSet" msprop:Generator_DataSetName="BookStoreDataSet">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Book" msprop:Generator_UserTableName="Book" msprop:Generator_RowDeletedName="BookRowDeleted" msprop:Generator_RowChangedName="BookRowChanged" msprop:Generator_RowClassName="BookRow" msprop:Generator_RowChangingName="BookRowChanging" msprop:Generator_RowEvArgName="BookRowChangeEvent" msprop:Generator_RowEvHandlerName="BookRowChangeEventHandler" msprop:Generator_TableClassName="BookDataTable" msprop:Generator_TableVarName="tableBook" msprop:Generator_RowDeletingName="BookRowDeleting" msprop:Generator_TablePropName="Book">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
- <xs:element name="ISBN" msprop:Generator_UserColumnName="ISBN" msprop:Generator_ColumnPropNameInRow="ISBN" msprop:Generator_ColumnVarNameInTable="columnISBN" msprop:Generator_ColumnPropNameInTable="ISBNColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="256" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Author" msprop:Generator_UserColumnName="Author" msprop:Generator_ColumnPropNameInRow="Author" msprop:Generator_ColumnVarNameInTable="columnAuthor" msprop:Generator_ColumnPropNameInTable="AuthorColumn" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="100" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Press" msprop:Generator_UserColumnName="Press" msprop:Generator_ColumnPropNameInRow="Press" msprop:Generator_ColumnVarNameInTable="columnPress" msprop:Generator_ColumnPropNameInTable="PressColumn" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="50" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="PublishDate" msprop:Generator_UserColumnName="PublishDate" msprop:Generator_ColumnPropNameInRow="PublishDate" msprop:Generator_ColumnVarNameInTable="columnPublishDate" msprop:Generator_ColumnPropNameInTable="PublishDateColumn" type="xs:dateTime" minOccurs="0" />
- <xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" />
- <xs:element name="Pages" msprop:Generator_UserColumnName="Pages" msprop:Generator_ColumnPropNameInRow="Pages" msprop:Generator_ColumnVarNameInTable="columnPages" msprop:Generator_ColumnPropNameInTable="PagesColumn" type="xs:short" minOccurs="0" />
- <xs:element name="Barcode" msprop:Generator_UserColumnName="Barcode" msprop:Generator_ColumnPropNameInRow="Barcode" msprop:Generator_ColumnVarNameInTable="columnBarcode" msprop:Generator_ColumnPropNameInTable="BarcodeColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="13" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="CD" msprop:Generator_UserColumnName="CD" msprop:Generator_ColumnPropNameInRow="CD" msprop:Generator_ColumnVarNameInTable="columnCD" msprop:Generator_ColumnPropNameInTable="CDColumn" type="xs:boolean" minOccurs="0" />
- <xs:element name="Storage" msprop:Generator_UserColumnName="Storage" msprop:Generator_ColumnPropNameInRow="Storage" msprop:Generator_ColumnVarNameInTable="columnStorage" msprop:Generator_ColumnPropNameInTable="StorageColumn" type="xs:int" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Customer" msprop:Generator_UserTableName="Customer" msprop:Generator_RowDeletedName="CustomerRowDeleted" msprop:Generator_RowChangedName="CustomerRowChanged" msprop:Generator_RowClassName="CustomerRow" msprop:Generator_RowChangingName="CustomerRowChanging" msprop:Generator_RowEvArgName="CustomerRowChangeEvent" msprop:Generator_RowEvHandlerName="CustomerRowChangeEventHandler" msprop:Generator_TableClassName="CustomerDataTable" msprop:Generator_TableVarName="tableCustomer" msprop:Generator_RowDeletingName="CustomerRowDeleting" msprop:Generator_TablePropName="Customer">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
- <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Levels" msprop:Generator_UserColumnName="Levels" msprop:Generator_ColumnPropNameInRow="Levels" msprop:Generator_ColumnVarNameInTable="columnLevels" msprop:Generator_ColumnPropNameInTable="LevelsColumn" type="xs:short" />
- <xs:element name="Gender" msprop:Generator_UserColumnName="Gender" msprop:Generator_ColumnPropNameInRow="Gender" msprop:Generator_ColumnVarNameInTable="columnGender" msprop:Generator_ColumnPropNameInTable="GenderColumn" type="xs:boolean" minOccurs="0" />
- <xs:element name="Birthday" msprop:Generator_UserColumnName="Birthday" msprop:Generator_ColumnPropNameInRow="Birthday" msprop:Generator_ColumnVarNameInTable="columnBirthday" msprop:Generator_ColumnPropNameInTable="BirthdayColumn" type="xs:dateTime" minOccurs="0" />
- <xs:element name="Degree" msprop:Generator_UserColumnName="Degree" msprop:Generator_ColumnPropNameInRow="Degree" msprop:Generator_ColumnVarNameInTable="columnDegree" msprop:Generator_ColumnPropNameInTable="DegreeColumn" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Address" msprop:Generator_UserColumnName="Address" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInTable="AddressColumn" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="256" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Telephone" msprop:Generator_UserColumnName="Telephone" msprop:Generator_ColumnPropNameInRow="Telephone" msprop:Generator_ColumnVarNameInTable="columnTelephone" msprop:Generator_ColumnPropNameInTable="TelephoneColumn" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="50" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Email" msprop:Generator_UserColumnName="Email" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInTable="EmailColumn" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="50" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Score" msprop:Generator_UserColumnName="Score" msprop:Generator_ColumnPropNameInRow="Score" msprop:Generator_ColumnVarNameInTable="columnScore" msprop:Generator_ColumnPropNameInTable="ScoreColumn" type="xs:int" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Sell" msprop:Generator_UserTableName="Sell" msprop:Generator_RowDeletedName="SellRowDeleted" msprop:Generator_RowChangedName="SellRowChanged" msprop:Generator_RowClassName="SellRow" msprop:Generator_RowChangingName="SellRowChanging" msprop:Generator_RowEvArgName="SellRowChangeEvent" msprop:Generator_RowEvHandlerName="SellRowChangeEventHandler" msprop:Generator_TableClassName="SellDataTable" msprop:Generator_TableVarName="tableSell" msprop:Generator_RowDeletingName="SellRowDeleting" msprop:Generator_TablePropName="Sell">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
- <xs:element name="CustomerID" msprop:Generator_UserColumnName="CustomerID" msprop:Generator_ColumnPropNameInRow="CustomerID" msprop:Generator_ColumnVarNameInTable="columnCustomerID" msprop:Generator_ColumnPropNameInTable="CustomerIDColumn" type="xs:int" minOccurs="0" />
- <xs:element name="Sum" msprop:Generator_UserColumnName="Sum" msprop:Generator_ColumnPropNameInRow="Sum" msprop:Generator_ColumnVarNameInTable="columnSum" msprop:Generator_ColumnPropNameInTable="SumColumn" type="xs:decimal" />
- <xs:element name="Time" msprop:Generator_UserColumnName="Time" msprop:Generator_ColumnPropNameInRow="Time" msprop:Generator_ColumnVarNameInTable="columnTime" msprop:Generator_ColumnPropNameInTable="TimeColumn" type="xs:dateTime" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="SellItem" msprop:Generator_UserTableName="SellItem" msprop:Generator_RowDeletedName="SellItemRowDeleted" msprop:Generator_RowChangedName="SellItemRowChanged" msprop:Generator_RowClassName="SellItemRow" msprop:Generator_RowChangingName="SellItemRowChanging" msprop:Generator_RowEvArgName="SellItemRowChangeEvent" msprop:Generator_RowEvHandlerName="SellItemRowChangeEventHandler" msprop:Generator_TableClassName="SellItemDataTable" msprop:Generator_TableVarName="tableSellItem" msprop:Generator_RowDeletingName="SellItemRowDeleting" msprop:Generator_TablePropName="SellItem">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
- <xs:element name="SellID" msprop:Generator_UserColumnName="SellID" msprop:Generator_ColumnPropNameInRow="SellID" msprop:Generator_ColumnVarNameInTable="columnSellID" msprop:Generator_ColumnPropNameInTable="SellIDColumn" type="xs:int" />
- <xs:element name="BookID" msprop:Generator_UserColumnName="BookID" msprop:Generator_ColumnPropNameInRow="BookID" msprop:Generator_ColumnVarNameInTable="columnBookID" msprop:Generator_ColumnPropNameInTable="BookIDColumn" type="xs:int" />
- <xs:element name="Number" msprop:Generator_UserColumnName="Number" msprop:Generator_ColumnPropNameInRow="Number" msprop:Generator_ColumnVarNameInTable="columnNumber" msprop:Generator_ColumnPropNameInTable="NumberColumn" type="xs:int" />
- <xs:element name="Discount" msprop:Generator_UserColumnName="Discount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" type="xs:double" />
- <xs:element name="Sum" msprop:Generator_UserColumnName="Sum" msprop:Generator_ColumnPropNameInRow="Sum" msprop:Generator_ColumnVarNameInTable="columnSum" msprop:Generator_ColumnPropNameInTable="SumColumn" type="xs:decimal" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="V_BookSell" msprop:Generator_UserTableName="V_BookSell" msprop:Generator_RowDeletedName="V_BookSellRowDeleted" msprop:Generator_RowChangedName="V_BookSellRowChanged" msprop:Generator_RowClassName="V_BookSellRow" msprop:Generator_RowChangingName="V_BookSellRowChanging" msprop:Generator_RowEvArgName="V_BookSellRowChangeEvent" msprop:Generator_RowEvHandlerName="V_BookSellRowChangeEventHandler" msprop:Generator_TableClassName="V_BookSellDataTable" msprop:Generator_TableVarName="tableV_BookSell" msprop:Generator_RowDeletingName="V_BookSellRowDeleting" msprop:Generator_TablePropName="V_BookSell">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="ID" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
- <xs:element name="CustomerID" msprop:Generator_UserColumnName="CustomerID" msprop:Generator_ColumnPropNameInRow="CustomerID" msprop:Generator_ColumnVarNameInTable="columnCustomerID" msprop:Generator_ColumnPropNameInTable="CustomerIDColumn" type="xs:int" minOccurs="0" />
- <xs:element name="Time" msprop:Generator_UserColumnName="Time" msprop:Generator_ColumnPropNameInRow="Time" msprop:Generator_ColumnVarNameInTable="columnTime" msprop:Generator_ColumnPropNameInTable="TimeColumn" type="xs:dateTime" />
- <xs:element name="ISBN" msprop:Generator_UserColumnName="ISBN" msprop:Generator_ColumnPropNameInRow="ISBN" msprop:Generator_ColumnVarNameInTable="columnISBN" msprop:Generator_ColumnPropNameInTable="ISBNColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="256" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Press" msprop:Generator_UserColumnName="Press" msprop:Generator_ColumnPropNameInRow="Press" msprop:Generator_ColumnVarNameInTable="columnPress" msprop:Generator_ColumnPropNameInTable="PressColumn" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="50" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" />
- <xs:element name="Number" msprop:Generator_UserColumnName="Number" msprop:Generator_ColumnPropNameInRow="Number" msprop:Generator_ColumnVarNameInTable="columnNumber" msprop:Generator_ColumnPropNameInTable="NumberColumn" type="xs:int" />
- <xs:element name="Discount" msprop:Generator_UserColumnName="Discount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" type="xs:double" />
- <xs:element name="Sum" msprop:Generator_UserColumnName="Sum" msprop:Generator_ColumnPropNameInRow="Sum" msprop:Generator_ColumnVarNameInTable="columnSum" msprop:Generator_ColumnPropNameInTable="SumColumn" type="xs:decimal" minOccurs="0" />
- <xs:element name="SellID" msprop:Generator_UserColumnName="SellID" msprop:Generator_ColumnVarNameInTable="columnSellID" msprop:Generator_ColumnPropNameInRow="SellID" msprop:Generator_ColumnPropNameInTable="SellIDColumn" type="xs:int" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="P_GetSellDetail" msprop:Generator_UserTableName="P_GetSellDetail" msprop:Generator_RowDeletedName="P_GetSellDetailRowDeleted" msprop:Generator_RowChangedName="P_GetSellDetailRowChanged" msprop:Generator_RowClassName="P_GetSellDetailRow" msprop:Generator_RowChangingName="P_GetSellDetailRowChanging" msprop:Generator_RowEvArgName="P_GetSellDetailRowChangeEvent" msprop:Generator_RowEvHandlerName="P_GetSellDetailRowChangeEventHandler" msprop:Generator_TableClassName="P_GetSellDetailDataTable" msprop:Generator_TableVarName="tableP_GetSellDetail" msprop:Generator_RowDeletingName="P_GetSellDetailRowDeleting" msprop:Generator_TablePropName="P_GetSellDetail">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="BookID" msprop:Generator_UserColumnName="BookID" msprop:Generator_ColumnPropNameInRow="BookID" msprop:Generator_ColumnVarNameInTable="columnBookID" msprop:Generator_ColumnPropNameInTable="BookIDColumn" type="xs:int" />
- <xs:element name="ISBN" msprop:Generator_UserColumnName="ISBN" msprop:Generator_ColumnPropNameInRow="ISBN" msprop:Generator_ColumnVarNameInTable="columnISBN" msprop:Generator_ColumnPropNameInTable="ISBNColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="256" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" />
- <xs:element name="Number" msprop:Generator_UserColumnName="Number" msprop:Generator_ColumnPropNameInRow="Number" msprop:Generator_ColumnVarNameInTable="columnNumber" msprop:Generator_ColumnPropNameInTable="NumberColumn" type="xs:int" />
- <xs:element name="Discount" msprop:Generator_UserColumnName="Discount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" type="xs:double" />
- <xs:element name="Sum" msprop:Generator_UserColumnName="Sum" msprop:Generator_ColumnPropNameInRow="Sum" msprop:Generator_ColumnVarNameInTable="columnSum" msprop:Generator_ColumnPropNameInTable="SumColumn" type="xs:decimal" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:choice>
- </xs:complexType>
- <xs:unique name="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Book" />
- <xs:field xpath="mstns:ID" />
- </xs:unique>
- <xs:unique name="Customer_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Customer" />
- <xs:field xpath="mstns:ID" />
- </xs:unique>
- <xs:unique name="Sell_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Sell" />
- <xs:field xpath="mstns:ID" />
- </xs:unique>
- <xs:unique name="SellItem_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:SellItem" />
- <xs:field xpath="mstns:ID" />
- </xs:unique>
- <xs:unique name="V_BookSell_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:V_BookSell" />
- <xs:field xpath="mstns:ID" />
- </xs:unique>
- </xs:element>
- <xs:annotation>
- <xs:appinfo>
- <msdata:Relationship name="FK_SellItem_Book" msdata:parent="Book" msdata:child="SellItem" msdata:parentkey="ID" msdata:childkey="BookID" msprop:Generator_UserRelationName="FK_SellItem_Book" msprop:Generator_RelationVarName="relationFK_SellItem_Book" msprop:Generator_UserChildTable="SellItem" msprop:Generator_UserParentTable="Book" msprop:Generator_ParentPropName="BookRow" msprop:Generator_ChildPropName="GetSellItemRows" />
- <msdata:Relationship name="FK_SellItem_Sell" msdata:parent="Sell" msdata:child="SellItem" msdata:parentkey="ID" msdata:childkey="SellID" msprop:Generator_UserRelationName="FK_SellItem_Sell" msprop:Generator_RelationVarName="relationFK_SellItem_Sell" msprop:Generator_UserChildTable="SellItem" msprop:Generator_UserParentTable="Sell" msprop:Generator_ParentPropName="SellRow" msprop:Generator_ChildPropName="GetSellItemRows" />
- <msdata:Relationship name="Customer_Sell" msdata:parent="Customer" msdata:child="Sell" msdata:parentkey="ID" msdata:childkey="CustomerID" msprop:Generator_UserRelationName="Customer_Sell" msprop:Generator_RelationVarName="relationCustomer_Sell" msprop:Generator_UserChildTable="Sell" msprop:Generator_UserParentTable="Customer" msprop:Generator_ParentPropName="CustomerRow" msprop:Generator_ChildPropName="GetSellRows" />
- </xs:appinfo>
- </xs:annotation>
- </xs:schema>