#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.269 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Ext.Scheduler.Models { using System.Data.Linq; using System.Data.Linq.Mapping; using System.Data; using System.Collections.Generic; using System.Reflection; using System.Linq; using System.Linq.Expressions; using System.ComponentModel; using System; [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="Sample")] public partial class DataClasses1DataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void InsertDependency(Dependency instance); partial void UpdateDependency(Dependency instance); partial void DeleteDependency(Dependency instance); partial void InsertTask(Task instance); partial void UpdateTask(Task instance); partial void DeleteTask(Task instance); partial void InsertAssignment(Assignment instance); partial void UpdateAssignment(Assignment instance); partial void DeleteAssignment(Assignment instance); partial void InsertResource(Resource instance); partial void UpdateResource(Resource instance); partial void DeleteResource(Resource instance); #endregion public DataClasses1DataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["SampleConnectionString"].ConnectionString, mappingSource) { OnCreated(); } public DataClasses1DataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public DataClasses1DataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public DataClasses1DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public DataClasses1DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table Dependencies { get { return this.GetTable(); } } public System.Data.Linq.Table Tasks { get { return this.GetTable(); } } public System.Data.Linq.Table Assignments { get { return this.GetTable(); } } public System.Data.Linq.Table Resources { get { return this.GetTable(); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Dependencies")] public partial class Dependency : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Nullable _Id; private int _From; private int _To; private int _Type; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnIdChanging(System.Nullable value); partial void OnIdChanged(); partial void OnFromChanging(int value); partial void OnFromChanged(); partial void OnToChanging(int value); partial void OnToChanged(); partial void OnTypeChanging(int value); partial void OnTypeChanged(); #endregion public Dependency() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] public System.Nullable Id { get { return this._Id; } set { if ((this._Id != value)) { this.OnIdChanging(value); this.SendPropertyChanging(); this._Id = value; this.SendPropertyChanged("Id"); this.OnIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Name="[From]", Storage="_From", DbType="Int NOT NULL")] public int From { get { return this._From; } set { if ((this._From != value)) { this.OnFromChanging(value); this.SendPropertyChanging(); this._From = value; this.SendPropertyChanged("From"); this.OnFromChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Name="[To]", Storage="_To", DbType="Int NOT NULL")] public int To { get { return this._To; } set { if ((this._To != value)) { this.OnToChanging(value); this.SendPropertyChanging(); this._To = value; this.SendPropertyChanged("To"); this.OnToChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="Int NOT NULL")] public int Type { get { return this._Type; } set { if ((this._Type != value)) { this.OnTypeChanging(value); this.SendPropertyChanging(); this._Type = value; this.SendPropertyChanged("Type"); this.OnTypeChanged(); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Tasks")] public partial class Task : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Nullable _Id; private System.Nullable _StartDate; private System.Nullable _EndDate; private int _PercentDone; private string _Name; private int _Priority; private System.Nullable _Duration; private string _DurationUnit; private System.Nullable _index; private System.Nullable _parentId; private bool _leaf; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnIdChanging(System.Nullable value); partial void OnIdChanged(); partial void OnStartDateChanging(System.Nullable value); partial void OnStartDateChanged(); partial void OnEndDateChanging(System.Nullable value); partial void OnEndDateChanged(); partial void OnPercentDoneChanging(int value); partial void OnPercentDoneChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnPriorityChanging(int value); partial void OnPriorityChanged(); partial void OnDurationChanging(System.Nullable value); partial void OnDurationChanged(); partial void OnDurationUnitChanging(string value); partial void OnDurationUnitChanged(); partial void OnindexChanging(System.Nullable value); partial void OnindexChanged(); partial void OnparentIdChanging(System.Nullable value); partial void OnparentIdChanged(); partial void OnleafChanging(bool value); partial void OnleafChanged(); #endregion public Task() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] public System.Nullable Id { get { return this._Id; } set { if ((this._Id != value)) { this.OnIdChanging(value); this.SendPropertyChanging(); this._Id = value; this.SendPropertyChanged("Id"); this.OnIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime NOT NULL")] public System.Nullable StartDate { get { return this._StartDate; } set { if ((this._StartDate != value)) { this.OnStartDateChanging(value); this.SendPropertyChanging(); this._StartDate = value; this.SendPropertyChanged("StartDate"); this.OnStartDateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime NOT NULL")] public System.Nullable EndDate { get { return this._EndDate; } set { if ((this._EndDate != value)) { this.OnEndDateChanging(value); this.SendPropertyChanging(); this._EndDate = value; this.SendPropertyChanged("EndDate"); this.OnEndDateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PercentDone", DbType="Int NOT NULL")] public int PercentDone { get { return this._PercentDone; } set { if ((this._PercentDone != value)) { this.OnPercentDoneChanging(value); this.SendPropertyChanging(); this._PercentDone = value; this.SendPropertyChanged("PercentDone"); this.OnPercentDoneChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] public string Name { get { return this._Name; } set { if ((this._Name != value)) { this.OnNameChanging(value); this.SendPropertyChanging(); this._Name = value; this.SendPropertyChanged("Name"); this.OnNameChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Priority", DbType="Int NOT NULL")] public int Priority { get { return this._Priority; } set { if ((this._Priority != value)) { this.OnPriorityChanging(value); this.SendPropertyChanging(); this._Priority = value; this.SendPropertyChanged("Priority"); this.OnPriorityChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Duration", DbType="Float")] public System.Nullable Duration { get { return this._Duration; } set { if ((this._Duration != value)) { this.OnDurationChanging(value); this.SendPropertyChanging(); this._Duration = value; this.SendPropertyChanged("Duration"); this.OnDurationChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DurationUnit", DbType="NVarChar(3)")] public string DurationUnit { get { return this._DurationUnit; } set { if ((this._DurationUnit != value)) { this.OnDurationUnitChanging(value); this.SendPropertyChanging(); this._DurationUnit = value; this.SendPropertyChanged("DurationUnit"); this.OnDurationUnitChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_index")] public System.Nullable index { get { return this._index; } set { if ((this._index != value)) { this.OnindexChanging(value); this.SendPropertyChanging(); this._index = value; this.SendPropertyChanged("index"); this.OnindexChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_parentId")] public System.Nullable parentId { get { return this._parentId; } set { if ((this._parentId != value)) { this.OnparentIdChanging(value); this.SendPropertyChanging(); this._parentId = value; this.SendPropertyChanged("parentId"); this.OnparentIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_leaf", DbType="bit")] public bool leaf { get { return this._leaf; } set { if ((this._leaf != value)) { this.OnleafChanging(value); this.SendPropertyChanging(); this._leaf = value; this.SendPropertyChanged("leaf"); this.OnleafChanged(); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Assignments")] public partial class Assignment : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Nullable _Id; private int _TaskId; private int _ResourceId; private int _Units; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnIdChanging(System.Nullable value); partial void OnIdChanged(); partial void OnTaskIdChanging(int value); partial void OnTaskIdChanged(); partial void OnResourceIdChanging(int value); partial void OnResourceIdChanged(); partial void OnUnitsChanging(int value); partial void OnUnitsChanged(); #endregion public Assignment() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Nullable Id { get { return this._Id; } set { if ((this._Id != value)) { this.OnIdChanging(value); this.SendPropertyChanging(); this._Id = value; this.SendPropertyChanged("Id"); this.OnIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TaskId", DbType="Int NOT NULL")] public int TaskId { get { return this._TaskId; } set { if ((this._TaskId != value)) { this.OnTaskIdChanging(value); this.SendPropertyChanging(); this._TaskId = value; this.SendPropertyChanged("TaskId"); this.OnTaskIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="Int NOT NULL")] public int ResourceId { get { return this._ResourceId; } set { if ((this._ResourceId != value)) { this.OnResourceIdChanging(value); this.SendPropertyChanging(); this._ResourceId = value; this.SendPropertyChanged("ResourceId"); this.OnResourceIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Units", DbType="Int NOT NULL")] public int Units { get { return this._Units; } set { if ((this._Units != value)) { this.OnUnitsChanging(value); this.SendPropertyChanging(); this._Units = value; this.SendPropertyChanged("Units"); this.OnUnitsChanged(); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Resources")] public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private int _Id; private string _Name; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnIdChanging(int value); partial void OnIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); #endregion public Resource() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] public int Id { get { return this._Id; } set { if ((this._Id != value)) { this.OnIdChanging(value); this.SendPropertyChanging(); this._Id = value; this.SendPropertyChanged("Id"); this.OnIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] public string Name { get { return this._Name; } set { if ((this._Name != value)) { this.OnNameChanging(value); this.SendPropertyChanging(); this._Name = value; this.SendPropertyChanged("Name"); this.OnNameChanged(); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } } #pragma warning restore 1591