Not 100% tested, because it is supposed to go away soon, but right now it is the only way to create a new backup. Also moved database schema and upgrade information/code into the data model project. git-svn-id: https://duplicati.googlecode.com/svn/trunk@1275 59da171f-624f-0410-aa54-27559c288bec
92 lines
3.1 KiB
C#
92 lines
3.1 KiB
C#
#region Disclaimer / License
|
|
// Copyright (C) 2011, Kenneth Skovhede
|
|
// http://www.hexad.dk, opensource@hexad.dk
|
|
//
|
|
// This library is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
// License as published by the Free Software Foundation; either
|
|
// version 2.1 of the License, or (at your option) any later version.
|
|
//
|
|
// This library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
// Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
// License along with this library; if not, write to the Free Software
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
//
|
|
#endregion
|
|
/// <metadata>
|
|
/// <creator>This class was created by DataClassFileBuilder (LightDatamodel)</creator>
|
|
/// <provider name="System.Data.LightDatamodel.SQLiteDataProvider" connectionstring="Version=3;Data Source=D:\Dokumenter\duplicati\Duplicati\GUI\Datamodel\Duplicati.sqlite;" />
|
|
/// <type>Table</type>
|
|
/// <namespace>Duplicati.Datamodel</namespace>
|
|
/// <name>ScheduleMetadata</name>
|
|
/// <sql></sql>
|
|
/// </metadata>
|
|
|
|
using System.Data.LightDatamodel;
|
|
using System.Data.LightDatamodel.DataClassAttributes;
|
|
|
|
namespace Duplicati.Datamodel
|
|
{
|
|
|
|
[DatabaseTable("ScheduleMetadata")]
|
|
public partial class ScheduleMetadata : DataClassBase
|
|
{
|
|
|
|
#region " private members "
|
|
|
|
[AutoIncrement, PrimaryKey, DatabaseField("ID")]
|
|
private System.Int64 m_ID = long.MinValue;
|
|
[Relation("ScheduleMetadataSchedule", typeof(Schedule), "ID"), DatabaseField("ScheduleID")]
|
|
private System.Int64 m_ScheduleID = long.MinValue;
|
|
[DatabaseField("Name")]
|
|
private System.String m_Name = "";
|
|
[DatabaseField("Value")]
|
|
private System.String m_Value = "";
|
|
#endregion
|
|
|
|
#region " properties "
|
|
|
|
public System.Int64 ID
|
|
{
|
|
get{return m_ID;}
|
|
set{object oldvalue = m_ID;OnBeforeDataChange(this, "ID", oldvalue, value);m_ID = value;OnAfterDataChange(this, "ID", oldvalue, value);}
|
|
}
|
|
|
|
public System.Int64 ScheduleID
|
|
{
|
|
get{return m_ScheduleID;}
|
|
set{object oldvalue = m_ScheduleID;OnBeforeDataChange(this, "ScheduleID", oldvalue, value);m_ScheduleID = value;OnAfterDataChange(this, "ScheduleID", oldvalue, value);}
|
|
}
|
|
|
|
public System.String Name
|
|
{
|
|
get{return m_Name;}
|
|
set{object oldvalue = m_Name;OnBeforeDataChange(this, "Name", oldvalue, value);m_Name = value;OnAfterDataChange(this, "Name", oldvalue, value);}
|
|
}
|
|
|
|
public System.String Value
|
|
{
|
|
get{return m_Value;}
|
|
set{object oldvalue = m_Value;OnBeforeDataChange(this, "Value", oldvalue, value);m_Value = value;OnAfterDataChange(this, "Value", oldvalue, value);}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region " referenced properties "
|
|
|
|
[Affects(typeof(Schedule))]
|
|
public Schedule Schedule
|
|
{
|
|
get{ return ((DataFetcherWithRelations)m_dataparent).GetRelatedObject<Schedule>("ScheduleMetadataSchedule", this); }
|
|
set{ ((DataFetcherWithRelations)m_dataparent).SetRelatedObject("ScheduleMetadataSchedule", this, value); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
} |