/App_Code/StaffBroker/Templates.designer.cs
C# | 235 lines | 197 code | 29 blank | 9 comment | 14 complexity | 096a5bf03c06af46e2d343ed473c6653 MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0
- #pragma warning disable 1591
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.18034
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace StaffBroker
- {
- 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="Database")]
- public partial class TemplatesDataContext : System.Data.Linq.DataContext
- {
-
- private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
-
- #region Extensibility Method Definitions
- partial void OnCreated();
- partial void InsertAP_StaffBroker_Template(AP_StaffBroker_Template instance);
- partial void UpdateAP_StaffBroker_Template(AP_StaffBroker_Template instance);
- partial void DeleteAP_StaffBroker_Template(AP_StaffBroker_Template instance);
- #endregion
-
- public TemplatesDataContext() :
- base(global::System.Configuration.ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString, mappingSource)
- {
- OnCreated();
- }
-
- public TemplatesDataContext(string connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public TemplatesDataContext(System.Data.IDbConnection connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public TemplatesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public TemplatesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_Template> AP_StaffBroker_Templates
- {
- get
- {
- return this.GetTable<AP_StaffBroker_Template>();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_Templates")]
- public partial class AP_StaffBroker_Template : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private long _TemplateId;
-
- private string _TemplateName;
-
- private string _TemplateDescription;
-
- private string _TemplateHTML;
-
- private System.Nullable<int> _PortalId;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnTemplateIdChanging(long value);
- partial void OnTemplateIdChanged();
- partial void OnTemplateNameChanging(string value);
- partial void OnTemplateNameChanged();
- partial void OnTemplateDescriptionChanging(string value);
- partial void OnTemplateDescriptionChanged();
- partial void OnTemplateHTMLChanging(string value);
- partial void OnTemplateHTMLChanged();
- partial void OnPortalIdChanging(System.Nullable<int> value);
- partial void OnPortalIdChanged();
- #endregion
-
- public AP_StaffBroker_Template()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemplateId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public long TemplateId
- {
- get
- {
- return this._TemplateId;
- }
- set
- {
- if ((this._TemplateId != value))
- {
- this.OnTemplateIdChanging(value);
- this.SendPropertyChanging();
- this._TemplateId = value;
- this.SendPropertyChanged("TemplateId");
- this.OnTemplateIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemplateName", DbType="NVarChar(80)")]
- public string TemplateName
- {
- get
- {
- return this._TemplateName;
- }
- set
- {
- if ((this._TemplateName != value))
- {
- this.OnTemplateNameChanging(value);
- this.SendPropertyChanging();
- this._TemplateName = value;
- this.SendPropertyChanged("TemplateName");
- this.OnTemplateNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemplateDescription", DbType="NVarChar(MAX)")]
- public string TemplateDescription
- {
- get
- {
- return this._TemplateDescription;
- }
- set
- {
- if ((this._TemplateDescription != value))
- {
- this.OnTemplateDescriptionChanging(value);
- this.SendPropertyChanging();
- this._TemplateDescription = value;
- this.SendPropertyChanged("TemplateDescription");
- this.OnTemplateDescriptionChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemplateHTML", DbType="NVarChar(MAX)")]
- public string TemplateHTML
- {
- get
- {
- return this._TemplateHTML;
- }
- set
- {
- if ((this._TemplateHTML != value))
- {
- this.OnTemplateHTMLChanging(value);
- this.SendPropertyChanging();
- this._TemplateHTML = value;
- this.SendPropertyChanged("TemplateHTML");
- this.OnTemplateHTMLChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
- public System.Nullable<int> PortalId
- {
- get
- {
- return this._PortalId;
- }
- set
- {
- if ((this._PortalId != value))
- {
- this.OnPortalIdChanging(value);
- this.SendPropertyChanging();
- this._PortalId = value;
- this.SendPropertyChanged("PortalId");
- this.OnPortalIdChanged();
- }
- }
- }
-
- 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