/TaskrDomain/SaaSkit/Taskr/Repository/Db.designer.cs
C# | 547 lines | 474 code | 64 blank | 9 comment | 40 complexity | d38b50efd3212dd7e5aa351deb2e37ac MD5 | raw file
- #pragma warning disable 1591
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.1
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
-
- namespace SaaSKit.Taskr.Repository
- {
- 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;
-
-
- [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="taskrmvc")]
- public partial class DataContext : System.Data.Linq.DataContext
- {
-
- private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
-
- #region Extensibility Method Definitions
- partial void OnCreated();
- partial void InsertTask(SaaSKit.Taskr.Task instance);
- partial void UpdateTask(SaaSKit.Taskr.Task instance);
- partial void DeleteTask(SaaSKit.Taskr.Task instance);
- partial void InsertSettings(SaaSKit.Taskr.Settings instance);
- partial void UpdateSettings(SaaSKit.Taskr.Settings instance);
- partial void DeleteSettings(SaaSKit.Taskr.Settings instance);
- #endregion
-
- public DataContext() :
- base(global::Domain.Properties.Settings.Default.taskrmvcConnectionString, mappingSource)
- {
- OnCreated();
- }
-
- public DataContext(string connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public DataContext(System.Data.IDbConnection connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public System.Data.Linq.Table<SaaSKit.Taskr.Activity> Activities
- {
- get
- {
- return this.GetTable<SaaSKit.Taskr.Activity>();
- }
- }
-
- public System.Data.Linq.Table<SaaSKit.Taskr.Task> Tasks
- {
- get
- {
- return this.GetTable<SaaSKit.Taskr.Task>();
- }
- }
-
- public System.Data.Linq.Table<SaaSKit.Taskr.Settings> Settings
- {
- get
- {
- return this.GetTable<SaaSKit.Taskr.Settings>();
- }
- }
- }
- }
- namespace SaaSKit.Taskr
- {
- using System.Data.Linq;
- using System.Data.Linq.Mapping;
- using System.ComponentModel;
- using System;
-
-
- [global::System.Data.Linq.Mapping.TableAttribute()]
- public partial class Activity
- {
-
- private System.Guid _TaskId;
-
- private System.DateTime _CreatedDate;
-
- private string _Author;
-
- private string _Description;
-
- public Activity()
- {
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TaskId", DbType="UniqueIdentifier NOT NULL")]
- public System.Guid TaskId
- {
- get
- {
- return this._TaskId;
- }
- set
- {
- if ((this._TaskId != value))
- {
- this._TaskId = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedDate", DbType="DateTime NOT NULL")]
- public System.DateTime CreatedDate
- {
- get
- {
- return this._CreatedDate;
- }
- set
- {
- if ((this._CreatedDate != value))
- {
- this._CreatedDate = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Author", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
- public string Author
- {
- get
- {
- return this._Author;
- }
- set
- {
- if ((this._Author != value))
- {
- this._Author = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="Text", UpdateCheck=UpdateCheck.Never)]
- public string Description
- {
- get
- {
- return this._Description;
- }
- set
- {
- if ((this._Description != value))
- {
- this._Description = value;
- }
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute()]
- public partial class Task : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private System.Guid _Id;
-
- private System.DateTime _CreatedDate;
-
- private string _Status;
-
- private string _Summary;
-
- private System.Nullable<System.Guid> _AssigneeId;
-
- private System.Nullable<System.DateTime> _DueDate;
-
- private System.Nullable<System.DateTime> _CompletedDate;
-
- private string _Description;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(System.Guid value);
- partial void OnIdChanged();
- partial void OnCreatedDateChanging(System.DateTime value);
- partial void OnCreatedDateChanged();
- partial void OnStatusChanging(string value);
- partial void OnStatusChanged();
- partial void OnSummaryChanging(string value);
- partial void OnSummaryChanged();
- partial void OnAssigneeIdChanging(System.Nullable<System.Guid> value);
- partial void OnAssigneeIdChanged();
- partial void OnDueDateChanging(System.Nullable<System.DateTime> value);
- partial void OnDueDateChanged();
- partial void OnCompletedDateChanging(System.Nullable<System.DateTime> value);
- partial void OnCompletedDateChanged();
- partial void OnDescriptionChanging(string value);
- partial void OnDescriptionChanged();
- #endregion
-
- public Task()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
- public System.Guid 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="_CreatedDate", DbType="DateTime NOT NULL")]
- public System.DateTime CreatedDate
- {
- get
- {
- return this._CreatedDate;
- }
- set
- {
- if ((this._CreatedDate != value))
- {
- this.OnCreatedDateChanging(value);
- this.SendPropertyChanging();
- this._CreatedDate = value;
- this.SendPropertyChanged("CreatedDate");
- this.OnCreatedDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="NVarChar(50)")]
- public string Status
- {
- get
- {
- return this._Status;
- }
- set
- {
- if ((this._Status != value))
- {
- this.OnStatusChanging(value);
- this.SendPropertyChanging();
- this._Status = value;
- this.SendPropertyChanged("Status");
- this.OnStatusChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Summary", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
- public string Summary
- {
- get
- {
- return this._Summary;
- }
- set
- {
- if ((this._Summary != value))
- {
- this.OnSummaryChanging(value);
- this.SendPropertyChanging();
- this._Summary = value;
- this.SendPropertyChanged("Summary");
- this.OnSummaryChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AssigneeId", DbType="UniqueIdentifier")]
- public System.Nullable<System.Guid> AssigneeId
- {
- get
- {
- return this._AssigneeId;
- }
- set
- {
- if ((this._AssigneeId != value))
- {
- this.OnAssigneeIdChanging(value);
- this.SendPropertyChanging();
- this._AssigneeId = value;
- this.SendPropertyChanged("AssigneeId");
- this.OnAssigneeIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DueDate", DbType="DateTime")]
- public System.Nullable<System.DateTime> DueDate
- {
- get
- {
- return this._DueDate;
- }
- set
- {
- if ((this._DueDate != value))
- {
- this.OnDueDateChanging(value);
- this.SendPropertyChanging();
- this._DueDate = value;
- this.SendPropertyChanged("DueDate");
- this.OnDueDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletedDate", DbType="DateTime")]
- public System.Nullable<System.DateTime> CompletedDate
- {
- get
- {
- return this._CompletedDate;
- }
- set
- {
- if ((this._CompletedDate != value))
- {
- this.OnCompletedDateChanging(value);
- this.SendPropertyChanging();
- this._CompletedDate = value;
- this.SendPropertyChanged("CompletedDate");
- this.OnCompletedDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="Text", UpdateCheck=UpdateCheck.Never)]
- public string Description
- {
- get
- {
- return this._Description;
- }
- set
- {
- if ((this._Description != value))
- {
- this.OnDescriptionChanging(value);
- this.SendPropertyChanging();
- this._Description = value;
- this.SendPropertyChanged("Description");
- this.OnDescriptionChanged();
- }
- }
- }
-
- 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()]
- public partial class Settings : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private System.Guid _Id;
-
- private string _CustomStyle;
-
- private string _CustomStatuses;
-
- private string _CustomLogoUrl;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(System.Guid value);
- partial void OnIdChanged();
- partial void OnCustomStyleChanging(string value);
- partial void OnCustomStyleChanged();
- partial void OnCustomStatusesChanging(string value);
- partial void OnCustomStatusesChanged();
- partial void OnCustomLogoUrlChanging(string value);
- partial void OnCustomLogoUrlChanged();
- #endregion
-
- public Settings()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
- public System.Guid 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="_CustomStyle", DbType="Text", UpdateCheck=UpdateCheck.Never)]
- public string CustomStyle
- {
- get
- {
- return this._CustomStyle;
- }
- set
- {
- if ((this._CustomStyle != value))
- {
- this.OnCustomStyleChanging(value);
- this.SendPropertyChanging();
- this._CustomStyle = value;
- this.SendPropertyChanged("CustomStyle");
- this.OnCustomStyleChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CustomStatuses", DbType="Text", UpdateCheck=UpdateCheck.Never)]
- public string CustomStatuses
- {
- get
- {
- return this._CustomStatuses;
- }
- set
- {
- if ((this._CustomStatuses != value))
- {
- this.OnCustomStatusesChanging(value);
- this.SendPropertyChanging();
- this._CustomStatuses = value;
- this.SendPropertyChanged("CustomStatuses");
- this.OnCustomStatusesChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CustomLogoUrl", DbType="NVarChar(255)")]
- public string CustomLogoUrl
- {
- get
- {
- return this._CustomLogoUrl;
- }
- set
- {
- if ((this._CustomLogoUrl != value))
- {
- this.OnCustomLogoUrlChanging(value);
- this.SendPropertyChanging();
- this._CustomLogoUrl = value;
- this.SendPropertyChanged("CustomLogoUrl");
- this.OnCustomLogoUrlChanged();
- }
- }
- }
-
- 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