/App_Code/StaffBroker/StaffBroker.designer.cs
C# | 8577 lines | 7720 code | 848 blank | 9 comment | 819 complexity | 0b851fd84d061e5ecde53bfebdb4f4db MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0
Large files files are truncated, but you can click here to view the full file
- #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="AgapeConnect")]
- public partial class StaffBrokerDataContext : System.Data.Linq.DataContext
- {
-
- private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
-
- #region Extensibility Method Definitions
- partial void OnCreated();
- partial void InsertUser(User instance);
- partial void UpdateUser(User instance);
- partial void DeleteUser(User instance);
- partial void InsertUserProfile(UserProfile instance);
- partial void UpdateUserProfile(UserProfile instance);
- partial void DeleteUserProfile(UserProfile instance);
- partial void InsertProfilePropertyDefinition(ProfilePropertyDefinition instance);
- partial void UpdateProfilePropertyDefinition(ProfilePropertyDefinition instance);
- partial void DeleteProfilePropertyDefinition(ProfilePropertyDefinition instance);
- partial void InsertAP_StaffBroker_Staff(AP_StaffBroker_Staff instance);
- partial void UpdateAP_StaffBroker_Staff(AP_StaffBroker_Staff instance);
- partial void DeleteAP_StaffBroker_Staff(AP_StaffBroker_Staff instance);
- partial void InsertAP_StaffBroker_StaffType(AP_StaffBroker_StaffType instance);
- partial void UpdateAP_StaffBroker_StaffType(AP_StaffBroker_StaffType instance);
- partial void DeleteAP_StaffBroker_StaffType(AP_StaffBroker_StaffType instance);
- partial void InsertProfilePropertyDefinition2(ProfilePropertyDefinition2 instance);
- partial void UpdateProfilePropertyDefinition2(ProfilePropertyDefinition2 instance);
- partial void DeleteProfilePropertyDefinition2(ProfilePropertyDefinition2 instance);
- partial void InsertUserProfile2(UserProfile2 instance);
- partial void UpdateUserProfile2(UserProfile2 instance);
- partial void DeleteUserProfile2(UserProfile2 instance);
- partial void InsertUser2(User2 instance);
- partial void UpdateUser2(User2 instance);
- partial void DeleteUser2(User2 instance);
- partial void InsertAP_StaffBroker_StaffProfile(AP_StaffBroker_StaffProfile instance);
- partial void UpdateAP_StaffBroker_StaffProfile(AP_StaffBroker_StaffProfile instance);
- partial void DeleteAP_StaffBroker_StaffProfile(AP_StaffBroker_StaffProfile instance);
- partial void InsertAP_StaffBroker_Children(AP_StaffBroker_Children instance);
- partial void UpdateAP_StaffBroker_Children(AP_StaffBroker_Children instance);
- partial void DeleteAP_StaffBroker_Children(AP_StaffBroker_Children instance);
- partial void InsertAP_StaffBroker_LeaderMeta(AP_StaffBroker_LeaderMeta instance);
- partial void UpdateAP_StaffBroker_LeaderMeta(AP_StaffBroker_LeaderMeta instance);
- partial void DeleteAP_StaffBroker_LeaderMeta(AP_StaffBroker_LeaderMeta instance);
- partial void InsertLeader(Leader instance);
- partial void UpdateLeader(Leader instance);
- partial void DeleteLeader(Leader instance);
- partial void InsertDelegate(Delegate instance);
- partial void UpdateDelegate(Delegate instance);
- partial void DeleteDelegate(Delegate instance);
- partial void InsertAP_StaffBroker_LeaderMeta2(AP_StaffBroker_LeaderMeta2 instance);
- partial void UpdateAP_StaffBroker_LeaderMeta2(AP_StaffBroker_LeaderMeta2 instance);
- partial void DeleteAP_StaffBroker_LeaderMeta2(AP_StaffBroker_LeaderMeta2 instance);
- partial void InsertDelegate2(Delegate2 instance);
- partial void UpdateDelegate2(Delegate2 instance);
- partial void DeleteDelegate2(Delegate2 instance);
- partial void InsertLeader2(Leader2 instance);
- partial void UpdateLeader2(Leader2 instance);
- partial void DeleteLeader2(Leader2 instance);
- partial void InsertAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
- partial void UpdateAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
- partial void DeleteAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
- partial void InsertAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
- partial void UpdateAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
- partial void DeleteAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
- partial void InsertAP_StaffBroker_Setting(AP_StaffBroker_Setting instance);
- partial void UpdateAP_StaffBroker_Setting(AP_StaffBroker_Setting instance);
- partial void DeleteAP_StaffBroker_Setting(AP_StaffBroker_Setting instance);
- partial void InsertUserPortal(UserPortal instance);
- partial void UpdateUserPortal(UserPortal instance);
- partial void DeleteUserPortal(UserPortal instance);
- partial void InsertAP_StaffBroker_StaffPropertyDefinition(AP_StaffBroker_StaffPropertyDefinition instance);
- partial void UpdateAP_StaffBroker_StaffPropertyDefinition(AP_StaffBroker_StaffPropertyDefinition instance);
- partial void DeleteAP_StaffBroker_StaffPropertyDefinition(AP_StaffBroker_StaffPropertyDefinition instance);
- partial void InsertAP_Menu_Link(AP_Menu_Link instance);
- partial void UpdateAP_Menu_Link(AP_Menu_Link instance);
- partial void DeleteAP_Menu_Link(AP_Menu_Link instance);
- partial void InsertAP_Staff_SuggestedPayment(AP_Staff_SuggestedPayment instance);
- partial void UpdateAP_Staff_SuggestedPayment(AP_Staff_SuggestedPayment instance);
- partial void DeleteAP_Staff_SuggestedPayment(AP_Staff_SuggestedPayment instance);
- partial void InsertAP_StaffBroker_Department(AP_StaffBroker_Department instance);
- partial void UpdateAP_StaffBroker_Department(AP_StaffBroker_Department instance);
- partial void DeleteAP_StaffBroker_Department(AP_StaffBroker_Department instance);
- #endregion
-
- public StaffBrokerDataContext() :
- base(global::System.Configuration.ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString, mappingSource)
- {
- OnCreated();
- }
-
- public StaffBrokerDataContext(string connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public StaffBrokerDataContext(System.Data.IDbConnection connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public StaffBrokerDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public StaffBrokerDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public System.Data.Linq.Table<User> Users
- {
- get
- {
- return this.GetTable<User>();
- }
- }
-
- public System.Data.Linq.Table<UserProfile> UserProfiles
- {
- get
- {
- return this.GetTable<UserProfile>();
- }
- }
-
- public System.Data.Linq.Table<ProfilePropertyDefinition> ProfilePropertyDefinitions
- {
- get
- {
- return this.GetTable<ProfilePropertyDefinition>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_Staff> AP_StaffBroker_Staffs
- {
- get
- {
- return this.GetTable<AP_StaffBroker_Staff>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_StaffType> AP_StaffBroker_StaffTypes
- {
- get
- {
- return this.GetTable<AP_StaffBroker_StaffType>();
- }
- }
-
- public System.Data.Linq.Table<ProfilePropertyDefinition2> ProfilePropertyDefinition2s
- {
- get
- {
- return this.GetTable<ProfilePropertyDefinition2>();
- }
- }
-
- public System.Data.Linq.Table<UserProfile2> UserProfile2s
- {
- get
- {
- return this.GetTable<UserProfile2>();
- }
- }
-
- public System.Data.Linq.Table<User2> User2s
- {
- get
- {
- return this.GetTable<User2>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_StaffProfile> AP_StaffBroker_StaffProfiles
- {
- get
- {
- return this.GetTable<AP_StaffBroker_StaffProfile>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_Children> AP_StaffBroker_Childrens
- {
- get
- {
- return this.GetTable<AP_StaffBroker_Children>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_LeaderMeta> AP_StaffBroker_LeaderMetas
- {
- get
- {
- return this.GetTable<AP_StaffBroker_LeaderMeta>();
- }
- }
-
- public System.Data.Linq.Table<Leader> Leaders
- {
- get
- {
- return this.GetTable<Leader>();
- }
- }
-
- public System.Data.Linq.Table<Delegate> Delegates
- {
- get
- {
- return this.GetTable<Delegate>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_LeaderMeta2> AP_StaffBroker_LeaderMeta2s
- {
- get
- {
- return this.GetTable<AP_StaffBroker_LeaderMeta2>();
- }
- }
-
- public System.Data.Linq.Table<Delegate2> Delegate2s
- {
- get
- {
- return this.GetTable<Delegate2>();
- }
- }
-
- public System.Data.Linq.Table<Leader2> Leader2s
- {
- get
- {
- return this.GetTable<Leader2>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_AccountCode> AP_StaffBroker_AccountCodes
- {
- get
- {
- return this.GetTable<AP_StaffBroker_AccountCode>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_CostCenter> AP_StaffBroker_CostCenters
- {
- get
- {
- return this.GetTable<AP_StaffBroker_CostCenter>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_Setting> AP_StaffBroker_Settings
- {
- get
- {
- return this.GetTable<AP_StaffBroker_Setting>();
- }
- }
-
- public System.Data.Linq.Table<UserPortal> UserPortals
- {
- get
- {
- return this.GetTable<UserPortal>();
- }
- }
-
- public System.Data.Linq.Table<AP_Image> AP_Images
- {
- get
- {
- return this.GetTable<AP_Image>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_StaffPropertyDefinition> AP_StaffBroker_StaffPropertyDefinitions
- {
- get
- {
- return this.GetTable<AP_StaffBroker_StaffPropertyDefinition>();
- }
- }
-
- public System.Data.Linq.Table<AP_Menu_Link> AP_Menu_Links
- {
- get
- {
- return this.GetTable<AP_Menu_Link>();
- }
- }
-
- public System.Data.Linq.Table<AP_Staff_SuggestedPayment> AP_Staff_SuggestedPayments
- {
- get
- {
- return this.GetTable<AP_Staff_SuggestedPayment>();
- }
- }
-
- public System.Data.Linq.Table<AP_StaffBroker_Department> AP_StaffBroker_Departments
- {
- get
- {
- return this.GetTable<AP_StaffBroker_Department>();
- }
- }
-
- [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.Agape_Main_AlterUserName")]
- public int Agape_Main_AlterUserName([global::System.Data.Linq.Mapping.ParameterAttribute(Name="ExistUserName", DbType="VarChar(120)")] string existUserName, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NewUserName", DbType="VarChar(121)")] string newUserName)
- {
- IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), existUserName, newUserName);
- return ((int)(result.ReturnValue));
- }
-
- [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.GetSearchResults")]
- public ISingleResult<GetSearchResultsResult> GetSearchResults([global::System.Data.Linq.Mapping.ParameterAttribute(Name="PortalID", DbType="Int")] System.Nullable<int> portalID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="TabId", DbType="Int")] System.Nullable<int> tabId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="ModuleId", DbType="Int")] System.Nullable<int> moduleId)
- {
- IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), portalID, tabId, moduleId);
- return ((ISingleResult<GetSearchResultsResult>)(result.ReturnValue));
- }
-
- [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.GetSearchResultsByWord")]
- public ISingleResult<GetSearchResultsByWordResult> GetSearchResultsByWord([global::System.Data.Linq.Mapping.ParameterAttribute(Name="PortalID", DbType="Int")] System.Nullable<int> portalID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Word", DbType="NVarChar(100)")] string word)
- {
- IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), portalID, word);
- return ((ISingleResult<GetSearchResultsByWordResult>)(result.ReturnValue));
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
- public partial class User : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _UserID;
-
- private string _Username;
-
- private string _FirstName;
-
- private string _LastName;
-
- private bool _IsSuperUser;
-
- private System.Nullable<int> _AffiliateId;
-
- private string _Email;
-
- private string _DisplayName;
-
- private bool _UpdatePassword;
-
- private string _LastIPAddress;
-
- private bool _IsDeleted;
-
- private System.Nullable<int> _CreatedByUserID;
-
- private System.Nullable<System.DateTime> _CreatedOnDate;
-
- private System.Nullable<int> _LastModifiedByUserID;
-
- private System.Nullable<System.DateTime> _LastModifiedOnDate;
-
- private EntitySet<UserProfile> _UserProfiles;
-
- private EntityRef<AP_StaffBroker_Staff> _AP_StaffBroker_Staffs;
-
- private EntitySet<AP_StaffBroker_LeaderMeta> _AP_StaffBroker_LeaderMetas;
-
- private EntitySet<UserPortal> _UserPortals;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnUserIDChanging(int value);
- partial void OnUserIDChanged();
- partial void OnUsernameChanging(string value);
- partial void OnUsernameChanged();
- partial void OnFirstNameChanging(string value);
- partial void OnFirstNameChanged();
- partial void OnLastNameChanging(string value);
- partial void OnLastNameChanged();
- partial void OnIsSuperUserChanging(bool value);
- partial void OnIsSuperUserChanged();
- partial void OnAffiliateIdChanging(System.Nullable<int> value);
- partial void OnAffiliateIdChanged();
- partial void OnEmailChanging(string value);
- partial void OnEmailChanged();
- partial void OnDisplayNameChanging(string value);
- partial void OnDisplayNameChanged();
- partial void OnUpdatePasswordChanging(bool value);
- partial void OnUpdatePasswordChanged();
- partial void OnLastIPAddressChanging(string value);
- partial void OnLastIPAddressChanged();
- partial void OnIsDeletedChanging(bool value);
- partial void OnIsDeletedChanged();
- partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
- partial void OnCreatedByUserIDChanged();
- partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
- partial void OnCreatedOnDateChanged();
- partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
- partial void OnLastModifiedByUserIDChanged();
- partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
- partial void OnLastModifiedOnDateChanged();
- #endregion
-
- public User()
- {
- this._UserProfiles = new EntitySet<UserProfile>(new Action<UserProfile>(this.attach_UserProfiles), new Action<UserProfile>(this.detach_UserProfiles));
- this._AP_StaffBroker_Staffs = default(EntityRef<AP_StaffBroker_Staff>);
- this._AP_StaffBroker_LeaderMetas = new EntitySet<AP_StaffBroker_LeaderMeta>(new Action<AP_StaffBroker_LeaderMeta>(this.attach_AP_StaffBroker_LeaderMetas), new Action<AP_StaffBroker_LeaderMeta>(this.detach_AP_StaffBroker_LeaderMetas));
- this._UserPortals = new EntitySet<UserPortal>(new Action<UserPortal>(this.attach_UserPortals), new Action<UserPortal>(this.detach_UserPortals));
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int UserID
- {
- get
- {
- return this._UserID;
- }
- set
- {
- if ((this._UserID != value))
- {
- this.OnUserIDChanging(value);
- this.SendPropertyChanging();
- this._UserID = value;
- this.SendPropertyChanged("UserID");
- this.OnUserIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
- public string Username
- {
- get
- {
- return this._Username;
- }
- set
- {
- if ((this._Username != value))
- {
- this.OnUsernameChanging(value);
- this.SendPropertyChanging();
- this._Username = value;
- this.SendPropertyChanged("Username");
- this.OnUsernameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
- public string FirstName
- {
- get
- {
- return this._FirstName;
- }
- set
- {
- if ((this._FirstName != value))
- {
- this.OnFirstNameChanging(value);
- this.SendPropertyChanging();
- this._FirstName = value;
- this.SendPropertyChanged("FirstName");
- this.OnFirstNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
- public string LastName
- {
- get
- {
- return this._LastName;
- }
- set
- {
- if ((this._LastName != value))
- {
- this.OnLastNameChanging(value);
- this.SendPropertyChanging();
- this._LastName = value;
- this.SendPropertyChanged("LastName");
- this.OnLastNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperUser", DbType="Bit NOT NULL")]
- public bool IsSuperUser
- {
- get
- {
- return this._IsSuperUser;
- }
- set
- {
- if ((this._IsSuperUser != value))
- {
- this.OnIsSuperUserChanging(value);
- this.SendPropertyChanging();
- this._IsSuperUser = value;
- this.SendPropertyChanged("IsSuperUser");
- this.OnIsSuperUserChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AffiliateId", DbType="Int")]
- public System.Nullable<int> AffiliateId
- {
- get
- {
- return this._AffiliateId;
- }
- set
- {
- if ((this._AffiliateId != value))
- {
- this.OnAffiliateIdChanging(value);
- this.SendPropertyChanging();
- this._AffiliateId = value;
- this.SendPropertyChanged("AffiliateId");
- this.OnAffiliateIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
- public string Email
- {
- get
- {
- return this._Email;
- }
- set
- {
- if ((this._Email != value))
- {
- this.OnEmailChanging(value);
- this.SendPropertyChanging();
- this._Email = value;
- this.SendPropertyChanged("Email");
- this.OnEmailChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string DisplayName
- {
- get
- {
- return this._DisplayName;
- }
- set
- {
- if ((this._DisplayName != value))
- {
- this.OnDisplayNameChanging(value);
- this.SendPropertyChanging();
- this._DisplayName = value;
- this.SendPropertyChanged("DisplayName");
- this.OnDisplayNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpdatePassword", DbType="Bit NOT NULL")]
- public bool UpdatePassword
- {
- get
- {
- return this._UpdatePassword;
- }
- set
- {
- if ((this._UpdatePassword != value))
- {
- this.OnUpdatePasswordChanging(value);
- this.SendPropertyChanging();
- this._UpdatePassword = value;
- this.SendPropertyChanged("UpdatePassword");
- this.OnUpdatePasswordChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIPAddress", DbType="NVarChar(50)")]
- public string LastIPAddress
- {
- get
- {
- return this._LastIPAddress;
- }
- set
- {
- if ((this._LastIPAddress != value))
- {
- this.OnLastIPAddressChanging(value);
- this.SendPropertyChanging();
- this._LastIPAddress = value;
- this.SendPropertyChanged("LastIPAddress");
- this.OnLastIPAddressChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
- public bool IsDeleted
- {
- get
- {
- return this._IsDeleted;
- }
- set
- {
- if ((this._IsDeleted != value))
- {
- this.OnIsDeletedChanging(value);
- this.SendPropertyChanging();
- this._IsDeleted = value;
- this.SendPropertyChanged("IsDeleted");
- this.OnIsDeletedChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
- public System.Nullable<int> CreatedByUserID
- {
- get
- {
- return this._CreatedByUserID;
- }
- set
- {
- if ((this._CreatedByUserID != value))
- {
- this.OnCreatedByUserIDChanging(value);
- this.SendPropertyChanging();
- this._CreatedByUserID = value;
- this.SendPropertyChanged("CreatedByUserID");
- this.OnCreatedByUserIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
- public System.Nullable<System.DateTime> CreatedOnDate
- {
- get
- {
- return this._CreatedOnDate;
- }
- set
- {
- if ((this._CreatedOnDate != value))
- {
- this.OnCreatedOnDateChanging(value);
- this.SendPropertyChanging();
- this._CreatedOnDate = value;
- this.SendPropertyChanged("CreatedOnDate");
- this.OnCreatedOnDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
- public System.Nullable<int> LastModifiedByUserID
- {
- get
- {
- return this._LastModifiedByUserID;
- }
- set
- {
- if ((this._LastModifiedByUserID != value))
- {
- this.OnLastModifiedByUserIDChanging(value);
- this.SendPropertyChanging();
- this._LastModifiedByUserID = value;
- this.SendPropertyChanged("LastModifiedByUserID");
- this.OnLastModifiedByUserIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
- public System.Nullable<System.DateTime> LastModifiedOnDate
- {
- get
- {
- return this._LastModifiedOnDate;
- }
- set
- {
- if ((this._LastModifiedOnDate != value))
- {
- this.OnLastModifiedOnDateChanging(value);
- this.SendPropertyChanging();
- this._LastModifiedOnDate = value;
- this.SendPropertyChanged("LastModifiedOnDate");
- this.OnLastModifiedOnDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserProfile", Storage="_UserProfiles", ThisKey="UserID", OtherKey="UserID")]
- public EntitySet<UserProfile> UserProfiles
- {
- get
- {
- return this._UserProfiles;
- }
- set
- {
- this._UserProfiles.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_AP_StaffBroker_Staff", Storage="_AP_StaffBroker_Staffs", ThisKey="UserID", OtherKey="UserId1", IsUnique=true, IsForeignKey=false)]
- public AP_StaffBroker_Staff AP_StaffBroker_Staffs
- {
- get
- {
- return this._AP_StaffBroker_Staffs.Entity;
- }
- set
- {
- AP_StaffBroker_Staff previousValue = this._AP_StaffBroker_Staffs.Entity;
- if (((previousValue != value)
- || (this._AP_StaffBroker_Staffs.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._AP_StaffBroker_Staffs.Entity = null;
- previousValue.User = null;
- }
- this._AP_StaffBroker_Staffs.Entity = value;
- if ((value != null))
- {
- value.User = this;
- }
- this.SendPropertyChanged("AP_StaffBroker_Staffs");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_AP_StaffBroker_LeaderMeta", Storage="_AP_StaffBroker_LeaderMetas", ThisKey="UserID", OtherKey="UserId")]
- public EntitySet<AP_StaffBroker_LeaderMeta> AP_StaffBroker_LeaderMetas
- {
- get
- {
- return this._AP_StaffBroker_LeaderMetas;
- }
- set
- {
- this._AP_StaffBroker_LeaderMetas.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserPortal", Storage="_UserPortals", ThisKey="UserID", OtherKey="UserId")]
- public EntitySet<UserPortal> UserPortals
- {
- get
- {
- return this._UserPortals;
- }
- set
- {
- this._UserPortals.Assign(value);
- }
- }
-
- 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));
- }
- }
-
- private void attach_UserProfiles(UserProfile entity)
- {
- this.SendPropertyChanging();
- entity.User = this;
- }
-
- private void detach_UserProfiles(UserProfile entity)
- {
- this.SendPropertyChanging();
- entity.User = null;
- }
-
- private void attach_AP_StaffBroker_LeaderMetas(AP_StaffBroker_LeaderMeta entity)
- {
- this.SendPropertyChanging();
- entity.User = this;
- }
-
- private void detach_AP_StaffBroker_LeaderMetas(AP_StaffBroker_LeaderMeta entity)
- {
- this.SendPropertyChanging();
- entity.User = null;
- }
-
- private void attach_UserPortals(UserPortal entity)
- {
- this.SendPropertyChanging();
- entity.User = this;
- }
-
- private void detach_UserPortals(UserPortal entity)
- {
- this.SendPropertyChanging();
- entity.User = null;
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserProfile")]
- public partial class UserProfile : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _ProfileID;
-
- private int _UserID;
-
- private int _PropertyDefinitionID;
-
- private string _PropertyValue;
-
- private string _PropertyText;
-
- private int _Visibility;
-
- private System.DateTime _LastUpdatedDate;
-
- private EntityRef<User> _User;
-
- private EntityRef<ProfilePropertyDefinition> _ProfilePropertyDefinition;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnProfileIDChanging(int value);
- partial void OnProfileIDChanged();
- partial void OnUserIDChanging(int value);
- partial void OnUserIDChanged();
- partial void OnPropertyDefinitionIDChanging(int value);
- partial void OnPropertyDefinitionIDChanged();
- partial void OnPropertyValueChanging(string value);
- partial void OnPropertyValueChanged();
- partial void OnPropertyTextChanging(string value);
- partial void OnPropertyTextChanged();
- partial void OnVisibilityChanging(int value);
- partial void OnVisibilityChanged();
- partial void OnLastUpdatedDateChanging(System.DateTime value);
- partial void OnLastUpdatedDateChanged();
- #endregion
-
- public UserProfile()
- {
- this._User = default(EntityRef<User>);
- this._ProfilePropertyDefinition = default(EntityRef<ProfilePropertyDefinition>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProfileID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int ProfileID
- {
- get
- {
- return this._ProfileID;
- }
- set
- {
- if ((this._ProfileID != value))
- {
- this.OnProfileIDChanging(value);
- this.SendPropertyChanging();
- this._ProfileID = value;
- this.SendPropertyChanged("ProfileID");
- this.OnProfileIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", DbType="Int NOT NULL")]
- public int UserID
- {
- get
- {
- return this._UserID;
- }
- set
- {
- if ((this._UserID != value))
- {
- if (this._User.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnUserIDChanging(value);
- this.SendPropertyChanging();
- this._UserID = value;
- this.SendPropertyChanged("UserID");
- this.OnUserIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyDefinitionID", DbType="Int NOT NULL")]
- public int PropertyDefinitionID
- {
- get
- {
- return this._PropertyDefinitionID;
- }
- set
- {
- if ((this._PropertyDefinitionID != value))
- {
- if (this._ProfilePropertyDefinition.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnPropertyDefinitionIDChanging(value);
- this.SendPropertyChanging();
- this._PropertyDefinitionID = value;
- this.SendPropertyChanged("PropertyDefinitionID");
- this.OnPropertyDefinitionIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyValue", DbType="NVarChar(3750)")]
- public string PropertyValue
- {
- get
- {
- return this._PropertyValue;
- }
- set
- {
- if ((this._PropertyValue != value))
- {
- this.OnPropertyValueChanging(value);
- this.SendPropertyChanging();
- this._PropertyValue = value;
- this.SendPropertyChanged("PropertyValue");
- this.OnPropertyValueChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyText", DbType="NText", UpdateCheck=UpdateCheck.Never)]
- public string PropertyText
- {
- get
- {
- return this._PropertyText;
- }
- set
- {
- if ((this._PropertyText != value))
- {
- this.OnPropertyTextChanging(value);
- this.SendPropertyChanging();
- this._PropertyText = value;
- this.SendPropertyChanged("PropertyText");
- this.OnPropertyTextChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Visibility", DbType="Int NOT NULL")]
- public int Visibility
- {
- get
- {
- return this._Visibility;
- }
- set
- {
- if ((this._Visibility != value))
- {
- this.OnVisibilityChanging(value);
- this.SendPropertyChanging();
- this._Visibility = value;
- this.SendPropertyChanged("Visibility");
- this.OnVisibilityChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastUpdatedDate", DbType="DateTime NOT NULL")]
- public System.DateTime LastUpdatedDate
- {
- get
- {
- return this._LastUpdatedDate;
- }
- set
- {
- if ((this._LastUpdatedDate != value))
- {
- this.OnLastUpdatedDateChanging(value);
- this.SendPropertyChanging();
- this._LastUpdatedDate = value;
- this.SendPropertyChanged("LastUpdatedDate");
- this.OnLastUpdatedDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserProfile", Storage="_User", ThisKey="UserID", OtherKey="UserID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
- public User User
- {
- get
- {
- return this._User.Entity;
- }
- set
- {
- User previousValue = this._User.Entity;
- if (((previousValue != value)
- || (this._User.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._User.Entity = null;
- previousValue.UserProfiles.Remove(this);
- }
- this._User.Entity = value;
- if ((value != null))
- {
- value.UserProfiles.Add(this);
- this._UserID = value.UserID;
- }
- else
- {
- this._UserID = default(int);
- }
- this.SendPropertyChanged("User");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="ProfilePropertyDefinition_UserProfile", Storage="_ProfilePropertyDefinition", ThisKey="PropertyDefinitionID", OtherKey="PropertyDefinitionID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
- public ProfilePropertyDefinition ProfilePropertyDefinition
- {
- get
- {
- return this._ProfilePropertyDefinition.Entity;
- }
- set
- {
- ProfilePropertyDefinition previousValue = this._ProfilePropertyDefinition.Entity;
- if (((previousValue != value)
- || (this._ProfilePropertyDefinition.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._ProfilePropertyDefinition.Entity = null;
- previousValue.UserProfiles.Remove(this);
- }
- this._ProfilePropertyDefinition.Entity = value;
- if ((value != null))
- {
- value.UserProfiles.Add(this);
- this._PropertyDefinitionID = value.PropertyDefinitionID;
- }
- else
- {
- this._PropertyDefinitionID = default(int);
- }
- this.SendPropertyChanged("ProfilePropertyDefinition");
- }
- }
- }
-
- 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.ProfilePropertyDefinition")]
- public partial class ProfilePropertyDefinition : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _PropertyDefinitionID;
-
- private System.Nullable<int> _PortalID;
-
- private System.Nullable<int> _ModuleDefID;
-
- private bool _Deleted;
-
- private int _DataType;
-
- private string _DefaultValue;
-
- private string _PropertyCategory;
-
- private string _PropertyName;
-
- private int _Length;
-
- private bool _Required;
-
- private string _ValidationExpression;
-
- private int _ViewOrder;
-
- private bool _Visible;
-
- private System.Nullable<int> _CreatedByUserID;
-
- private System.Nullable<System.DateTime> _CreatedOnDate;
-
- private System.Nullable<int> _LastModifiedByUserID;
-
- private System.Nullable<System.DateTime> _LastModifiedOnDate;
-
- private System.Nullable<int> _DefaultVisibility;
-
- private EntitySet<UserProfile> _UserProfiles;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnPropertyDefinitionIDChanging(int value);
- partial void OnPropertyDefinitionIDChanged();
- partial void OnPortalIDChanging(System.Nullable<int> value);
- partial void OnPortalIDChanged();
- partial void OnModuleDefIDChanging(System.Nullable<int> value);
- partial void OnModuleDefIDChanged();
- partial void OnDeletedChanging(bool value);
- partial void OnDeletedChanged();
- partial void OnDataTypeChanging(int value);
- partial void OnDataTypeChanged();
- partial void OnDefaultValueChanging(string value);
- partial void OnDefaultValueChanged();
- partial void OnPropertyCategoryChanging(string value);
- partial void OnPropertyCategoryChanged();
- partial void OnPropertyNameChanging(string value);
- partial void OnPropertyNameChanged();
- partial void OnLengthChanging(int value);
- partial void OnLengthChanged();
- partial void OnRequiredChanging(bool value);
- partial void OnRequiredChanged();
- partial void OnValidationExpressionChanging(string value);
- partial void OnValidationExpressionChanged();
- partial void OnViewOrderChanging(int value);
- partial void OnViewOrderChanged();
- partial void OnVisibleChanging(bool value);
- partial void OnVisibleChanged();
- partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
- partial void OnCreatedByUserIDChanged();
- partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
- partial void OnCreatedOnDateChanged();
- partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
- partial void OnLastModifiedByUserIDChanged();
- partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
- partial void OnLastModifiedOnDateChanged();
- partial void OnDefaultVisibilityChanging(System.Nullable<int> value);
- partial void OnDefaultVisibilityChanged();
- #endregion
-
- public ProfilePropertyDefinition()
- {
- this._UserProfiles = new EntitySet<UserProfile>(new Action<UserProfile>(this.attach_UserProfiles), new Action<UserProfile>(this.detach_UserProfiles));
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyDefinitionID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int PropertyDefinitionID
- {
- get
- {
- return this._PropertyDefinitionID;
- }
- set
- {
- if ((this._PropertyDefinitionID != value))
- {
- this.OnPropertyDefinitionIDChanging(value);
- this.SendPropertyChanging();
- this._PropertyDefinitionID = value;
- this.SendPropertyChanged("PropertyDefinitionID");
- this.OnPropertyDefinitionIDChanged();
- }
- }
- }
-
- [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();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModuleDefID", DbType="Int")]
- public System.Nullable<int> ModuleDefID
- {
- get
- {
- return this._ModuleDefID;
- }
- set
- {
- if ((this._ModuleDefID != value))
- {
- this.OnModuleDefIDChanging(value);
- this.SendPropertyChanging();
- this._ModuleDefID = value;
- this.SendPropertyChanged("ModuleDefID");
- this.OnModuleDefIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Deleted", DbType="Bit NOT NULL")]
- public bool Deleted
- {
- get
- {
- return this._Deleted;
- }
- set
- {
- if ((this._Deleted != value))
- {
- this.OnDeletedChanging(value);
- this.SendPropertyChanging();
- this._Deleted = value;
- this.SendPropertyChanged("Deleted");
- this.OnDeletedChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataType", DbType="Int NOT NULL")]
- public int DataType
- {
- get
- {
- return this._DataType;
- }
- set
- {
- if ((this._DataType != value))
- {
- this.OnDataTypeChanging(value);
- this.SendPropertyChanging();
- this._DataType = value;
- this.SendPropertyChanged("DataType");
- this.OnDataTypeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefaultValue", DbType="NText", UpdateCheck=UpdateCheck.Never)]
- public string DefaultValue
- {
- get
- {
- return this._DefaultValue;
- }
- set
- {
- if ((this._DefaultValue != value))
- {
- this.OnDefaultValueChanging(value);
- this.SendPropertyChanging();
- this._DefaultValue = value;
- this.SendPropertyChanged("DefaultValue");
- this.OnDefaultValueChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyCategory", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
- public string PropertyCategory
- {
- get
- {
- return this._PropertyCategory;
- }
- set
- {
- if ((this._PropertyCategory != value))
- {
- this.OnPropertyCategoryChanging(value);
- this.SendPropertyChanging();
- this._PropertyCategory = value;
- this.SendPropertyChanged("PropertyCategory");
- this.OnPropertyCategoryChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
- public string PropertyName
- {
- get
- {
- return this._PropertyName;
- }
- set
- {
- if ((this._PropertyName != value))
- {
- this.OnPropertyNameChanging(value);
- this.SendPropertyChanging();
- this._PropertyName = value;
- this.SendPropertyChanged("PropertyName");
- this.OnPropertyNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Length", DbType="Int NOT NULL")]
- public int Length
- {
- get
- {
- return this._Length;
- }
- set
- {
- if ((this._Length != value))
- {
- this.OnLengthChanging(value);
- this.SendPropertyChanging();
- this._Length = value;
- this.SendPropertyChanged("Length");
- this.OnLengthChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Required", DbType="Bit NOT NULL")]
- public bool Required
- {
- get
- {
- return this._Required;
- }
- set
- {
- if ((this._Required != value))
- {
- this.OnRequiredChanging(value);
- this.SendPropertyChanging();
- this._Required = value;
- this.SendPropertyChanged("Required");
- this.OnRequiredChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidationExpression", DbType="NVarChar(2000)")]
- public string ValidationExpression
- {
- get
- {
- return this._ValidationExpression;
- }
- set
- {
- if ((this._ValidationExpression != value))
- {
- this.OnValidationExpressionChanging(value);
- this.SendPropertyChanging();
- this._ValidationExpression = value;
- this.SendPropertyChanged("ValidationExpression");
- this.OnValidationExpressionChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViewOrder", DbType="Int NOT NULL")]
- public int ViewOrder
- {
- get
- {
- return this._ViewOrder;
- }
- set
- {
- if ((this._ViewOrder != value))
- {
- this.OnViewOrderChanging(value);
- this.SendPropertyChanging();
- this._ViewOrder = value;
- this.SendPropertyChanged("ViewOrder");
- this.OnViewOrderChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Visible", DbType="Bit NOT NULL")]
- public bool Visible
- {
- get
- {
- return this._Visible;
- }
- set
- {
- if ((this._Visible != value))
- {
- this.OnVisibleChanging(value);
- this.SendPropertyChanging();
- this._Visible = value;
- this.SendPropertyChanged("Visible");
- this.OnVisibleChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
- public System.Nullable<int> CreatedByUserID
- {
- get
- {
- return this._CreatedByUserID;
- }
- set
- {
- if ((this._CreatedByUserID != value))
- {
- this.OnCreatedByUserIDChanging(value);
- this.SendPropertyChanging();
- this._CreatedByUserID = value;
- this.SendPropertyChanged("CreatedByUserID");
- this.OnCreatedByUserIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
- public System.Nullable<System.DateTime> CreatedOnDate
- {
- get
- {
- return this._CreatedOnDate;
- }
- set
- {
- if ((this._CreatedOnDate != value))
- {
- this.OnCreatedOnDateChanging(value);
- this.SendPropertyChanging();
- this._CreatedOnDate = value;
- this.SendPropertyChanged("CreatedOnDate");
- this.OnCreatedOnDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
- public System.Nullable<int> LastModifiedByUserID
- {
- get
- {
- return this._LastModifiedByUserID;
- }
- set
- {
- if ((this._LastModifiedByUserID != value))
- {
- this.OnLastModifiedByUserIDChanging(value);
- this.SendPropertyChanging();
- this._LastModifiedByUserID = value;
- this.SendPropertyChanged("LastModifiedByUserID");
- this.OnLastModifiedByUserIDChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
- public System.Nullable<System.DateTime> LastModifiedOnDate
- {
- get
- {
- return this._LastModifiedOnDate;
- }
- set
- {
- if ((this._LastModifiedOnDate != value))
- {
- this.OnLastModifiedOnDateChanging(value);
- this.SendPropertyChanging();
- this._LastModifiedOnDate = value;
- this.SendPropertyChanged("LastModifiedOnDate");
- this.OnLastModifiedOnDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefaultVisibility", DbType="Int")]
- public System.Nullable<int> DefaultVisibility
- {
- get
- {
- return this._DefaultVisibility;
- }
- set
- {
- if ((this._DefaultVisibility != value))
- {
- this.OnDefaultVisibilityChanging(value);
- this.SendPropertyChanging();
- this._DefaultVisibility = value;
- this.SendPropertyChanged("DefaultVisibility");
- this.OnDefaultVisibilityChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="ProfilePropertyDefinition_UserProfile", Storage="_UserProfiles", ThisKey="PropertyDefinitionID", OtherKey="PropertyDefinitionID")]
- public EntitySet<UserProfile> UserProfiles
- {
- get
- {
- return this._UserProfiles;
- }
- set
- {
- this._UserProfiles.Assign(value);
- }
- }
-
- 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));
- }
- }
-
- private void attach_UserProfiles(UserProfile entity)
- {
- this.SendPropertyChanging();
- entity.ProfilePropertyDefinition = this;
- }
-
- private void detach_UserProfiles(UserProfile entity)
- {
- this.SendPropertyChanging();
- entity.ProfilePropertyDefinition = null;
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_Staff")]
- public partial class AP_StaffBroker_Staff : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _StaffId;
-
- private string _DisplayName;
-
- private string _CostCenter;
-
- private System.Nullable<short> _StaffTypeId;
-
- private int _UserId1;
-
- private System.Nullable<int> _UserId2;
-
- private bool _Active;
-
- private System.Nullable<int> _PortalId;
-
- private EntitySet<AP_StaffBroker_StaffProfile> _AP_StaffBroker_StaffProfiles;
-
- private EntitySet<AP_StaffBroker_Children> _AP_StaffBroker_Childrens;
-
- private EntityRef<User2> _User2;
-
- private EntityRef<User> _User;
-
- private EntityRef<AP_StaffBroker_StaffType> _AP_StaffBroker_StaffType;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnStaffIdChanging(int value);
- partial void OnStaffIdChanged();
- partial void OnDisplayNameChanging(string value);
- partial void OnDisplayNameChanged();
- partial void OnCostCenterChanging(string value);
- partial void OnCostCenterChanged();
- partial void OnStaffTypeIdChanging(System.Nullable<short> value);
- partial void OnStaffTypeIdChanged();
- partial void OnUserId1Changing(int value);
- partial void OnUserId1Changed();
- partial void OnUserId2Changing(System.Nullable<int> value);
- partial void OnUserId2Changed();
- partial void OnActiveChanging(bool value);
- partial void OnActiveChanged();
- partial void OnPortalIdChanging(System.Nullable<int> value);
- partial void OnPortalIdChanged();
- #endregion
-
- public AP_StaffBroker_Staff()
- {
- this._AP_StaffBroker_StaffProfiles = new EntitySet<AP_StaffBroker_StaffProfile>(new Action<AP_StaffBroker_StaffProfile>(this.attach_AP_StaffBroker_StaffProfiles), new Action<AP_StaffBroker_StaffProfile>(this.detach_AP_StaffBroker_StaffProfiles));
- this._AP_StaffBroker_Childrens = new EntitySet<AP_StaffBroker_Children>(new Action<AP_StaffBroker_Children>(this.attach_AP_StaffBroker_Childrens), new Action<AP_StaffBroker_Children>(this.detach_AP_StaffBroker_Childrens));
- this._User2 = default(EntityRef<User2>);
- this._User = default(EntityRef<User>);
- this._AP_StaffBroker_StaffType = default(EntityRef<AP_StaffBroker_StaffType>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int StaffId
- {
- get
- {
- return this._StaffId;
- }
- set
- {
- if ((this._StaffId != value))
- {
- this.OnStaffIdChanging(value);
- this.SendPropertyChanging();
- this._StaffId = value;
- this.SendPropertyChanged("StaffId");
- this.OnStaffIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
- public string DisplayName
- {
- get
- {
- return this._DisplayName;
- }
- set
- {
- if ((this._DisplayName != value))
- {
- this.OnDisplay…
Large files files are truncated, but you can click here to view the full file