#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.1433 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Pinwheel.Data { 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; public partial class AwardsRepositoryDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void InsertLinqAward(LinqAward instance); partial void UpdateLinqAward(LinqAward instance); partial void DeleteLinqAward(LinqAward instance); partial void InsertLinqAwardRule(LinqAwardRule instance); partial void UpdateLinqAwardRule(LinqAwardRule instance); partial void DeleteLinqAwardRule(LinqAwardRule instance); #endregion public AwardsRepositoryDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public AwardsRepositoryDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public AwardsRepositoryDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public AwardsRepositoryDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table LinqAwards { get { return this.GetTable(); } } public System.Data.Linq.Table LinqAwardRules { get { return this.GetTable(); } } } [Table(Name="Award")] public partial class LinqAward : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private string _UserID; private System.DateTime _CreateDate; private System.Guid _ID = default(System.Guid); private string _AwardType; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnUsernameChanging(string value); partial void OnUsernameChanged(); partial void OnCreateDateChanging(System.DateTime value); partial void OnCreateDateChanged(); partial void OnAwardTypeChanging(string value); partial void OnAwardTypeChanged(); #endregion public LinqAward() { OnCreated(); } [Column(Name="User", Storage="_UserID", CanBeNull=false)] public string Username { get { return this._UserID; } set { if ((this._UserID != value)) { this.OnUsernameChanging(value); this.SendPropertyChanging(); this._UserID = value; this.SendPropertyChanged("Username"); this.OnUsernameChanged(); } } } [Column(Storage="_CreateDate")] public System.DateTime CreateDate { get { return this._CreateDate; } set { if ((this._CreateDate != value)) { this.OnCreateDateChanging(value); this.SendPropertyChanging(); this._CreateDate = value; this.SendPropertyChanged("CreateDate"); this.OnCreateDateChanged(); } } } [Column(Storage="_ID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)] public System.Guid ID { get { return this._ID; } } [Column(Storage="_AwardType", CanBeNull=false)] public string AwardType { get { return this._AwardType; } set { if ((this._AwardType != value)) { this.OnAwardTypeChanging(value); this.SendPropertyChanging(); this._AwardType = value; this.SendPropertyChanged("AwardType"); this.OnAwardTypeChanged(); } } } 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)); } } } [Table(Name="Rule")] public partial class LinqAwardRule : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private string _Name; private string _TypeName; private string _Description; private bool _Enabled; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnTypeNameChanging(string value); partial void OnTypeNameChanged(); partial void OnDescriptionChanging(string value); partial void OnDescriptionChanged(); partial void OnEnabledChanging(bool value); partial void OnEnabledChanged(); #endregion public LinqAwardRule() { OnCreated(); } [Column(Storage="_Name")] 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(); } } } [Column(Storage="_TypeName", CanBeNull=false, IsPrimaryKey=true)] public string TypeName { get { return this._TypeName; } set { if ((this._TypeName != value)) { this.OnTypeNameChanging(value); this.SendPropertyChanging(); this._TypeName = value; this.SendPropertyChanged("TypeName"); this.OnTypeNameChanged(); } } } [Column(Storage="_Description")] 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(); } } } [Column(Storage="_Enabled")] public bool Enabled { get { return this._Enabled; } set { if ((this._Enabled != value)) { this.OnEnabledChanging(value); this.SendPropertyChanging(); this._Enabled = value; this.SendPropertyChanged("Enabled"); this.OnEnabledChanged(); } } } 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