PageRenderTime 67ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 2ms

/App_Code/StaffBroker/StaffBroker.designer.cs

https://github.com/mailekah/AgapeConnect1
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

  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.18034
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. namespace StaffBroker
  12. {
  13. using System.Data.Linq;
  14. using System.Data.Linq.Mapping;
  15. using System.Data;
  16. using System.Collections.Generic;
  17. using System.Reflection;
  18. using System.Linq;
  19. using System.Linq.Expressions;
  20. using System.ComponentModel;
  21. using System;
  22. [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="AgapeConnect")]
  23. public partial class StaffBrokerDataContext : System.Data.Linq.DataContext
  24. {
  25. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  26. #region Extensibility Method Definitions
  27. partial void OnCreated();
  28. partial void InsertUser(User instance);
  29. partial void UpdateUser(User instance);
  30. partial void DeleteUser(User instance);
  31. partial void InsertUserProfile(UserProfile instance);
  32. partial void UpdateUserProfile(UserProfile instance);
  33. partial void DeleteUserProfile(UserProfile instance);
  34. partial void InsertProfilePropertyDefinition(ProfilePropertyDefinition instance);
  35. partial void UpdateProfilePropertyDefinition(ProfilePropertyDefinition instance);
  36. partial void DeleteProfilePropertyDefinition(ProfilePropertyDefinition instance);
  37. partial void InsertAP_StaffBroker_Staff(AP_StaffBroker_Staff instance);
  38. partial void UpdateAP_StaffBroker_Staff(AP_StaffBroker_Staff instance);
  39. partial void DeleteAP_StaffBroker_Staff(AP_StaffBroker_Staff instance);
  40. partial void InsertAP_StaffBroker_StaffType(AP_StaffBroker_StaffType instance);
  41. partial void UpdateAP_StaffBroker_StaffType(AP_StaffBroker_StaffType instance);
  42. partial void DeleteAP_StaffBroker_StaffType(AP_StaffBroker_StaffType instance);
  43. partial void InsertProfilePropertyDefinition2(ProfilePropertyDefinition2 instance);
  44. partial void UpdateProfilePropertyDefinition2(ProfilePropertyDefinition2 instance);
  45. partial void DeleteProfilePropertyDefinition2(ProfilePropertyDefinition2 instance);
  46. partial void InsertUserProfile2(UserProfile2 instance);
  47. partial void UpdateUserProfile2(UserProfile2 instance);
  48. partial void DeleteUserProfile2(UserProfile2 instance);
  49. partial void InsertUser2(User2 instance);
  50. partial void UpdateUser2(User2 instance);
  51. partial void DeleteUser2(User2 instance);
  52. partial void InsertAP_StaffBroker_StaffProfile(AP_StaffBroker_StaffProfile instance);
  53. partial void UpdateAP_StaffBroker_StaffProfile(AP_StaffBroker_StaffProfile instance);
  54. partial void DeleteAP_StaffBroker_StaffProfile(AP_StaffBroker_StaffProfile instance);
  55. partial void InsertAP_StaffBroker_Children(AP_StaffBroker_Children instance);
  56. partial void UpdateAP_StaffBroker_Children(AP_StaffBroker_Children instance);
  57. partial void DeleteAP_StaffBroker_Children(AP_StaffBroker_Children instance);
  58. partial void InsertAP_StaffBroker_LeaderMeta(AP_StaffBroker_LeaderMeta instance);
  59. partial void UpdateAP_StaffBroker_LeaderMeta(AP_StaffBroker_LeaderMeta instance);
  60. partial void DeleteAP_StaffBroker_LeaderMeta(AP_StaffBroker_LeaderMeta instance);
  61. partial void InsertLeader(Leader instance);
  62. partial void UpdateLeader(Leader instance);
  63. partial void DeleteLeader(Leader instance);
  64. partial void InsertDelegate(Delegate instance);
  65. partial void UpdateDelegate(Delegate instance);
  66. partial void DeleteDelegate(Delegate instance);
  67. partial void InsertAP_StaffBroker_LeaderMeta2(AP_StaffBroker_LeaderMeta2 instance);
  68. partial void UpdateAP_StaffBroker_LeaderMeta2(AP_StaffBroker_LeaderMeta2 instance);
  69. partial void DeleteAP_StaffBroker_LeaderMeta2(AP_StaffBroker_LeaderMeta2 instance);
  70. partial void InsertDelegate2(Delegate2 instance);
  71. partial void UpdateDelegate2(Delegate2 instance);
  72. partial void DeleteDelegate2(Delegate2 instance);
  73. partial void InsertLeader2(Leader2 instance);
  74. partial void UpdateLeader2(Leader2 instance);
  75. partial void DeleteLeader2(Leader2 instance);
  76. partial void InsertAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
  77. partial void UpdateAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
  78. partial void DeleteAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
  79. partial void InsertAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
  80. partial void UpdateAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
  81. partial void DeleteAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
  82. partial void InsertAP_StaffBroker_Setting(AP_StaffBroker_Setting instance);
  83. partial void UpdateAP_StaffBroker_Setting(AP_StaffBroker_Setting instance);
  84. partial void DeleteAP_StaffBroker_Setting(AP_StaffBroker_Setting instance);
  85. partial void InsertUserPortal(UserPortal instance);
  86. partial void UpdateUserPortal(UserPortal instance);
  87. partial void DeleteUserPortal(UserPortal instance);
  88. partial void InsertAP_StaffBroker_StaffPropertyDefinition(AP_StaffBroker_StaffPropertyDefinition instance);
  89. partial void UpdateAP_StaffBroker_StaffPropertyDefinition(AP_StaffBroker_StaffPropertyDefinition instance);
  90. partial void DeleteAP_StaffBroker_StaffPropertyDefinition(AP_StaffBroker_StaffPropertyDefinition instance);
  91. partial void InsertAP_Menu_Link(AP_Menu_Link instance);
  92. partial void UpdateAP_Menu_Link(AP_Menu_Link instance);
  93. partial void DeleteAP_Menu_Link(AP_Menu_Link instance);
  94. partial void InsertAP_Staff_SuggestedPayment(AP_Staff_SuggestedPayment instance);
  95. partial void UpdateAP_Staff_SuggestedPayment(AP_Staff_SuggestedPayment instance);
  96. partial void DeleteAP_Staff_SuggestedPayment(AP_Staff_SuggestedPayment instance);
  97. partial void InsertAP_StaffBroker_Department(AP_StaffBroker_Department instance);
  98. partial void UpdateAP_StaffBroker_Department(AP_StaffBroker_Department instance);
  99. partial void DeleteAP_StaffBroker_Department(AP_StaffBroker_Department instance);
  100. #endregion
  101. public StaffBrokerDataContext() :
  102. base(global::System.Configuration.ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString, mappingSource)
  103. {
  104. OnCreated();
  105. }
  106. public StaffBrokerDataContext(string connection) :
  107. base(connection, mappingSource)
  108. {
  109. OnCreated();
  110. }
  111. public StaffBrokerDataContext(System.Data.IDbConnection connection) :
  112. base(connection, mappingSource)
  113. {
  114. OnCreated();
  115. }
  116. public StaffBrokerDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  117. base(connection, mappingSource)
  118. {
  119. OnCreated();
  120. }
  121. public StaffBrokerDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  122. base(connection, mappingSource)
  123. {
  124. OnCreated();
  125. }
  126. public System.Data.Linq.Table<User> Users
  127. {
  128. get
  129. {
  130. return this.GetTable<User>();
  131. }
  132. }
  133. public System.Data.Linq.Table<UserProfile> UserProfiles
  134. {
  135. get
  136. {
  137. return this.GetTable<UserProfile>();
  138. }
  139. }
  140. public System.Data.Linq.Table<ProfilePropertyDefinition> ProfilePropertyDefinitions
  141. {
  142. get
  143. {
  144. return this.GetTable<ProfilePropertyDefinition>();
  145. }
  146. }
  147. public System.Data.Linq.Table<AP_StaffBroker_Staff> AP_StaffBroker_Staffs
  148. {
  149. get
  150. {
  151. return this.GetTable<AP_StaffBroker_Staff>();
  152. }
  153. }
  154. public System.Data.Linq.Table<AP_StaffBroker_StaffType> AP_StaffBroker_StaffTypes
  155. {
  156. get
  157. {
  158. return this.GetTable<AP_StaffBroker_StaffType>();
  159. }
  160. }
  161. public System.Data.Linq.Table<ProfilePropertyDefinition2> ProfilePropertyDefinition2s
  162. {
  163. get
  164. {
  165. return this.GetTable<ProfilePropertyDefinition2>();
  166. }
  167. }
  168. public System.Data.Linq.Table<UserProfile2> UserProfile2s
  169. {
  170. get
  171. {
  172. return this.GetTable<UserProfile2>();
  173. }
  174. }
  175. public System.Data.Linq.Table<User2> User2s
  176. {
  177. get
  178. {
  179. return this.GetTable<User2>();
  180. }
  181. }
  182. public System.Data.Linq.Table<AP_StaffBroker_StaffProfile> AP_StaffBroker_StaffProfiles
  183. {
  184. get
  185. {
  186. return this.GetTable<AP_StaffBroker_StaffProfile>();
  187. }
  188. }
  189. public System.Data.Linq.Table<AP_StaffBroker_Children> AP_StaffBroker_Childrens
  190. {
  191. get
  192. {
  193. return this.GetTable<AP_StaffBroker_Children>();
  194. }
  195. }
  196. public System.Data.Linq.Table<AP_StaffBroker_LeaderMeta> AP_StaffBroker_LeaderMetas
  197. {
  198. get
  199. {
  200. return this.GetTable<AP_StaffBroker_LeaderMeta>();
  201. }
  202. }
  203. public System.Data.Linq.Table<Leader> Leaders
  204. {
  205. get
  206. {
  207. return this.GetTable<Leader>();
  208. }
  209. }
  210. public System.Data.Linq.Table<Delegate> Delegates
  211. {
  212. get
  213. {
  214. return this.GetTable<Delegate>();
  215. }
  216. }
  217. public System.Data.Linq.Table<AP_StaffBroker_LeaderMeta2> AP_StaffBroker_LeaderMeta2s
  218. {
  219. get
  220. {
  221. return this.GetTable<AP_StaffBroker_LeaderMeta2>();
  222. }
  223. }
  224. public System.Data.Linq.Table<Delegate2> Delegate2s
  225. {
  226. get
  227. {
  228. return this.GetTable<Delegate2>();
  229. }
  230. }
  231. public System.Data.Linq.Table<Leader2> Leader2s
  232. {
  233. get
  234. {
  235. return this.GetTable<Leader2>();
  236. }
  237. }
  238. public System.Data.Linq.Table<AP_StaffBroker_AccountCode> AP_StaffBroker_AccountCodes
  239. {
  240. get
  241. {
  242. return this.GetTable<AP_StaffBroker_AccountCode>();
  243. }
  244. }
  245. public System.Data.Linq.Table<AP_StaffBroker_CostCenter> AP_StaffBroker_CostCenters
  246. {
  247. get
  248. {
  249. return this.GetTable<AP_StaffBroker_CostCenter>();
  250. }
  251. }
  252. public System.Data.Linq.Table<AP_StaffBroker_Setting> AP_StaffBroker_Settings
  253. {
  254. get
  255. {
  256. return this.GetTable<AP_StaffBroker_Setting>();
  257. }
  258. }
  259. public System.Data.Linq.Table<UserPortal> UserPortals
  260. {
  261. get
  262. {
  263. return this.GetTable<UserPortal>();
  264. }
  265. }
  266. public System.Data.Linq.Table<AP_Image> AP_Images
  267. {
  268. get
  269. {
  270. return this.GetTable<AP_Image>();
  271. }
  272. }
  273. public System.Data.Linq.Table<AP_StaffBroker_StaffPropertyDefinition> AP_StaffBroker_StaffPropertyDefinitions
  274. {
  275. get
  276. {
  277. return this.GetTable<AP_StaffBroker_StaffPropertyDefinition>();
  278. }
  279. }
  280. public System.Data.Linq.Table<AP_Menu_Link> AP_Menu_Links
  281. {
  282. get
  283. {
  284. return this.GetTable<AP_Menu_Link>();
  285. }
  286. }
  287. public System.Data.Linq.Table<AP_Staff_SuggestedPayment> AP_Staff_SuggestedPayments
  288. {
  289. get
  290. {
  291. return this.GetTable<AP_Staff_SuggestedPayment>();
  292. }
  293. }
  294. public System.Data.Linq.Table<AP_StaffBroker_Department> AP_StaffBroker_Departments
  295. {
  296. get
  297. {
  298. return this.GetTable<AP_StaffBroker_Department>();
  299. }
  300. }
  301. [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.Agape_Main_AlterUserName")]
  302. 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)
  303. {
  304. IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), existUserName, newUserName);
  305. return ((int)(result.ReturnValue));
  306. }
  307. [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.GetSearchResults")]
  308. 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)
  309. {
  310. IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), portalID, tabId, moduleId);
  311. return ((ISingleResult<GetSearchResultsResult>)(result.ReturnValue));
  312. }
  313. [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.GetSearchResultsByWord")]
  314. 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)
  315. {
  316. IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), portalID, word);
  317. return ((ISingleResult<GetSearchResultsByWordResult>)(result.ReturnValue));
  318. }
  319. }
  320. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
  321. public partial class User : INotifyPropertyChanging, INotifyPropertyChanged
  322. {
  323. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  324. private int _UserID;
  325. private string _Username;
  326. private string _FirstName;
  327. private string _LastName;
  328. private bool _IsSuperUser;
  329. private System.Nullable<int> _AffiliateId;
  330. private string _Email;
  331. private string _DisplayName;
  332. private bool _UpdatePassword;
  333. private string _LastIPAddress;
  334. private bool _IsDeleted;
  335. private System.Nullable<int> _CreatedByUserID;
  336. private System.Nullable<System.DateTime> _CreatedOnDate;
  337. private System.Nullable<int> _LastModifiedByUserID;
  338. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  339. private EntitySet<UserProfile> _UserProfiles;
  340. private EntityRef<AP_StaffBroker_Staff> _AP_StaffBroker_Staffs;
  341. private EntitySet<AP_StaffBroker_LeaderMeta> _AP_StaffBroker_LeaderMetas;
  342. private EntitySet<UserPortal> _UserPortals;
  343. #region Extensibility Method Definitions
  344. partial void OnLoaded();
  345. partial void OnValidate(System.Data.Linq.ChangeAction action);
  346. partial void OnCreated();
  347. partial void OnUserIDChanging(int value);
  348. partial void OnUserIDChanged();
  349. partial void OnUsernameChanging(string value);
  350. partial void OnUsernameChanged();
  351. partial void OnFirstNameChanging(string value);
  352. partial void OnFirstNameChanged();
  353. partial void OnLastNameChanging(string value);
  354. partial void OnLastNameChanged();
  355. partial void OnIsSuperUserChanging(bool value);
  356. partial void OnIsSuperUserChanged();
  357. partial void OnAffiliateIdChanging(System.Nullable<int> value);
  358. partial void OnAffiliateIdChanged();
  359. partial void OnEmailChanging(string value);
  360. partial void OnEmailChanged();
  361. partial void OnDisplayNameChanging(string value);
  362. partial void OnDisplayNameChanged();
  363. partial void OnUpdatePasswordChanging(bool value);
  364. partial void OnUpdatePasswordChanged();
  365. partial void OnLastIPAddressChanging(string value);
  366. partial void OnLastIPAddressChanged();
  367. partial void OnIsDeletedChanging(bool value);
  368. partial void OnIsDeletedChanged();
  369. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  370. partial void OnCreatedByUserIDChanged();
  371. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  372. partial void OnCreatedOnDateChanged();
  373. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  374. partial void OnLastModifiedByUserIDChanged();
  375. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  376. partial void OnLastModifiedOnDateChanged();
  377. #endregion
  378. public User()
  379. {
  380. this._UserProfiles = new EntitySet<UserProfile>(new Action<UserProfile>(this.attach_UserProfiles), new Action<UserProfile>(this.detach_UserProfiles));
  381. this._AP_StaffBroker_Staffs = default(EntityRef<AP_StaffBroker_Staff>);
  382. 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));
  383. this._UserPortals = new EntitySet<UserPortal>(new Action<UserPortal>(this.attach_UserPortals), new Action<UserPortal>(this.detach_UserPortals));
  384. OnCreated();
  385. }
  386. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  387. public int UserID
  388. {
  389. get
  390. {
  391. return this._UserID;
  392. }
  393. set
  394. {
  395. if ((this._UserID != value))
  396. {
  397. this.OnUserIDChanging(value);
  398. this.SendPropertyChanging();
  399. this._UserID = value;
  400. this.SendPropertyChanged("UserID");
  401. this.OnUserIDChanged();
  402. }
  403. }
  404. }
  405. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  406. public string Username
  407. {
  408. get
  409. {
  410. return this._Username;
  411. }
  412. set
  413. {
  414. if ((this._Username != value))
  415. {
  416. this.OnUsernameChanging(value);
  417. this.SendPropertyChanging();
  418. this._Username = value;
  419. this.SendPropertyChanged("Username");
  420. this.OnUsernameChanged();
  421. }
  422. }
  423. }
  424. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  425. public string FirstName
  426. {
  427. get
  428. {
  429. return this._FirstName;
  430. }
  431. set
  432. {
  433. if ((this._FirstName != value))
  434. {
  435. this.OnFirstNameChanging(value);
  436. this.SendPropertyChanging();
  437. this._FirstName = value;
  438. this.SendPropertyChanged("FirstName");
  439. this.OnFirstNameChanged();
  440. }
  441. }
  442. }
  443. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  444. public string LastName
  445. {
  446. get
  447. {
  448. return this._LastName;
  449. }
  450. set
  451. {
  452. if ((this._LastName != value))
  453. {
  454. this.OnLastNameChanging(value);
  455. this.SendPropertyChanging();
  456. this._LastName = value;
  457. this.SendPropertyChanged("LastName");
  458. this.OnLastNameChanged();
  459. }
  460. }
  461. }
  462. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperUser", DbType="Bit NOT NULL")]
  463. public bool IsSuperUser
  464. {
  465. get
  466. {
  467. return this._IsSuperUser;
  468. }
  469. set
  470. {
  471. if ((this._IsSuperUser != value))
  472. {
  473. this.OnIsSuperUserChanging(value);
  474. this.SendPropertyChanging();
  475. this._IsSuperUser = value;
  476. this.SendPropertyChanged("IsSuperUser");
  477. this.OnIsSuperUserChanged();
  478. }
  479. }
  480. }
  481. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AffiliateId", DbType="Int")]
  482. public System.Nullable<int> AffiliateId
  483. {
  484. get
  485. {
  486. return this._AffiliateId;
  487. }
  488. set
  489. {
  490. if ((this._AffiliateId != value))
  491. {
  492. this.OnAffiliateIdChanging(value);
  493. this.SendPropertyChanging();
  494. this._AffiliateId = value;
  495. this.SendPropertyChanged("AffiliateId");
  496. this.OnAffiliateIdChanged();
  497. }
  498. }
  499. }
  500. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
  501. public string Email
  502. {
  503. get
  504. {
  505. return this._Email;
  506. }
  507. set
  508. {
  509. if ((this._Email != value))
  510. {
  511. this.OnEmailChanging(value);
  512. this.SendPropertyChanging();
  513. this._Email = value;
  514. this.SendPropertyChanged("Email");
  515. this.OnEmailChanged();
  516. }
  517. }
  518. }
  519. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  520. public string DisplayName
  521. {
  522. get
  523. {
  524. return this._DisplayName;
  525. }
  526. set
  527. {
  528. if ((this._DisplayName != value))
  529. {
  530. this.OnDisplayNameChanging(value);
  531. this.SendPropertyChanging();
  532. this._DisplayName = value;
  533. this.SendPropertyChanged("DisplayName");
  534. this.OnDisplayNameChanged();
  535. }
  536. }
  537. }
  538. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpdatePassword", DbType="Bit NOT NULL")]
  539. public bool UpdatePassword
  540. {
  541. get
  542. {
  543. return this._UpdatePassword;
  544. }
  545. set
  546. {
  547. if ((this._UpdatePassword != value))
  548. {
  549. this.OnUpdatePasswordChanging(value);
  550. this.SendPropertyChanging();
  551. this._UpdatePassword = value;
  552. this.SendPropertyChanged("UpdatePassword");
  553. this.OnUpdatePasswordChanged();
  554. }
  555. }
  556. }
  557. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIPAddress", DbType="NVarChar(50)")]
  558. public string LastIPAddress
  559. {
  560. get
  561. {
  562. return this._LastIPAddress;
  563. }
  564. set
  565. {
  566. if ((this._LastIPAddress != value))
  567. {
  568. this.OnLastIPAddressChanging(value);
  569. this.SendPropertyChanging();
  570. this._LastIPAddress = value;
  571. this.SendPropertyChanged("LastIPAddress");
  572. this.OnLastIPAddressChanged();
  573. }
  574. }
  575. }
  576. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
  577. public bool IsDeleted
  578. {
  579. get
  580. {
  581. return this._IsDeleted;
  582. }
  583. set
  584. {
  585. if ((this._IsDeleted != value))
  586. {
  587. this.OnIsDeletedChanging(value);
  588. this.SendPropertyChanging();
  589. this._IsDeleted = value;
  590. this.SendPropertyChanged("IsDeleted");
  591. this.OnIsDeletedChanged();
  592. }
  593. }
  594. }
  595. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  596. public System.Nullable<int> CreatedByUserID
  597. {
  598. get
  599. {
  600. return this._CreatedByUserID;
  601. }
  602. set
  603. {
  604. if ((this._CreatedByUserID != value))
  605. {
  606. this.OnCreatedByUserIDChanging(value);
  607. this.SendPropertyChanging();
  608. this._CreatedByUserID = value;
  609. this.SendPropertyChanged("CreatedByUserID");
  610. this.OnCreatedByUserIDChanged();
  611. }
  612. }
  613. }
  614. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  615. public System.Nullable<System.DateTime> CreatedOnDate
  616. {
  617. get
  618. {
  619. return this._CreatedOnDate;
  620. }
  621. set
  622. {
  623. if ((this._CreatedOnDate != value))
  624. {
  625. this.OnCreatedOnDateChanging(value);
  626. this.SendPropertyChanging();
  627. this._CreatedOnDate = value;
  628. this.SendPropertyChanged("CreatedOnDate");
  629. this.OnCreatedOnDateChanged();
  630. }
  631. }
  632. }
  633. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  634. public System.Nullable<int> LastModifiedByUserID
  635. {
  636. get
  637. {
  638. return this._LastModifiedByUserID;
  639. }
  640. set
  641. {
  642. if ((this._LastModifiedByUserID != value))
  643. {
  644. this.OnLastModifiedByUserIDChanging(value);
  645. this.SendPropertyChanging();
  646. this._LastModifiedByUserID = value;
  647. this.SendPropertyChanged("LastModifiedByUserID");
  648. this.OnLastModifiedByUserIDChanged();
  649. }
  650. }
  651. }
  652. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  653. public System.Nullable<System.DateTime> LastModifiedOnDate
  654. {
  655. get
  656. {
  657. return this._LastModifiedOnDate;
  658. }
  659. set
  660. {
  661. if ((this._LastModifiedOnDate != value))
  662. {
  663. this.OnLastModifiedOnDateChanging(value);
  664. this.SendPropertyChanging();
  665. this._LastModifiedOnDate = value;
  666. this.SendPropertyChanged("LastModifiedOnDate");
  667. this.OnLastModifiedOnDateChanged();
  668. }
  669. }
  670. }
  671. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserProfile", Storage="_UserProfiles", ThisKey="UserID", OtherKey="UserID")]
  672. public EntitySet<UserProfile> UserProfiles
  673. {
  674. get
  675. {
  676. return this._UserProfiles;
  677. }
  678. set
  679. {
  680. this._UserProfiles.Assign(value);
  681. }
  682. }
  683. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_AP_StaffBroker_Staff", Storage="_AP_StaffBroker_Staffs", ThisKey="UserID", OtherKey="UserId1", IsUnique=true, IsForeignKey=false)]
  684. public AP_StaffBroker_Staff AP_StaffBroker_Staffs
  685. {
  686. get
  687. {
  688. return this._AP_StaffBroker_Staffs.Entity;
  689. }
  690. set
  691. {
  692. AP_StaffBroker_Staff previousValue = this._AP_StaffBroker_Staffs.Entity;
  693. if (((previousValue != value)
  694. || (this._AP_StaffBroker_Staffs.HasLoadedOrAssignedValue == false)))
  695. {
  696. this.SendPropertyChanging();
  697. if ((previousValue != null))
  698. {
  699. this._AP_StaffBroker_Staffs.Entity = null;
  700. previousValue.User = null;
  701. }
  702. this._AP_StaffBroker_Staffs.Entity = value;
  703. if ((value != null))
  704. {
  705. value.User = this;
  706. }
  707. this.SendPropertyChanged("AP_StaffBroker_Staffs");
  708. }
  709. }
  710. }
  711. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_AP_StaffBroker_LeaderMeta", Storage="_AP_StaffBroker_LeaderMetas", ThisKey="UserID", OtherKey="UserId")]
  712. public EntitySet<AP_StaffBroker_LeaderMeta> AP_StaffBroker_LeaderMetas
  713. {
  714. get
  715. {
  716. return this._AP_StaffBroker_LeaderMetas;
  717. }
  718. set
  719. {
  720. this._AP_StaffBroker_LeaderMetas.Assign(value);
  721. }
  722. }
  723. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserPortal", Storage="_UserPortals", ThisKey="UserID", OtherKey="UserId")]
  724. public EntitySet<UserPortal> UserPortals
  725. {
  726. get
  727. {
  728. return this._UserPortals;
  729. }
  730. set
  731. {
  732. this._UserPortals.Assign(value);
  733. }
  734. }
  735. public event PropertyChangingEventHandler PropertyChanging;
  736. public event PropertyChangedEventHandler PropertyChanged;
  737. protected virtual void SendPropertyChanging()
  738. {
  739. if ((this.PropertyChanging != null))
  740. {
  741. this.PropertyChanging(this, emptyChangingEventArgs);
  742. }
  743. }
  744. protected virtual void SendPropertyChanged(String propertyName)
  745. {
  746. if ((this.PropertyChanged != null))
  747. {
  748. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  749. }
  750. }
  751. private void attach_UserProfiles(UserProfile entity)
  752. {
  753. this.SendPropertyChanging();
  754. entity.User = this;
  755. }
  756. private void detach_UserProfiles(UserProfile entity)
  757. {
  758. this.SendPropertyChanging();
  759. entity.User = null;
  760. }
  761. private void attach_AP_StaffBroker_LeaderMetas(AP_StaffBroker_LeaderMeta entity)
  762. {
  763. this.SendPropertyChanging();
  764. entity.User = this;
  765. }
  766. private void detach_AP_StaffBroker_LeaderMetas(AP_StaffBroker_LeaderMeta entity)
  767. {
  768. this.SendPropertyChanging();
  769. entity.User = null;
  770. }
  771. private void attach_UserPortals(UserPortal entity)
  772. {
  773. this.SendPropertyChanging();
  774. entity.User = this;
  775. }
  776. private void detach_UserPortals(UserPortal entity)
  777. {
  778. this.SendPropertyChanging();
  779. entity.User = null;
  780. }
  781. }
  782. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserProfile")]
  783. public partial class UserProfile : INotifyPropertyChanging, INotifyPropertyChanged
  784. {
  785. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  786. private int _ProfileID;
  787. private int _UserID;
  788. private int _PropertyDefinitionID;
  789. private string _PropertyValue;
  790. private string _PropertyText;
  791. private int _Visibility;
  792. private System.DateTime _LastUpdatedDate;
  793. private EntityRef<User> _User;
  794. private EntityRef<ProfilePropertyDefinition> _ProfilePropertyDefinition;
  795. #region Extensibility Method Definitions
  796. partial void OnLoaded();
  797. partial void OnValidate(System.Data.Linq.ChangeAction action);
  798. partial void OnCreated();
  799. partial void OnProfileIDChanging(int value);
  800. partial void OnProfileIDChanged();
  801. partial void OnUserIDChanging(int value);
  802. partial void OnUserIDChanged();
  803. partial void OnPropertyDefinitionIDChanging(int value);
  804. partial void OnPropertyDefinitionIDChanged();
  805. partial void OnPropertyValueChanging(string value);
  806. partial void OnPropertyValueChanged();
  807. partial void OnPropertyTextChanging(string value);
  808. partial void OnPropertyTextChanged();
  809. partial void OnVisibilityChanging(int value);
  810. partial void OnVisibilityChanged();
  811. partial void OnLastUpdatedDateChanging(System.DateTime value);
  812. partial void OnLastUpdatedDateChanged();
  813. #endregion
  814. public UserProfile()
  815. {
  816. this._User = default(EntityRef<User>);
  817. this._ProfilePropertyDefinition = default(EntityRef<ProfilePropertyDefinition>);
  818. OnCreated();
  819. }
  820. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProfileID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  821. public int ProfileID
  822. {
  823. get
  824. {
  825. return this._ProfileID;
  826. }
  827. set
  828. {
  829. if ((this._ProfileID != value))
  830. {
  831. this.OnProfileIDChanging(value);
  832. this.SendPropertyChanging();
  833. this._ProfileID = value;
  834. this.SendPropertyChanged("ProfileID");
  835. this.OnProfileIDChanged();
  836. }
  837. }
  838. }
  839. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", DbType="Int NOT NULL")]
  840. public int UserID
  841. {
  842. get
  843. {
  844. return this._UserID;
  845. }
  846. set
  847. {
  848. if ((this._UserID != value))
  849. {
  850. if (this._User.HasLoadedOrAssignedValue)
  851. {
  852. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  853. }
  854. this.OnUserIDChanging(value);
  855. this.SendPropertyChanging();
  856. this._UserID = value;
  857. this.SendPropertyChanged("UserID");
  858. this.OnUserIDChanged();
  859. }
  860. }
  861. }
  862. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyDefinitionID", DbType="Int NOT NULL")]
  863. public int PropertyDefinitionID
  864. {
  865. get
  866. {
  867. return this._PropertyDefinitionID;
  868. }
  869. set
  870. {
  871. if ((this._PropertyDefinitionID != value))
  872. {
  873. if (this._ProfilePropertyDefinition.HasLoadedOrAssignedValue)
  874. {
  875. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  876. }
  877. this.OnPropertyDefinitionIDChanging(value);
  878. this.SendPropertyChanging();
  879. this._PropertyDefinitionID = value;
  880. this.SendPropertyChanged("PropertyDefinitionID");
  881. this.OnPropertyDefinitionIDChanged();
  882. }
  883. }
  884. }
  885. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyValue", DbType="NVarChar(3750)")]
  886. public string PropertyValue
  887. {
  888. get
  889. {
  890. return this._PropertyValue;
  891. }
  892. set
  893. {
  894. if ((this._PropertyValue != value))
  895. {
  896. this.OnPropertyValueChanging(value);
  897. this.SendPropertyChanging();
  898. this._PropertyValue = value;
  899. this.SendPropertyChanged("PropertyValue");
  900. this.OnPropertyValueChanged();
  901. }
  902. }
  903. }
  904. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyText", DbType="NText", UpdateCheck=UpdateCheck.Never)]
  905. public string PropertyText
  906. {
  907. get
  908. {
  909. return this._PropertyText;
  910. }
  911. set
  912. {
  913. if ((this._PropertyText != value))
  914. {
  915. this.OnPropertyTextChanging(value);
  916. this.SendPropertyChanging();
  917. this._PropertyText = value;
  918. this.SendPropertyChanged("PropertyText");
  919. this.OnPropertyTextChanged();
  920. }
  921. }
  922. }
  923. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Visibility", DbType="Int NOT NULL")]
  924. public int Visibility
  925. {
  926. get
  927. {
  928. return this._Visibility;
  929. }
  930. set
  931. {
  932. if ((this._Visibility != value))
  933. {
  934. this.OnVisibilityChanging(value);
  935. this.SendPropertyChanging();
  936. this._Visibility = value;
  937. this.SendPropertyChanged("Visibility");
  938. this.OnVisibilityChanged();
  939. }
  940. }
  941. }
  942. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastUpdatedDate", DbType="DateTime NOT NULL")]
  943. public System.DateTime LastUpdatedDate
  944. {
  945. get
  946. {
  947. return this._LastUpdatedDate;
  948. }
  949. set
  950. {
  951. if ((this._LastUpdatedDate != value))
  952. {
  953. this.OnLastUpdatedDateChanging(value);
  954. this.SendPropertyChanging();
  955. this._LastUpdatedDate = value;
  956. this.SendPropertyChanged("LastUpdatedDate");
  957. this.OnLastUpdatedDateChanged();
  958. }
  959. }
  960. }
  961. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserProfile", Storage="_User", ThisKey="UserID", OtherKey="UserID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
  962. public User User
  963. {
  964. get
  965. {
  966. return this._User.Entity;
  967. }
  968. set
  969. {
  970. User previousValue = this._User.Entity;
  971. if (((previousValue != value)
  972. || (this._User.HasLoadedOrAssignedValue == false)))
  973. {
  974. this.SendPropertyChanging();
  975. if ((previousValue != null))
  976. {
  977. this._User.Entity = null;
  978. previousValue.UserProfiles.Remove(this);
  979. }
  980. this._User.Entity = value;
  981. if ((value != null))
  982. {
  983. value.UserProfiles.Add(this);
  984. this._UserID = value.UserID;
  985. }
  986. else
  987. {
  988. this._UserID = default(int);
  989. }
  990. this.SendPropertyChanged("User");
  991. }
  992. }
  993. }
  994. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="ProfilePropertyDefinition_UserProfile", Storage="_ProfilePropertyDefinition", ThisKey="PropertyDefinitionID", OtherKey="PropertyDefinitionID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
  995. public ProfilePropertyDefinition ProfilePropertyDefinition
  996. {
  997. get
  998. {
  999. return this._ProfilePropertyDefinition.Entity;
  1000. }
  1001. set
  1002. {
  1003. ProfilePropertyDefinition previousValue = this._ProfilePropertyDefinition.Entity;
  1004. if (((previousValue != value)
  1005. || (this._ProfilePropertyDefinition.HasLoadedOrAssignedValue == false)))
  1006. {
  1007. this.SendPropertyChanging();
  1008. if ((previousValue != null))
  1009. {
  1010. this._ProfilePropertyDefinition.Entity = null;
  1011. previousValue.UserProfiles.Remove(this);
  1012. }
  1013. this._ProfilePropertyDefinition.Entity = value;
  1014. if ((value != null))
  1015. {
  1016. value.UserProfiles.Add(this);
  1017. this._PropertyDefinitionID = value.PropertyDefinitionID;
  1018. }
  1019. else
  1020. {
  1021. this._PropertyDefinitionID = default(int);
  1022. }
  1023. this.SendPropertyChanged("ProfilePropertyDefinition");
  1024. }
  1025. }
  1026. }
  1027. public event PropertyChangingEventHandler PropertyChanging;
  1028. public event PropertyChangedEventHandler PropertyChanged;
  1029. protected virtual void SendPropertyChanging()
  1030. {
  1031. if ((this.PropertyChanging != null))
  1032. {
  1033. this.PropertyChanging(this, emptyChangingEventArgs);
  1034. }
  1035. }
  1036. protected virtual void SendPropertyChanged(String propertyName)
  1037. {
  1038. if ((this.PropertyChanged != null))
  1039. {
  1040. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1041. }
  1042. }
  1043. }
  1044. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ProfilePropertyDefinition")]
  1045. public partial class ProfilePropertyDefinition : INotifyPropertyChanging, INotifyPropertyChanged
  1046. {
  1047. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1048. private int _PropertyDefinitionID;
  1049. private System.Nullable<int> _PortalID;
  1050. private System.Nullable<int> _ModuleDefID;
  1051. private bool _Deleted;
  1052. private int _DataType;
  1053. private string _DefaultValue;
  1054. private string _PropertyCategory;
  1055. private string _PropertyName;
  1056. private int _Length;
  1057. private bool _Required;
  1058. private string _ValidationExpression;
  1059. private int _ViewOrder;
  1060. private bool _Visible;
  1061. private System.Nullable<int> _CreatedByUserID;
  1062. private System.Nullable<System.DateTime> _CreatedOnDate;
  1063. private System.Nullable<int> _LastModifiedByUserID;
  1064. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  1065. private System.Nullable<int> _DefaultVisibility;
  1066. private EntitySet<UserProfile> _UserProfiles;
  1067. #region Extensibility Method Definitions
  1068. partial void OnLoaded();
  1069. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1070. partial void OnCreated();
  1071. partial void OnPropertyDefinitionIDChanging(int value);
  1072. partial void OnPropertyDefinitionIDChanged();
  1073. partial void OnPortalIDChanging(System.Nullable<int> value);
  1074. partial void OnPortalIDChanged();
  1075. partial void OnModuleDefIDChanging(System.Nullable<int> value);
  1076. partial void OnModuleDefIDChanged();
  1077. partial void OnDeletedChanging(bool value);
  1078. partial void OnDeletedChanged();
  1079. partial void OnDataTypeChanging(int value);
  1080. partial void OnDataTypeChanged();
  1081. partial void OnDefaultValueChanging(string value);
  1082. partial void OnDefaultValueChanged();
  1083. partial void OnPropertyCategoryChanging(string value);
  1084. partial void OnPropertyCategoryChanged();
  1085. partial void OnPropertyNameChanging(string value);
  1086. partial void OnPropertyNameChanged();
  1087. partial void OnLengthChanging(int value);
  1088. partial void OnLengthChanged();
  1089. partial void OnRequiredChanging(bool value);
  1090. partial void OnRequiredChanged();
  1091. partial void OnValidationExpressionChanging(string value);
  1092. partial void OnValidationExpressionChanged();
  1093. partial void OnViewOrderChanging(int value);
  1094. partial void OnViewOrderChanged();
  1095. partial void OnVisibleChanging(bool value);
  1096. partial void OnVisibleChanged();
  1097. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  1098. partial void OnCreatedByUserIDChanged();
  1099. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  1100. partial void OnCreatedOnDateChanged();
  1101. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  1102. partial void OnLastModifiedByUserIDChanged();
  1103. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  1104. partial void OnLastModifiedOnDateChanged();
  1105. partial void OnDefaultVisibilityChanging(System.Nullable<int> value);
  1106. partial void OnDefaultVisibilityChanged();
  1107. #endregion
  1108. public ProfilePropertyDefinition()
  1109. {
  1110. this._UserProfiles = new EntitySet<UserProfile>(new Action<UserProfile>(this.attach_UserProfiles), new Action<UserProfile>(this.detach_UserProfiles));
  1111. OnCreated();
  1112. }
  1113. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyDefinitionID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1114. public int PropertyDefinitionID
  1115. {
  1116. get
  1117. {
  1118. return this._PropertyDefinitionID;
  1119. }
  1120. set
  1121. {
  1122. if ((this._PropertyDefinitionID != value))
  1123. {
  1124. this.OnPropertyDefinitionIDChanging(value);
  1125. this.SendPropertyChanging();
  1126. this._PropertyDefinitionID = value;
  1127. this.SendPropertyChanged("PropertyDefinitionID");
  1128. this.OnPropertyDefinitionIDChanged();
  1129. }
  1130. }
  1131. }
  1132. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalID", DbType="Int")]
  1133. public System.Nullable<int> PortalID
  1134. {
  1135. get
  1136. {
  1137. return this._PortalID;
  1138. }
  1139. set
  1140. {
  1141. if ((this._PortalID != value))
  1142. {
  1143. this.OnPortalIDChanging(value);
  1144. this.SendPropertyChanging();
  1145. this._PortalID = value;
  1146. this.SendPropertyChanged("PortalID");
  1147. this.OnPortalIDChanged();
  1148. }
  1149. }
  1150. }
  1151. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModuleDefID", DbType="Int")]
  1152. public System.Nullable<int> ModuleDefID
  1153. {
  1154. get
  1155. {
  1156. return this._ModuleDefID;
  1157. }
  1158. set
  1159. {
  1160. if ((this._ModuleDefID != value))
  1161. {
  1162. this.OnModuleDefIDChanging(value);
  1163. this.SendPropertyChanging();
  1164. this._ModuleDefID = value;
  1165. this.SendPropertyChanged("ModuleDefID");
  1166. this.OnModuleDefIDChanged();
  1167. }
  1168. }
  1169. }
  1170. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Deleted", DbType="Bit NOT NULL")]
  1171. public bool Deleted
  1172. {
  1173. get
  1174. {
  1175. return this._Deleted;
  1176. }
  1177. set
  1178. {
  1179. if ((this._Deleted != value))
  1180. {
  1181. this.OnDeletedChanging(value);
  1182. this.SendPropertyChanging();
  1183. this._Deleted = value;
  1184. this.SendPropertyChanged("Deleted");
  1185. this.OnDeletedChanged();
  1186. }
  1187. }
  1188. }
  1189. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataType", DbType="Int NOT NULL")]
  1190. public int DataType
  1191. {
  1192. get
  1193. {
  1194. return this._DataType;
  1195. }
  1196. set
  1197. {
  1198. if ((this._DataType != value))
  1199. {
  1200. this.OnDataTypeChanging(value);
  1201. this.SendPropertyChanging();
  1202. this._DataType = value;
  1203. this.SendPropertyChanged("DataType");
  1204. this.OnDataTypeChanged();
  1205. }
  1206. }
  1207. }
  1208. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefaultValue", DbType="NText", UpdateCheck=UpdateCheck.Never)]
  1209. public string DefaultValue
  1210. {
  1211. get
  1212. {
  1213. return this._DefaultValue;
  1214. }
  1215. set
  1216. {
  1217. if ((this._DefaultValue != value))
  1218. {
  1219. this.OnDefaultValueChanging(value);
  1220. this.SendPropertyChanging();
  1221. this._DefaultValue = value;
  1222. this.SendPropertyChanged("DefaultValue");
  1223. this.OnDefaultValueChanged();
  1224. }
  1225. }
  1226. }
  1227. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyCategory", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  1228. public string PropertyCategory
  1229. {
  1230. get
  1231. {
  1232. return this._PropertyCategory;
  1233. }
  1234. set
  1235. {
  1236. if ((this._PropertyCategory != value))
  1237. {
  1238. this.OnPropertyCategoryChanging(value);
  1239. this.SendPropertyChanging();
  1240. this._PropertyCategory = value;
  1241. this.SendPropertyChanged("PropertyCategory");
  1242. this.OnPropertyCategoryChanged();
  1243. }
  1244. }
  1245. }
  1246. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  1247. public string PropertyName
  1248. {
  1249. get
  1250. {
  1251. return this._PropertyName;
  1252. }
  1253. set
  1254. {
  1255. if ((this._PropertyName != value))
  1256. {
  1257. this.OnPropertyNameChanging(value);
  1258. this.SendPropertyChanging();
  1259. this._PropertyName = value;
  1260. this.SendPropertyChanged("PropertyName");
  1261. this.OnPropertyNameChanged();
  1262. }
  1263. }
  1264. }
  1265. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Length", DbType="Int NOT NULL")]
  1266. public int Length
  1267. {
  1268. get
  1269. {
  1270. return this._Length;
  1271. }
  1272. set
  1273. {
  1274. if ((this._Length != value))
  1275. {
  1276. this.OnLengthChanging(value);
  1277. this.SendPropertyChanging();
  1278. this._Length = value;
  1279. this.SendPropertyChanged("Length");
  1280. this.OnLengthChanged();
  1281. }
  1282. }
  1283. }
  1284. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Required", DbType="Bit NOT NULL")]
  1285. public bool Required
  1286. {
  1287. get
  1288. {
  1289. return this._Required;
  1290. }
  1291. set
  1292. {
  1293. if ((this._Required != value))
  1294. {
  1295. this.OnRequiredChanging(value);
  1296. this.SendPropertyChanging();
  1297. this._Required = value;
  1298. this.SendPropertyChanged("Required");
  1299. this.OnRequiredChanged();
  1300. }
  1301. }
  1302. }
  1303. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidationExpression", DbType="NVarChar(2000)")]
  1304. public string ValidationExpression
  1305. {
  1306. get
  1307. {
  1308. return this._ValidationExpression;
  1309. }
  1310. set
  1311. {
  1312. if ((this._ValidationExpression != value))
  1313. {
  1314. this.OnValidationExpressionChanging(value);
  1315. this.SendPropertyChanging();
  1316. this._ValidationExpression = value;
  1317. this.SendPropertyChanged("ValidationExpression");
  1318. this.OnValidationExpressionChanged();
  1319. }
  1320. }
  1321. }
  1322. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViewOrder", DbType="Int NOT NULL")]
  1323. public int ViewOrder
  1324. {
  1325. get
  1326. {
  1327. return this._ViewOrder;
  1328. }
  1329. set
  1330. {
  1331. if ((this._ViewOrder != value))
  1332. {
  1333. this.OnViewOrderChanging(value);
  1334. this.SendPropertyChanging();
  1335. this._ViewOrder = value;
  1336. this.SendPropertyChanged("ViewOrder");
  1337. this.OnViewOrderChanged();
  1338. }
  1339. }
  1340. }
  1341. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Visible", DbType="Bit NOT NULL")]
  1342. public bool Visible
  1343. {
  1344. get
  1345. {
  1346. return this._Visible;
  1347. }
  1348. set
  1349. {
  1350. if ((this._Visible != value))
  1351. {
  1352. this.OnVisibleChanging(value);
  1353. this.SendPropertyChanging();
  1354. this._Visible = value;
  1355. this.SendPropertyChanged("Visible");
  1356. this.OnVisibleChanged();
  1357. }
  1358. }
  1359. }
  1360. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  1361. public System.Nullable<int> CreatedByUserID
  1362. {
  1363. get
  1364. {
  1365. return this._CreatedByUserID;
  1366. }
  1367. set
  1368. {
  1369. if ((this._CreatedByUserID != value))
  1370. {
  1371. this.OnCreatedByUserIDChanging(value);
  1372. this.SendPropertyChanging();
  1373. this._CreatedByUserID = value;
  1374. this.SendPropertyChanged("CreatedByUserID");
  1375. this.OnCreatedByUserIDChanged();
  1376. }
  1377. }
  1378. }
  1379. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  1380. public System.Nullable<System.DateTime> CreatedOnDate
  1381. {
  1382. get
  1383. {
  1384. return this._CreatedOnDate;
  1385. }
  1386. set
  1387. {
  1388. if ((this._CreatedOnDate != value))
  1389. {
  1390. this.OnCreatedOnDateChanging(value);
  1391. this.SendPropertyChanging();
  1392. this._CreatedOnDate = value;
  1393. this.SendPropertyChanged("CreatedOnDate");
  1394. this.OnCreatedOnDateChanged();
  1395. }
  1396. }
  1397. }
  1398. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  1399. public System.Nullable<int> LastModifiedByUserID
  1400. {
  1401. get
  1402. {
  1403. return this._LastModifiedByUserID;
  1404. }
  1405. set
  1406. {
  1407. if ((this._LastModifiedByUserID != value))
  1408. {
  1409. this.OnLastModifiedByUserIDChanging(value);
  1410. this.SendPropertyChanging();
  1411. this._LastModifiedByUserID = value;
  1412. this.SendPropertyChanged("LastModifiedByUserID");
  1413. this.OnLastModifiedByUserIDChanged();
  1414. }
  1415. }
  1416. }
  1417. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  1418. public System.Nullable<System.DateTime> LastModifiedOnDate
  1419. {
  1420. get
  1421. {
  1422. return this._LastModifiedOnDate;
  1423. }
  1424. set
  1425. {
  1426. if ((this._LastModifiedOnDate != value))
  1427. {
  1428. this.OnLastModifiedOnDateChanging(value);
  1429. this.SendPropertyChanging();
  1430. this._LastModifiedOnDate = value;
  1431. this.SendPropertyChanged("LastModifiedOnDate");
  1432. this.OnLastModifiedOnDateChanged();
  1433. }
  1434. }
  1435. }
  1436. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefaultVisibility", DbType="Int")]
  1437. public System.Nullable<int> DefaultVisibility
  1438. {
  1439. get
  1440. {
  1441. return this._DefaultVisibility;
  1442. }
  1443. set
  1444. {
  1445. if ((this._DefaultVisibility != value))
  1446. {
  1447. this.OnDefaultVisibilityChanging(value);
  1448. this.SendPropertyChanging();
  1449. this._DefaultVisibility = value;
  1450. this.SendPropertyChanged("DefaultVisibility");
  1451. this.OnDefaultVisibilityChanged();
  1452. }
  1453. }
  1454. }
  1455. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="ProfilePropertyDefinition_UserProfile", Storage="_UserProfiles", ThisKey="PropertyDefinitionID", OtherKey="PropertyDefinitionID")]
  1456. public EntitySet<UserProfile> UserProfiles
  1457. {
  1458. get
  1459. {
  1460. return this._UserProfiles;
  1461. }
  1462. set
  1463. {
  1464. this._UserProfiles.Assign(value);
  1465. }
  1466. }
  1467. public event PropertyChangingEventHandler PropertyChanging;
  1468. public event PropertyChangedEventHandler PropertyChanged;
  1469. protected virtual void SendPropertyChanging()
  1470. {
  1471. if ((this.PropertyChanging != null))
  1472. {
  1473. this.PropertyChanging(this, emptyChangingEventArgs);
  1474. }
  1475. }
  1476. protected virtual void SendPropertyChanged(String propertyName)
  1477. {
  1478. if ((this.PropertyChanged != null))
  1479. {
  1480. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1481. }
  1482. }
  1483. private void attach_UserProfiles(UserProfile entity)
  1484. {
  1485. this.SendPropertyChanging();
  1486. entity.ProfilePropertyDefinition = this;
  1487. }
  1488. private void detach_UserProfiles(UserProfile entity)
  1489. {
  1490. this.SendPropertyChanging();
  1491. entity.ProfilePropertyDefinition = null;
  1492. }
  1493. }
  1494. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_Staff")]
  1495. public partial class AP_StaffBroker_Staff : INotifyPropertyChanging, INotifyPropertyChanged
  1496. {
  1497. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1498. private int _StaffId;
  1499. private string _DisplayName;
  1500. private string _CostCenter;
  1501. private System.Nullable<short> _StaffTypeId;
  1502. private int _UserId1;
  1503. private System.Nullable<int> _UserId2;
  1504. private bool _Active;
  1505. private System.Nullable<int> _PortalId;
  1506. private EntitySet<AP_StaffBroker_StaffProfile> _AP_StaffBroker_StaffProfiles;
  1507. private EntitySet<AP_StaffBroker_Children> _AP_StaffBroker_Childrens;
  1508. private EntityRef<User2> _User2;
  1509. private EntityRef<User> _User;
  1510. private EntityRef<AP_StaffBroker_StaffType> _AP_StaffBroker_StaffType;
  1511. #region Extensibility Method Definitions
  1512. partial void OnLoaded();
  1513. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1514. partial void OnCreated();
  1515. partial void OnStaffIdChanging(int value);
  1516. partial void OnStaffIdChanged();
  1517. partial void OnDisplayNameChanging(string value);
  1518. partial void OnDisplayNameChanged();
  1519. partial void OnCostCenterChanging(string value);
  1520. partial void OnCostCenterChanged();
  1521. partial void OnStaffTypeIdChanging(System.Nullable<short> value);
  1522. partial void OnStaffTypeIdChanged();
  1523. partial void OnUserId1Changing(int value);
  1524. partial void OnUserId1Changed();
  1525. partial void OnUserId2Changing(System.Nullable<int> value);
  1526. partial void OnUserId2Changed();
  1527. partial void OnActiveChanging(bool value);
  1528. partial void OnActiveChanged();
  1529. partial void OnPortalIdChanging(System.Nullable<int> value);
  1530. partial void OnPortalIdChanged();
  1531. #endregion
  1532. public AP_StaffBroker_Staff()
  1533. {
  1534. 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));
  1535. 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));
  1536. this._User2 = default(EntityRef<User2>);
  1537. this._User = default(EntityRef<User>);
  1538. this._AP_StaffBroker_StaffType = default(EntityRef<AP_StaffBroker_StaffType>);
  1539. OnCreated();
  1540. }
  1541. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1542. public int StaffId
  1543. {
  1544. get
  1545. {
  1546. return this._StaffId;
  1547. }
  1548. set
  1549. {
  1550. if ((this._StaffId != value))
  1551. {
  1552. this.OnStaffIdChanging(value);
  1553. this.SendPropertyChanging();
  1554. this._StaffId = value;
  1555. this.SendPropertyChanged("StaffId");
  1556. this.OnStaffIdChanged();
  1557. }
  1558. }
  1559. }
  1560. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  1561. public string DisplayName
  1562. {
  1563. get
  1564. {
  1565. return this._DisplayName;
  1566. }
  1567. set
  1568. {
  1569. if ((this._DisplayName != value))
  1570. {
  1571. this.OnDisplay

Large files files are truncated, but you can click here to view the full file