Files
duplicati/Duplicati/Scheduler/Monitor.SQL/SQLHistoryDataSet.xsd
T

152 lines
19 KiB
XML
Raw Normal View History

2011-09-10 12:06:11 +00:00
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="SQLHistoryDataSet" targetNamespace="http://tempuri.org/SQLHistoryDataSet.xsd" xmlns:mstns="http://tempuri.org/SQLHistoryDataSet.xsd" xmlns="http://tempuri.org/SQLHistoryDataSet.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="BackupsConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BackupsConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Duplicati.Scheduler.Monitor.SQL.Properties.Settings.GlobalReference.Default.BackupsConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HistoryTableAdapter" GeneratorDataComponentClassName="HistoryTableAdapter" Name="History" UserDataComponentName="HistoryTableAdapter">
<MainSource>
<DbSource ConnectionRef="BackupsConnectionString (Settings)" DbObjectName="Backups.dbo.History" 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].[History] WHERE (([UserName] = @Original_UserName) AND ([MachineName] = @Original_MachineName) AND ([EntryType] = @Original_EntryType) AND ([ModificationDate] = @Original_ModificationDate))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MachineName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MachineName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_EntryType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EntryType" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ModificationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ModificationDate" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[History] ([UserName], [MachineName], [EntryType], [ModificationDate], [XmlContent]) VALUES (@UserName, @MachineName, @EntryType, @ModificationDate, @XmlContent);
SELECT UserName, MachineName, EntryType, ModificationDate, XmlContent FROM History WHERE (EntryType = @EntryType) AND (MachineName = @MachineName) AND (ModificationDate = @ModificationDate) AND (UserName = @UserName)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MachineName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MachineName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EntryType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EntryType" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ModificationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ModificationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Xml" Direction="Input" ParameterName="@XmlContent" Precision="0" ProviderType="Xml" Scale="0" Size="0" SourceColumn="XmlContent" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT UserName, MachineName, EntryType, ModificationDate, XmlContent FROM dbo.History</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[History] SET [UserName] = @UserName, [MachineName] = @MachineName, [EntryType] = @EntryType, [ModificationDate] = @ModificationDate, [XmlContent] = @XmlContent WHERE (([UserName] = @Original_UserName) AND ([MachineName] = @Original_MachineName) AND ([EntryType] = @Original_EntryType) AND ([ModificationDate] = @Original_ModificationDate));
SELECT UserName, MachineName, EntryType, ModificationDate, XmlContent FROM History WHERE (EntryType = @EntryType) AND (MachineName = @MachineName) AND (ModificationDate = @ModificationDate) AND (UserName = @UserName)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MachineName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MachineName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EntryType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EntryType" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ModificationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ModificationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Xml" Direction="Input" ParameterName="@XmlContent" Precision="0" ProviderType="Xml" Scale="0" Size="0" SourceColumn="XmlContent" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MachineName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MachineName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_EntryType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EntryType" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ModificationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ModificationDate" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="UserName" DataSetColumn="UserName" />
<Mapping SourceColumn="MachineName" DataSetColumn="MachineName" />
<Mapping SourceColumn="EntryType" DataSetColumn="EntryType" />
<Mapping SourceColumn="ModificationDate" DataSetColumn="ModificationDate" />
<Mapping SourceColumn="XmlContent" DataSetColumn="XmlContent" />
</Mappings>
<Sources>
<DbSource ConnectionRef="BackupsConnectionString (Settings)" DbObjectName="Backups.dbo.History" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT UserName, MachineName, EntryType, ModificationDate, XmlContent FROM dbo.History
WHERE (UserName = @aUserName) AND (MachineName = @aMachineName) AND (EntryType = @aEntryType) AND (ModificationDate = @aModificationDate)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="aUserName" ColumnName="UserName" DataSourceName="Backups.dbo.History" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@aUserName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="aMachineName" ColumnName="MachineName" DataSourceName="Backups.dbo.History" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@aMachineName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="MachineName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="aEntryType" ColumnName="EntryType" DataSourceName="Backups.dbo.History" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@aEntryType" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="EntryType" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="aModificationDate" ColumnName="ModificationDate" DataSourceName="Backups.dbo.History" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@aModificationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="ModificationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="BackupsConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="LatestQuery" Modifier="Public" Name="LatestQuery" QueryType="Scalar" ScalarCallRetval="System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="LatestQuery">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT MAX(ModificationDate) FROM History
WHERE (UserName = @aUserName) AND (MachineName = @aMachineName) AND (EntryType = @aEntryType)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="aUserName" ColumnName="UserName" DataSourceName="Backups.dbo.History" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@aUserName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="aMachineName" ColumnName="MachineName" DataSourceName="Backups.dbo.History" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@aMachineName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="MachineName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="aEntryType" ColumnName="EntryType" DataSourceName="Backups.dbo.History" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@aEntryType" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="EntryType" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="SQLHistoryDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="SQLHistoryDataSet" msprop:Generator_UserDSName="SQLHistoryDataSet" msprop:EnableTableAdapterManager="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="History" msprop:Generator_UserTableName="History" msprop:Generator_RowDeletedName="HistoryRowDeleted" msprop:Generator_TableClassName="HistoryDataTable" msprop:Generator_RowChangedName="HistoryRowChanged" msprop:Generator_RowClassName="HistoryRow" msprop:Generator_RowChangingName="HistoryRowChanging" msprop:Generator_RowEvArgName="HistoryRowChangeEvent" msprop:Generator_RowEvHandlerName="HistoryRowChangeEventHandler" msprop:Generator_TablePropName="History" msprop:Generator_TableVarName="tableHistory" msprop:Generator_RowDeletingName="HistoryRowDeleting">
<xs:complexType>
<xs:sequence>
<xs:element name="UserName" msprop:Generator_UserColumnName="UserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MachineName" msprop:Generator_UserColumnName="MachineName" msprop:Generator_ColumnPropNameInRow="MachineName" msprop:Generator_ColumnVarNameInTable="columnMachineName" msprop:Generator_ColumnPropNameInTable="MachineNameColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EntryType" msprop:Generator_UserColumnName="EntryType" msprop:Generator_ColumnPropNameInRow="EntryType" msprop:Generator_ColumnVarNameInTable="columnEntryType" msprop:Generator_ColumnPropNameInTable="EntryTypeColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ModificationDate" msprop:Generator_UserColumnName="ModificationDate" msprop:Generator_ColumnPropNameInRow="ModificationDate" msprop:Generator_ColumnVarNameInTable="columnModificationDate" msprop:Generator_ColumnPropNameInTable="ModificationDateColumn" type="xs:dateTime" />
<xs:element name="XmlContent" msprop:Generator_UserColumnName="XmlContent" msprop:Generator_ColumnPropNameInRow="XmlContent" msprop:Generator_ColumnVarNameInTable="columnXmlContent" msprop:Generator_ColumnPropNameInTable="XmlContentColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:History" />
<xs:field xpath="mstns:UserName" />
<xs:field xpath="mstns:MachineName" />
<xs:field xpath="mstns:EntryType" />
<xs:field xpath="mstns:ModificationDate" />
</xs:unique>
</xs:element>
</xs:schema>