PageRenderTime 103ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 1ms

/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
  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.OnDisplayNameChanging(value);
  1572. this.SendPropertyChanging();
  1573. this._DisplayName = value;
  1574. this.SendPropertyChanged("DisplayName");
  1575. this.OnDisplayNameChanged();
  1576. }
  1577. }
  1578. }
  1579. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCenter", DbType="NVarChar(20)")]
  1580. public string CostCenter
  1581. {
  1582. get
  1583. {
  1584. return this._CostCenter;
  1585. }
  1586. set
  1587. {
  1588. if ((this._CostCenter != value))
  1589. {
  1590. this.OnCostCenterChanging(value);
  1591. this.SendPropertyChanging();
  1592. this._CostCenter = value;
  1593. this.SendPropertyChanged("CostCenter");
  1594. this.OnCostCenterChanged();
  1595. }
  1596. }
  1597. }
  1598. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffTypeId", DbType="SmallInt")]
  1599. public System.Nullable<short> StaffTypeId
  1600. {
  1601. get
  1602. {
  1603. return this._StaffTypeId;
  1604. }
  1605. set
  1606. {
  1607. if ((this._StaffTypeId != value))
  1608. {
  1609. if (this._AP_StaffBroker_StaffType.HasLoadedOrAssignedValue)
  1610. {
  1611. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1612. }
  1613. this.OnStaffTypeIdChanging(value);
  1614. this.SendPropertyChanging();
  1615. this._StaffTypeId = value;
  1616. this.SendPropertyChanged("StaffTypeId");
  1617. this.OnStaffTypeIdChanged();
  1618. }
  1619. }
  1620. }
  1621. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId1", DbType="Int NOT NULL")]
  1622. public int UserId1
  1623. {
  1624. get
  1625. {
  1626. return this._UserId1;
  1627. }
  1628. set
  1629. {
  1630. if ((this._UserId1 != value))
  1631. {
  1632. if (this._User.HasLoadedOrAssignedValue)
  1633. {
  1634. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1635. }
  1636. this.OnUserId1Changing(value);
  1637. this.SendPropertyChanging();
  1638. this._UserId1 = value;
  1639. this.SendPropertyChanged("UserId1");
  1640. this.OnUserId1Changed();
  1641. }
  1642. }
  1643. }
  1644. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId2", DbType="Int")]
  1645. public System.Nullable<int> UserId2
  1646. {
  1647. get
  1648. {
  1649. return this._UserId2;
  1650. }
  1651. set
  1652. {
  1653. if ((this._UserId2 != value))
  1654. {
  1655. if (this._User2.HasLoadedOrAssignedValue)
  1656. {
  1657. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1658. }
  1659. this.OnUserId2Changing(value);
  1660. this.SendPropertyChanging();
  1661. this._UserId2 = value;
  1662. this.SendPropertyChanged("UserId2");
  1663. this.OnUserId2Changed();
  1664. }
  1665. }
  1666. }
  1667. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Active", DbType="bit")]
  1668. public bool Active
  1669. {
  1670. get
  1671. {
  1672. return this._Active;
  1673. }
  1674. set
  1675. {
  1676. if ((this._Active != value))
  1677. {
  1678. this.OnActiveChanging(value);
  1679. this.SendPropertyChanging();
  1680. this._Active = value;
  1681. this.SendPropertyChanged("Active");
  1682. this.OnActiveChanged();
  1683. }
  1684. }
  1685. }
  1686. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="int")]
  1687. public System.Nullable<int> PortalId
  1688. {
  1689. get
  1690. {
  1691. return this._PortalId;
  1692. }
  1693. set
  1694. {
  1695. if ((this._PortalId != value))
  1696. {
  1697. this.OnPortalIdChanging(value);
  1698. this.SendPropertyChanging();
  1699. this._PortalId = value;
  1700. this.SendPropertyChanged("PortalId");
  1701. this.OnPortalIdChanged();
  1702. }
  1703. }
  1704. }
  1705. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_Staff_AP_StaffBroker_StaffProfile", Storage="_AP_StaffBroker_StaffProfiles", ThisKey="StaffId", OtherKey="StaffId")]
  1706. public EntitySet<AP_StaffBroker_StaffProfile> AP_StaffBroker_StaffProfiles
  1707. {
  1708. get
  1709. {
  1710. return this._AP_StaffBroker_StaffProfiles;
  1711. }
  1712. set
  1713. {
  1714. this._AP_StaffBroker_StaffProfiles.Assign(value);
  1715. }
  1716. }
  1717. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_Staff_AP_StaffBroker_Children", Storage="_AP_StaffBroker_Childrens", ThisKey="StaffId", OtherKey="StaffId")]
  1718. public EntitySet<AP_StaffBroker_Children> AP_StaffBroker_Childrens
  1719. {
  1720. get
  1721. {
  1722. return this._AP_StaffBroker_Childrens;
  1723. }
  1724. set
  1725. {
  1726. this._AP_StaffBroker_Childrens.Assign(value);
  1727. }
  1728. }
  1729. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User2_AP_StaffBroker_Staff", Storage="_User2", ThisKey="UserId2", OtherKey="UserID", IsForeignKey=true)]
  1730. public User2 User2
  1731. {
  1732. get
  1733. {
  1734. return this._User2.Entity;
  1735. }
  1736. set
  1737. {
  1738. User2 previousValue = this._User2.Entity;
  1739. if (((previousValue != value)
  1740. || (this._User2.HasLoadedOrAssignedValue == false)))
  1741. {
  1742. this.SendPropertyChanging();
  1743. if ((previousValue != null))
  1744. {
  1745. this._User2.Entity = null;
  1746. previousValue.AP_StaffBroker_Staffs = null;
  1747. }
  1748. this._User2.Entity = value;
  1749. if ((value != null))
  1750. {
  1751. value.AP_StaffBroker_Staffs = this;
  1752. this._UserId2 = value.UserID;
  1753. }
  1754. else
  1755. {
  1756. this._UserId2 = default(Nullable<int>);
  1757. }
  1758. this.SendPropertyChanged("User2");
  1759. }
  1760. }
  1761. }
  1762. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_AP_StaffBroker_Staff", Storage="_User", ThisKey="UserId1", OtherKey="UserID", IsForeignKey=true)]
  1763. public User User
  1764. {
  1765. get
  1766. {
  1767. return this._User.Entity;
  1768. }
  1769. set
  1770. {
  1771. User previousValue = this._User.Entity;
  1772. if (((previousValue != value)
  1773. || (this._User.HasLoadedOrAssignedValue == false)))
  1774. {
  1775. this.SendPropertyChanging();
  1776. if ((previousValue != null))
  1777. {
  1778. this._User.Entity = null;
  1779. previousValue.AP_StaffBroker_Staffs = null;
  1780. }
  1781. this._User.Entity = value;
  1782. if ((value != null))
  1783. {
  1784. value.AP_StaffBroker_Staffs = this;
  1785. this._UserId1 = value.UserID;
  1786. }
  1787. else
  1788. {
  1789. this._UserId1 = default(int);
  1790. }
  1791. this.SendPropertyChanged("User");
  1792. }
  1793. }
  1794. }
  1795. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_StaffType_AP_StaffBroker_Staff", Storage="_AP_StaffBroker_StaffType", ThisKey="StaffTypeId", OtherKey="StaffTypeId", IsForeignKey=true)]
  1796. public AP_StaffBroker_StaffType AP_StaffBroker_StaffType
  1797. {
  1798. get
  1799. {
  1800. return this._AP_StaffBroker_StaffType.Entity;
  1801. }
  1802. set
  1803. {
  1804. AP_StaffBroker_StaffType previousValue = this._AP_StaffBroker_StaffType.Entity;
  1805. if (((previousValue != value)
  1806. || (this._AP_StaffBroker_StaffType.HasLoadedOrAssignedValue == false)))
  1807. {
  1808. this.SendPropertyChanging();
  1809. if ((previousValue != null))
  1810. {
  1811. this._AP_StaffBroker_StaffType.Entity = null;
  1812. previousValue.AP_StaffBroker_Staffs.Remove(this);
  1813. }
  1814. this._AP_StaffBroker_StaffType.Entity = value;
  1815. if ((value != null))
  1816. {
  1817. value.AP_StaffBroker_Staffs.Add(this);
  1818. this._StaffTypeId = value.StaffTypeId;
  1819. }
  1820. else
  1821. {
  1822. this._StaffTypeId = default(Nullable<short>);
  1823. }
  1824. this.SendPropertyChanged("AP_StaffBroker_StaffType");
  1825. }
  1826. }
  1827. }
  1828. public event PropertyChangingEventHandler PropertyChanging;
  1829. public event PropertyChangedEventHandler PropertyChanged;
  1830. protected virtual void SendPropertyChanging()
  1831. {
  1832. if ((this.PropertyChanging != null))
  1833. {
  1834. this.PropertyChanging(this, emptyChangingEventArgs);
  1835. }
  1836. }
  1837. protected virtual void SendPropertyChanged(String propertyName)
  1838. {
  1839. if ((this.PropertyChanged != null))
  1840. {
  1841. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1842. }
  1843. }
  1844. private void attach_AP_StaffBroker_StaffProfiles(AP_StaffBroker_StaffProfile entity)
  1845. {
  1846. this.SendPropertyChanging();
  1847. entity.AP_StaffBroker_Staff = this;
  1848. }
  1849. private void detach_AP_StaffBroker_StaffProfiles(AP_StaffBroker_StaffProfile entity)
  1850. {
  1851. this.SendPropertyChanging();
  1852. entity.AP_StaffBroker_Staff = null;
  1853. }
  1854. private void attach_AP_StaffBroker_Childrens(AP_StaffBroker_Children entity)
  1855. {
  1856. this.SendPropertyChanging();
  1857. entity.AP_StaffBroker_Staff = this;
  1858. }
  1859. private void detach_AP_StaffBroker_Childrens(AP_StaffBroker_Children entity)
  1860. {
  1861. this.SendPropertyChanging();
  1862. entity.AP_StaffBroker_Staff = null;
  1863. }
  1864. }
  1865. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_StaffType")]
  1866. public partial class AP_StaffBroker_StaffType : INotifyPropertyChanging, INotifyPropertyChanged
  1867. {
  1868. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1869. private short _StaffTypeId;
  1870. private string _Name;
  1871. private System.Nullable<int> _PortalId;
  1872. private EntitySet<AP_StaffBroker_Staff> _AP_StaffBroker_Staffs;
  1873. #region Extensibility Method Definitions
  1874. partial void OnLoaded();
  1875. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1876. partial void OnCreated();
  1877. partial void OnStaffTypeIdChanging(short value);
  1878. partial void OnStaffTypeIdChanged();
  1879. partial void OnNameChanging(string value);
  1880. partial void OnNameChanged();
  1881. partial void OnPortalIdChanging(System.Nullable<int> value);
  1882. partial void OnPortalIdChanged();
  1883. #endregion
  1884. public AP_StaffBroker_StaffType()
  1885. {
  1886. this._AP_StaffBroker_Staffs = new EntitySet<AP_StaffBroker_Staff>(new Action<AP_StaffBroker_Staff>(this.attach_AP_StaffBroker_Staffs), new Action<AP_StaffBroker_Staff>(this.detach_AP_StaffBroker_Staffs));
  1887. OnCreated();
  1888. }
  1889. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffTypeId", AutoSync=AutoSync.OnInsert, DbType="SmallInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1890. public short StaffTypeId
  1891. {
  1892. get
  1893. {
  1894. return this._StaffTypeId;
  1895. }
  1896. set
  1897. {
  1898. if ((this._StaffTypeId != value))
  1899. {
  1900. this.OnStaffTypeIdChanging(value);
  1901. this.SendPropertyChanging();
  1902. this._StaffTypeId = value;
  1903. this.SendPropertyChanged("StaffTypeId");
  1904. this.OnStaffTypeIdChanged();
  1905. }
  1906. }
  1907. }
  1908. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")]
  1909. public string Name
  1910. {
  1911. get
  1912. {
  1913. return this._Name;
  1914. }
  1915. set
  1916. {
  1917. if ((this._Name != value))
  1918. {
  1919. this.OnNameChanging(value);
  1920. this.SendPropertyChanging();
  1921. this._Name = value;
  1922. this.SendPropertyChanged("Name");
  1923. this.OnNameChanged();
  1924. }
  1925. }
  1926. }
  1927. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="int")]
  1928. public System.Nullable<int> PortalId
  1929. {
  1930. get
  1931. {
  1932. return this._PortalId;
  1933. }
  1934. set
  1935. {
  1936. if ((this._PortalId != value))
  1937. {
  1938. this.OnPortalIdChanging(value);
  1939. this.SendPropertyChanging();
  1940. this._PortalId = value;
  1941. this.SendPropertyChanged("PortalId");
  1942. this.OnPortalIdChanged();
  1943. }
  1944. }
  1945. }
  1946. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_StaffType_AP_StaffBroker_Staff", Storage="_AP_StaffBroker_Staffs", ThisKey="StaffTypeId", OtherKey="StaffTypeId")]
  1947. public EntitySet<AP_StaffBroker_Staff> AP_StaffBroker_Staffs
  1948. {
  1949. get
  1950. {
  1951. return this._AP_StaffBroker_Staffs;
  1952. }
  1953. set
  1954. {
  1955. this._AP_StaffBroker_Staffs.Assign(value);
  1956. }
  1957. }
  1958. public event PropertyChangingEventHandler PropertyChanging;
  1959. public event PropertyChangedEventHandler PropertyChanged;
  1960. protected virtual void SendPropertyChanging()
  1961. {
  1962. if ((this.PropertyChanging != null))
  1963. {
  1964. this.PropertyChanging(this, emptyChangingEventArgs);
  1965. }
  1966. }
  1967. protected virtual void SendPropertyChanged(String propertyName)
  1968. {
  1969. if ((this.PropertyChanged != null))
  1970. {
  1971. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1972. }
  1973. }
  1974. private void attach_AP_StaffBroker_Staffs(AP_StaffBroker_Staff entity)
  1975. {
  1976. this.SendPropertyChanging();
  1977. entity.AP_StaffBroker_StaffType = this;
  1978. }
  1979. private void detach_AP_StaffBroker_Staffs(AP_StaffBroker_Staff entity)
  1980. {
  1981. this.SendPropertyChanging();
  1982. entity.AP_StaffBroker_StaffType = null;
  1983. }
  1984. }
  1985. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ProfilePropertyDefinition")]
  1986. public partial class ProfilePropertyDefinition2 : INotifyPropertyChanging, INotifyPropertyChanged
  1987. {
  1988. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1989. private int _PropertyDefinitionID;
  1990. private System.Nullable<int> _PortalID;
  1991. private System.Nullable<int> _ModuleDefID;
  1992. private bool _Deleted;
  1993. private int _DataType;
  1994. private string _DefaultValue;
  1995. private string _PropertyCategory;
  1996. private string _PropertyName;
  1997. private int _Length;
  1998. private bool _Required;
  1999. private string _ValidationExpression;
  2000. private int _ViewOrder;
  2001. private bool _Visible;
  2002. private System.Nullable<int> _CreatedByUserID;
  2003. private System.Nullable<System.DateTime> _CreatedOnDate;
  2004. private System.Nullable<int> _LastModifiedByUserID;
  2005. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  2006. private System.Nullable<int> _DefaultVisibility;
  2007. private EntitySet<UserProfile2> _UserProfile2s;
  2008. #region Extensibility Method Definitions
  2009. partial void OnLoaded();
  2010. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2011. partial void OnCreated();
  2012. partial void OnPropertyDefinitionIDChanging(int value);
  2013. partial void OnPropertyDefinitionIDChanged();
  2014. partial void OnPortalIDChanging(System.Nullable<int> value);
  2015. partial void OnPortalIDChanged();
  2016. partial void OnModuleDefIDChanging(System.Nullable<int> value);
  2017. partial void OnModuleDefIDChanged();
  2018. partial void OnDeletedChanging(bool value);
  2019. partial void OnDeletedChanged();
  2020. partial void OnDataTypeChanging(int value);
  2021. partial void OnDataTypeChanged();
  2022. partial void OnDefaultValueChanging(string value);
  2023. partial void OnDefaultValueChanged();
  2024. partial void OnPropertyCategoryChanging(string value);
  2025. partial void OnPropertyCategoryChanged();
  2026. partial void OnPropertyNameChanging(string value);
  2027. partial void OnPropertyNameChanged();
  2028. partial void OnLengthChanging(int value);
  2029. partial void OnLengthChanged();
  2030. partial void OnRequiredChanging(bool value);
  2031. partial void OnRequiredChanged();
  2032. partial void OnValidationExpressionChanging(string value);
  2033. partial void OnValidationExpressionChanged();
  2034. partial void OnViewOrderChanging(int value);
  2035. partial void OnViewOrderChanged();
  2036. partial void OnVisibleChanging(bool value);
  2037. partial void OnVisibleChanged();
  2038. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  2039. partial void OnCreatedByUserIDChanged();
  2040. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  2041. partial void OnCreatedOnDateChanged();
  2042. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  2043. partial void OnLastModifiedByUserIDChanged();
  2044. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  2045. partial void OnLastModifiedOnDateChanged();
  2046. partial void OnDefaultVisibilityChanging(System.Nullable<int> value);
  2047. partial void OnDefaultVisibilityChanged();
  2048. #endregion
  2049. public ProfilePropertyDefinition2()
  2050. {
  2051. this._UserProfile2s = new EntitySet<UserProfile2>(new Action<UserProfile2>(this.attach_UserProfile2s), new Action<UserProfile2>(this.detach_UserProfile2s));
  2052. OnCreated();
  2053. }
  2054. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyDefinitionID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2055. public int PropertyDefinitionID
  2056. {
  2057. get
  2058. {
  2059. return this._PropertyDefinitionID;
  2060. }
  2061. set
  2062. {
  2063. if ((this._PropertyDefinitionID != value))
  2064. {
  2065. this.OnPropertyDefinitionIDChanging(value);
  2066. this.SendPropertyChanging();
  2067. this._PropertyDefinitionID = value;
  2068. this.SendPropertyChanged("PropertyDefinitionID");
  2069. this.OnPropertyDefinitionIDChanged();
  2070. }
  2071. }
  2072. }
  2073. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalID", DbType="Int")]
  2074. public System.Nullable<int> PortalID
  2075. {
  2076. get
  2077. {
  2078. return this._PortalID;
  2079. }
  2080. set
  2081. {
  2082. if ((this._PortalID != value))
  2083. {
  2084. this.OnPortalIDChanging(value);
  2085. this.SendPropertyChanging();
  2086. this._PortalID = value;
  2087. this.SendPropertyChanged("PortalID");
  2088. this.OnPortalIDChanged();
  2089. }
  2090. }
  2091. }
  2092. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModuleDefID", DbType="Int")]
  2093. public System.Nullable<int> ModuleDefID
  2094. {
  2095. get
  2096. {
  2097. return this._ModuleDefID;
  2098. }
  2099. set
  2100. {
  2101. if ((this._ModuleDefID != value))
  2102. {
  2103. this.OnModuleDefIDChanging(value);
  2104. this.SendPropertyChanging();
  2105. this._ModuleDefID = value;
  2106. this.SendPropertyChanged("ModuleDefID");
  2107. this.OnModuleDefIDChanged();
  2108. }
  2109. }
  2110. }
  2111. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Deleted", DbType="Bit NOT NULL")]
  2112. public bool Deleted
  2113. {
  2114. get
  2115. {
  2116. return this._Deleted;
  2117. }
  2118. set
  2119. {
  2120. if ((this._Deleted != value))
  2121. {
  2122. this.OnDeletedChanging(value);
  2123. this.SendPropertyChanging();
  2124. this._Deleted = value;
  2125. this.SendPropertyChanged("Deleted");
  2126. this.OnDeletedChanged();
  2127. }
  2128. }
  2129. }
  2130. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataType", DbType="Int NOT NULL")]
  2131. public int DataType
  2132. {
  2133. get
  2134. {
  2135. return this._DataType;
  2136. }
  2137. set
  2138. {
  2139. if ((this._DataType != value))
  2140. {
  2141. this.OnDataTypeChanging(value);
  2142. this.SendPropertyChanging();
  2143. this._DataType = value;
  2144. this.SendPropertyChanged("DataType");
  2145. this.OnDataTypeChanged();
  2146. }
  2147. }
  2148. }
  2149. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefaultValue", DbType="NText", UpdateCheck=UpdateCheck.Never)]
  2150. public string DefaultValue
  2151. {
  2152. get
  2153. {
  2154. return this._DefaultValue;
  2155. }
  2156. set
  2157. {
  2158. if ((this._DefaultValue != value))
  2159. {
  2160. this.OnDefaultValueChanging(value);
  2161. this.SendPropertyChanging();
  2162. this._DefaultValue = value;
  2163. this.SendPropertyChanged("DefaultValue");
  2164. this.OnDefaultValueChanged();
  2165. }
  2166. }
  2167. }
  2168. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyCategory", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  2169. public string PropertyCategory
  2170. {
  2171. get
  2172. {
  2173. return this._PropertyCategory;
  2174. }
  2175. set
  2176. {
  2177. if ((this._PropertyCategory != value))
  2178. {
  2179. this.OnPropertyCategoryChanging(value);
  2180. this.SendPropertyChanging();
  2181. this._PropertyCategory = value;
  2182. this.SendPropertyChanged("PropertyCategory");
  2183. this.OnPropertyCategoryChanged();
  2184. }
  2185. }
  2186. }
  2187. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  2188. public string PropertyName
  2189. {
  2190. get
  2191. {
  2192. return this._PropertyName;
  2193. }
  2194. set
  2195. {
  2196. if ((this._PropertyName != value))
  2197. {
  2198. this.OnPropertyNameChanging(value);
  2199. this.SendPropertyChanging();
  2200. this._PropertyName = value;
  2201. this.SendPropertyChanged("PropertyName");
  2202. this.OnPropertyNameChanged();
  2203. }
  2204. }
  2205. }
  2206. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Length", DbType="Int NOT NULL")]
  2207. public int Length
  2208. {
  2209. get
  2210. {
  2211. return this._Length;
  2212. }
  2213. set
  2214. {
  2215. if ((this._Length != value))
  2216. {
  2217. this.OnLengthChanging(value);
  2218. this.SendPropertyChanging();
  2219. this._Length = value;
  2220. this.SendPropertyChanged("Length");
  2221. this.OnLengthChanged();
  2222. }
  2223. }
  2224. }
  2225. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Required", DbType="Bit NOT NULL")]
  2226. public bool Required
  2227. {
  2228. get
  2229. {
  2230. return this._Required;
  2231. }
  2232. set
  2233. {
  2234. if ((this._Required != value))
  2235. {
  2236. this.OnRequiredChanging(value);
  2237. this.SendPropertyChanging();
  2238. this._Required = value;
  2239. this.SendPropertyChanged("Required");
  2240. this.OnRequiredChanged();
  2241. }
  2242. }
  2243. }
  2244. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidationExpression", DbType="NVarChar(2000)")]
  2245. public string ValidationExpression
  2246. {
  2247. get
  2248. {
  2249. return this._ValidationExpression;
  2250. }
  2251. set
  2252. {
  2253. if ((this._ValidationExpression != value))
  2254. {
  2255. this.OnValidationExpressionChanging(value);
  2256. this.SendPropertyChanging();
  2257. this._ValidationExpression = value;
  2258. this.SendPropertyChanged("ValidationExpression");
  2259. this.OnValidationExpressionChanged();
  2260. }
  2261. }
  2262. }
  2263. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViewOrder", DbType="Int NOT NULL")]
  2264. public int ViewOrder
  2265. {
  2266. get
  2267. {
  2268. return this._ViewOrder;
  2269. }
  2270. set
  2271. {
  2272. if ((this._ViewOrder != value))
  2273. {
  2274. this.OnViewOrderChanging(value);
  2275. this.SendPropertyChanging();
  2276. this._ViewOrder = value;
  2277. this.SendPropertyChanged("ViewOrder");
  2278. this.OnViewOrderChanged();
  2279. }
  2280. }
  2281. }
  2282. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Visible", DbType="Bit NOT NULL")]
  2283. public bool Visible
  2284. {
  2285. get
  2286. {
  2287. return this._Visible;
  2288. }
  2289. set
  2290. {
  2291. if ((this._Visible != value))
  2292. {
  2293. this.OnVisibleChanging(value);
  2294. this.SendPropertyChanging();
  2295. this._Visible = value;
  2296. this.SendPropertyChanged("Visible");
  2297. this.OnVisibleChanged();
  2298. }
  2299. }
  2300. }
  2301. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  2302. public System.Nullable<int> CreatedByUserID
  2303. {
  2304. get
  2305. {
  2306. return this._CreatedByUserID;
  2307. }
  2308. set
  2309. {
  2310. if ((this._CreatedByUserID != value))
  2311. {
  2312. this.OnCreatedByUserIDChanging(value);
  2313. this.SendPropertyChanging();
  2314. this._CreatedByUserID = value;
  2315. this.SendPropertyChanged("CreatedByUserID");
  2316. this.OnCreatedByUserIDChanged();
  2317. }
  2318. }
  2319. }
  2320. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  2321. public System.Nullable<System.DateTime> CreatedOnDate
  2322. {
  2323. get
  2324. {
  2325. return this._CreatedOnDate;
  2326. }
  2327. set
  2328. {
  2329. if ((this._CreatedOnDate != value))
  2330. {
  2331. this.OnCreatedOnDateChanging(value);
  2332. this.SendPropertyChanging();
  2333. this._CreatedOnDate = value;
  2334. this.SendPropertyChanged("CreatedOnDate");
  2335. this.OnCreatedOnDateChanged();
  2336. }
  2337. }
  2338. }
  2339. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  2340. public System.Nullable<int> LastModifiedByUserID
  2341. {
  2342. get
  2343. {
  2344. return this._LastModifiedByUserID;
  2345. }
  2346. set
  2347. {
  2348. if ((this._LastModifiedByUserID != value))
  2349. {
  2350. this.OnLastModifiedByUserIDChanging(value);
  2351. this.SendPropertyChanging();
  2352. this._LastModifiedByUserID = value;
  2353. this.SendPropertyChanged("LastModifiedByUserID");
  2354. this.OnLastModifiedByUserIDChanged();
  2355. }
  2356. }
  2357. }
  2358. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  2359. public System.Nullable<System.DateTime> LastModifiedOnDate
  2360. {
  2361. get
  2362. {
  2363. return this._LastModifiedOnDate;
  2364. }
  2365. set
  2366. {
  2367. if ((this._LastModifiedOnDate != value))
  2368. {
  2369. this.OnLastModifiedOnDateChanging(value);
  2370. this.SendPropertyChanging();
  2371. this._LastModifiedOnDate = value;
  2372. this.SendPropertyChanged("LastModifiedOnDate");
  2373. this.OnLastModifiedOnDateChanged();
  2374. }
  2375. }
  2376. }
  2377. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefaultVisibility", DbType="Int")]
  2378. public System.Nullable<int> DefaultVisibility
  2379. {
  2380. get
  2381. {
  2382. return this._DefaultVisibility;
  2383. }
  2384. set
  2385. {
  2386. if ((this._DefaultVisibility != value))
  2387. {
  2388. this.OnDefaultVisibilityChanging(value);
  2389. this.SendPropertyChanging();
  2390. this._DefaultVisibility = value;
  2391. this.SendPropertyChanged("DefaultVisibility");
  2392. this.OnDefaultVisibilityChanged();
  2393. }
  2394. }
  2395. }
  2396. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="ProfilePropertyDefinition2_UserProfile2", Storage="_UserProfile2s", ThisKey="PropertyDefinitionID", OtherKey="PropertyDefinitionID")]
  2397. public EntitySet<UserProfile2> UserProfile2s
  2398. {
  2399. get
  2400. {
  2401. return this._UserProfile2s;
  2402. }
  2403. set
  2404. {
  2405. this._UserProfile2s.Assign(value);
  2406. }
  2407. }
  2408. public event PropertyChangingEventHandler PropertyChanging;
  2409. public event PropertyChangedEventHandler PropertyChanged;
  2410. protected virtual void SendPropertyChanging()
  2411. {
  2412. if ((this.PropertyChanging != null))
  2413. {
  2414. this.PropertyChanging(this, emptyChangingEventArgs);
  2415. }
  2416. }
  2417. protected virtual void SendPropertyChanged(String propertyName)
  2418. {
  2419. if ((this.PropertyChanged != null))
  2420. {
  2421. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2422. }
  2423. }
  2424. private void attach_UserProfile2s(UserProfile2 entity)
  2425. {
  2426. this.SendPropertyChanging();
  2427. entity.ProfilePropertyDefinition2 = this;
  2428. }
  2429. private void detach_UserProfile2s(UserProfile2 entity)
  2430. {
  2431. this.SendPropertyChanging();
  2432. entity.ProfilePropertyDefinition2 = null;
  2433. }
  2434. }
  2435. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserProfile")]
  2436. public partial class UserProfile2 : INotifyPropertyChanging, INotifyPropertyChanged
  2437. {
  2438. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2439. private int _ProfileID;
  2440. private int _UserID;
  2441. private int _PropertyDefinitionID;
  2442. private string _PropertyValue;
  2443. private string _PropertyText;
  2444. private int _Visibility;
  2445. private System.DateTime _LastUpdatedDate;
  2446. private EntityRef<User2> _User2;
  2447. private EntityRef<ProfilePropertyDefinition2> _ProfilePropertyDefinition2;
  2448. #region Extensibility Method Definitions
  2449. partial void OnLoaded();
  2450. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2451. partial void OnCreated();
  2452. partial void OnProfileIDChanging(int value);
  2453. partial void OnProfileIDChanged();
  2454. partial void OnUserIDChanging(int value);
  2455. partial void OnUserIDChanged();
  2456. partial void OnPropertyDefinitionIDChanging(int value);
  2457. partial void OnPropertyDefinitionIDChanged();
  2458. partial void OnPropertyValueChanging(string value);
  2459. partial void OnPropertyValueChanged();
  2460. partial void OnPropertyTextChanging(string value);
  2461. partial void OnPropertyTextChanged();
  2462. partial void OnVisibilityChanging(int value);
  2463. partial void OnVisibilityChanged();
  2464. partial void OnLastUpdatedDateChanging(System.DateTime value);
  2465. partial void OnLastUpdatedDateChanged();
  2466. #endregion
  2467. public UserProfile2()
  2468. {
  2469. this._User2 = default(EntityRef<User2>);
  2470. this._ProfilePropertyDefinition2 = default(EntityRef<ProfilePropertyDefinition2>);
  2471. OnCreated();
  2472. }
  2473. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProfileID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2474. public int ProfileID
  2475. {
  2476. get
  2477. {
  2478. return this._ProfileID;
  2479. }
  2480. set
  2481. {
  2482. if ((this._ProfileID != value))
  2483. {
  2484. this.OnProfileIDChanging(value);
  2485. this.SendPropertyChanging();
  2486. this._ProfileID = value;
  2487. this.SendPropertyChanged("ProfileID");
  2488. this.OnProfileIDChanged();
  2489. }
  2490. }
  2491. }
  2492. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", DbType="Int NOT NULL")]
  2493. public int UserID
  2494. {
  2495. get
  2496. {
  2497. return this._UserID;
  2498. }
  2499. set
  2500. {
  2501. if ((this._UserID != value))
  2502. {
  2503. if (this._User2.HasLoadedOrAssignedValue)
  2504. {
  2505. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2506. }
  2507. this.OnUserIDChanging(value);
  2508. this.SendPropertyChanging();
  2509. this._UserID = value;
  2510. this.SendPropertyChanged("UserID");
  2511. this.OnUserIDChanged();
  2512. }
  2513. }
  2514. }
  2515. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyDefinitionID", DbType="Int NOT NULL")]
  2516. public int PropertyDefinitionID
  2517. {
  2518. get
  2519. {
  2520. return this._PropertyDefinitionID;
  2521. }
  2522. set
  2523. {
  2524. if ((this._PropertyDefinitionID != value))
  2525. {
  2526. if (this._ProfilePropertyDefinition2.HasLoadedOrAssignedValue)
  2527. {
  2528. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2529. }
  2530. this.OnPropertyDefinitionIDChanging(value);
  2531. this.SendPropertyChanging();
  2532. this._PropertyDefinitionID = value;
  2533. this.SendPropertyChanged("PropertyDefinitionID");
  2534. this.OnPropertyDefinitionIDChanged();
  2535. }
  2536. }
  2537. }
  2538. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyValue", DbType="NVarChar(3750)")]
  2539. public string PropertyValue
  2540. {
  2541. get
  2542. {
  2543. return this._PropertyValue;
  2544. }
  2545. set
  2546. {
  2547. if ((this._PropertyValue != value))
  2548. {
  2549. this.OnPropertyValueChanging(value);
  2550. this.SendPropertyChanging();
  2551. this._PropertyValue = value;
  2552. this.SendPropertyChanged("PropertyValue");
  2553. this.OnPropertyValueChanged();
  2554. }
  2555. }
  2556. }
  2557. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyText", DbType="NText", UpdateCheck=UpdateCheck.Never)]
  2558. public string PropertyText
  2559. {
  2560. get
  2561. {
  2562. return this._PropertyText;
  2563. }
  2564. set
  2565. {
  2566. if ((this._PropertyText != value))
  2567. {
  2568. this.OnPropertyTextChanging(value);
  2569. this.SendPropertyChanging();
  2570. this._PropertyText = value;
  2571. this.SendPropertyChanged("PropertyText");
  2572. this.OnPropertyTextChanged();
  2573. }
  2574. }
  2575. }
  2576. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Visibility", DbType="Int NOT NULL")]
  2577. public int Visibility
  2578. {
  2579. get
  2580. {
  2581. return this._Visibility;
  2582. }
  2583. set
  2584. {
  2585. if ((this._Visibility != value))
  2586. {
  2587. this.OnVisibilityChanging(value);
  2588. this.SendPropertyChanging();
  2589. this._Visibility = value;
  2590. this.SendPropertyChanged("Visibility");
  2591. this.OnVisibilityChanged();
  2592. }
  2593. }
  2594. }
  2595. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastUpdatedDate", DbType="DateTime NOT NULL")]
  2596. public System.DateTime LastUpdatedDate
  2597. {
  2598. get
  2599. {
  2600. return this._LastUpdatedDate;
  2601. }
  2602. set
  2603. {
  2604. if ((this._LastUpdatedDate != value))
  2605. {
  2606. this.OnLastUpdatedDateChanging(value);
  2607. this.SendPropertyChanging();
  2608. this._LastUpdatedDate = value;
  2609. this.SendPropertyChanged("LastUpdatedDate");
  2610. this.OnLastUpdatedDateChanged();
  2611. }
  2612. }
  2613. }
  2614. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User2_UserProfile2", Storage="_User2", ThisKey="UserID", OtherKey="UserID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
  2615. public User2 User2
  2616. {
  2617. get
  2618. {
  2619. return this._User2.Entity;
  2620. }
  2621. set
  2622. {
  2623. User2 previousValue = this._User2.Entity;
  2624. if (((previousValue != value)
  2625. || (this._User2.HasLoadedOrAssignedValue == false)))
  2626. {
  2627. this.SendPropertyChanging();
  2628. if ((previousValue != null))
  2629. {
  2630. this._User2.Entity = null;
  2631. previousValue.UserProfile2s.Remove(this);
  2632. }
  2633. this._User2.Entity = value;
  2634. if ((value != null))
  2635. {
  2636. value.UserProfile2s.Add(this);
  2637. this._UserID = value.UserID;
  2638. }
  2639. else
  2640. {
  2641. this._UserID = default(int);
  2642. }
  2643. this.SendPropertyChanged("User2");
  2644. }
  2645. }
  2646. }
  2647. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="ProfilePropertyDefinition2_UserProfile2", Storage="_ProfilePropertyDefinition2", ThisKey="PropertyDefinitionID", OtherKey="PropertyDefinitionID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
  2648. public ProfilePropertyDefinition2 ProfilePropertyDefinition2
  2649. {
  2650. get
  2651. {
  2652. return this._ProfilePropertyDefinition2.Entity;
  2653. }
  2654. set
  2655. {
  2656. ProfilePropertyDefinition2 previousValue = this._ProfilePropertyDefinition2.Entity;
  2657. if (((previousValue != value)
  2658. || (this._ProfilePropertyDefinition2.HasLoadedOrAssignedValue == false)))
  2659. {
  2660. this.SendPropertyChanging();
  2661. if ((previousValue != null))
  2662. {
  2663. this._ProfilePropertyDefinition2.Entity = null;
  2664. previousValue.UserProfile2s.Remove(this);
  2665. }
  2666. this._ProfilePropertyDefinition2.Entity = value;
  2667. if ((value != null))
  2668. {
  2669. value.UserProfile2s.Add(this);
  2670. this._PropertyDefinitionID = value.PropertyDefinitionID;
  2671. }
  2672. else
  2673. {
  2674. this._PropertyDefinitionID = default(int);
  2675. }
  2676. this.SendPropertyChanged("ProfilePropertyDefinition2");
  2677. }
  2678. }
  2679. }
  2680. public event PropertyChangingEventHandler PropertyChanging;
  2681. public event PropertyChangedEventHandler PropertyChanged;
  2682. protected virtual void SendPropertyChanging()
  2683. {
  2684. if ((this.PropertyChanging != null))
  2685. {
  2686. this.PropertyChanging(this, emptyChangingEventArgs);
  2687. }
  2688. }
  2689. protected virtual void SendPropertyChanged(String propertyName)
  2690. {
  2691. if ((this.PropertyChanged != null))
  2692. {
  2693. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2694. }
  2695. }
  2696. }
  2697. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
  2698. public partial class User2 : INotifyPropertyChanging, INotifyPropertyChanged
  2699. {
  2700. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2701. private int _UserID;
  2702. private string _Username;
  2703. private string _FirstName;
  2704. private string _LastName;
  2705. private bool _IsSuperUser;
  2706. private System.Nullable<int> _AffiliateId;
  2707. private string _Email;
  2708. private string _DisplayName;
  2709. private bool _UpdatePassword;
  2710. private string _LastIPAddress;
  2711. private bool _IsDeleted;
  2712. private System.Nullable<int> _CreatedByUserID;
  2713. private System.Nullable<System.DateTime> _CreatedOnDate;
  2714. private System.Nullable<int> _LastModifiedByUserID;
  2715. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  2716. private EntityRef<AP_StaffBroker_Staff> _AP_StaffBroker_Staffs;
  2717. private EntitySet<UserProfile2> _UserProfile2s;
  2718. private EntitySet<AP_StaffBroker_LeaderMeta2> _AP_StaffBroker_LeaderMeta2s;
  2719. #region Extensibility Method Definitions
  2720. partial void OnLoaded();
  2721. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2722. partial void OnCreated();
  2723. partial void OnUserIDChanging(int value);
  2724. partial void OnUserIDChanged();
  2725. partial void OnUsernameChanging(string value);
  2726. partial void OnUsernameChanged();
  2727. partial void OnFirstNameChanging(string value);
  2728. partial void OnFirstNameChanged();
  2729. partial void OnLastNameChanging(string value);
  2730. partial void OnLastNameChanged();
  2731. partial void OnIsSuperUserChanging(bool value);
  2732. partial void OnIsSuperUserChanged();
  2733. partial void OnAffiliateIdChanging(System.Nullable<int> value);
  2734. partial void OnAffiliateIdChanged();
  2735. partial void OnEmailChanging(string value);
  2736. partial void OnEmailChanged();
  2737. partial void OnDisplayNameChanging(string value);
  2738. partial void OnDisplayNameChanged();
  2739. partial void OnUpdatePasswordChanging(bool value);
  2740. partial void OnUpdatePasswordChanged();
  2741. partial void OnLastIPAddressChanging(string value);
  2742. partial void OnLastIPAddressChanged();
  2743. partial void OnIsDeletedChanging(bool value);
  2744. partial void OnIsDeletedChanged();
  2745. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  2746. partial void OnCreatedByUserIDChanged();
  2747. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  2748. partial void OnCreatedOnDateChanged();
  2749. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  2750. partial void OnLastModifiedByUserIDChanged();
  2751. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  2752. partial void OnLastModifiedOnDateChanged();
  2753. #endregion
  2754. public User2()
  2755. {
  2756. this._AP_StaffBroker_Staffs = default(EntityRef<AP_StaffBroker_Staff>);
  2757. this._UserProfile2s = new EntitySet<UserProfile2>(new Action<UserProfile2>(this.attach_UserProfile2s), new Action<UserProfile2>(this.detach_UserProfile2s));
  2758. this._AP_StaffBroker_LeaderMeta2s = new EntitySet<AP_StaffBroker_LeaderMeta2>(new Action<AP_StaffBroker_LeaderMeta2>(this.attach_AP_StaffBroker_LeaderMeta2s), new Action<AP_StaffBroker_LeaderMeta2>(this.detach_AP_StaffBroker_LeaderMeta2s));
  2759. OnCreated();
  2760. }
  2761. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2762. public int UserID
  2763. {
  2764. get
  2765. {
  2766. return this._UserID;
  2767. }
  2768. set
  2769. {
  2770. if ((this._UserID != value))
  2771. {
  2772. this.OnUserIDChanging(value);
  2773. this.SendPropertyChanging();
  2774. this._UserID = value;
  2775. this.SendPropertyChanged("UserID");
  2776. this.OnUserIDChanged();
  2777. }
  2778. }
  2779. }
  2780. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  2781. public string Username
  2782. {
  2783. get
  2784. {
  2785. return this._Username;
  2786. }
  2787. set
  2788. {
  2789. if ((this._Username != value))
  2790. {
  2791. this.OnUsernameChanging(value);
  2792. this.SendPropertyChanging();
  2793. this._Username = value;
  2794. this.SendPropertyChanged("Username");
  2795. this.OnUsernameChanged();
  2796. }
  2797. }
  2798. }
  2799. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  2800. public string FirstName
  2801. {
  2802. get
  2803. {
  2804. return this._FirstName;
  2805. }
  2806. set
  2807. {
  2808. if ((this._FirstName != value))
  2809. {
  2810. this.OnFirstNameChanging(value);
  2811. this.SendPropertyChanging();
  2812. this._FirstName = value;
  2813. this.SendPropertyChanged("FirstName");
  2814. this.OnFirstNameChanged();
  2815. }
  2816. }
  2817. }
  2818. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  2819. public string LastName
  2820. {
  2821. get
  2822. {
  2823. return this._LastName;
  2824. }
  2825. set
  2826. {
  2827. if ((this._LastName != value))
  2828. {
  2829. this.OnLastNameChanging(value);
  2830. this.SendPropertyChanging();
  2831. this._LastName = value;
  2832. this.SendPropertyChanged("LastName");
  2833. this.OnLastNameChanged();
  2834. }
  2835. }
  2836. }
  2837. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperUser", DbType="Bit NOT NULL")]
  2838. public bool IsSuperUser
  2839. {
  2840. get
  2841. {
  2842. return this._IsSuperUser;
  2843. }
  2844. set
  2845. {
  2846. if ((this._IsSuperUser != value))
  2847. {
  2848. this.OnIsSuperUserChanging(value);
  2849. this.SendPropertyChanging();
  2850. this._IsSuperUser = value;
  2851. this.SendPropertyChanged("IsSuperUser");
  2852. this.OnIsSuperUserChanged();
  2853. }
  2854. }
  2855. }
  2856. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AffiliateId", DbType="Int")]
  2857. public System.Nullable<int> AffiliateId
  2858. {
  2859. get
  2860. {
  2861. return this._AffiliateId;
  2862. }
  2863. set
  2864. {
  2865. if ((this._AffiliateId != value))
  2866. {
  2867. this.OnAffiliateIdChanging(value);
  2868. this.SendPropertyChanging();
  2869. this._AffiliateId = value;
  2870. this.SendPropertyChanged("AffiliateId");
  2871. this.OnAffiliateIdChanged();
  2872. }
  2873. }
  2874. }
  2875. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
  2876. public string Email
  2877. {
  2878. get
  2879. {
  2880. return this._Email;
  2881. }
  2882. set
  2883. {
  2884. if ((this._Email != value))
  2885. {
  2886. this.OnEmailChanging(value);
  2887. this.SendPropertyChanging();
  2888. this._Email = value;
  2889. this.SendPropertyChanged("Email");
  2890. this.OnEmailChanged();
  2891. }
  2892. }
  2893. }
  2894. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  2895. public string DisplayName
  2896. {
  2897. get
  2898. {
  2899. return this._DisplayName;
  2900. }
  2901. set
  2902. {
  2903. if ((this._DisplayName != value))
  2904. {
  2905. this.OnDisplayNameChanging(value);
  2906. this.SendPropertyChanging();
  2907. this._DisplayName = value;
  2908. this.SendPropertyChanged("DisplayName");
  2909. this.OnDisplayNameChanged();
  2910. }
  2911. }
  2912. }
  2913. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpdatePassword", DbType="Bit NOT NULL")]
  2914. public bool UpdatePassword
  2915. {
  2916. get
  2917. {
  2918. return this._UpdatePassword;
  2919. }
  2920. set
  2921. {
  2922. if ((this._UpdatePassword != value))
  2923. {
  2924. this.OnUpdatePasswordChanging(value);
  2925. this.SendPropertyChanging();
  2926. this._UpdatePassword = value;
  2927. this.SendPropertyChanged("UpdatePassword");
  2928. this.OnUpdatePasswordChanged();
  2929. }
  2930. }
  2931. }
  2932. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIPAddress", DbType="NVarChar(50)")]
  2933. public string LastIPAddress
  2934. {
  2935. get
  2936. {
  2937. return this._LastIPAddress;
  2938. }
  2939. set
  2940. {
  2941. if ((this._LastIPAddress != value))
  2942. {
  2943. this.OnLastIPAddressChanging(value);
  2944. this.SendPropertyChanging();
  2945. this._LastIPAddress = value;
  2946. this.SendPropertyChanged("LastIPAddress");
  2947. this.OnLastIPAddressChanged();
  2948. }
  2949. }
  2950. }
  2951. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
  2952. public bool IsDeleted
  2953. {
  2954. get
  2955. {
  2956. return this._IsDeleted;
  2957. }
  2958. set
  2959. {
  2960. if ((this._IsDeleted != value))
  2961. {
  2962. this.OnIsDeletedChanging(value);
  2963. this.SendPropertyChanging();
  2964. this._IsDeleted = value;
  2965. this.SendPropertyChanged("IsDeleted");
  2966. this.OnIsDeletedChanged();
  2967. }
  2968. }
  2969. }
  2970. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  2971. public System.Nullable<int> CreatedByUserID
  2972. {
  2973. get
  2974. {
  2975. return this._CreatedByUserID;
  2976. }
  2977. set
  2978. {
  2979. if ((this._CreatedByUserID != value))
  2980. {
  2981. this.OnCreatedByUserIDChanging(value);
  2982. this.SendPropertyChanging();
  2983. this._CreatedByUserID = value;
  2984. this.SendPropertyChanged("CreatedByUserID");
  2985. this.OnCreatedByUserIDChanged();
  2986. }
  2987. }
  2988. }
  2989. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  2990. public System.Nullable<System.DateTime> CreatedOnDate
  2991. {
  2992. get
  2993. {
  2994. return this._CreatedOnDate;
  2995. }
  2996. set
  2997. {
  2998. if ((this._CreatedOnDate != value))
  2999. {
  3000. this.OnCreatedOnDateChanging(value);
  3001. this.SendPropertyChanging();
  3002. this._CreatedOnDate = value;
  3003. this.SendPropertyChanged("CreatedOnDate");
  3004. this.OnCreatedOnDateChanged();
  3005. }
  3006. }
  3007. }
  3008. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  3009. public System.Nullable<int> LastModifiedByUserID
  3010. {
  3011. get
  3012. {
  3013. return this._LastModifiedByUserID;
  3014. }
  3015. set
  3016. {
  3017. if ((this._LastModifiedByUserID != value))
  3018. {
  3019. this.OnLastModifiedByUserIDChanging(value);
  3020. this.SendPropertyChanging();
  3021. this._LastModifiedByUserID = value;
  3022. this.SendPropertyChanged("LastModifiedByUserID");
  3023. this.OnLastModifiedByUserIDChanged();
  3024. }
  3025. }
  3026. }
  3027. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  3028. public System.Nullable<System.DateTime> LastModifiedOnDate
  3029. {
  3030. get
  3031. {
  3032. return this._LastModifiedOnDate;
  3033. }
  3034. set
  3035. {
  3036. if ((this._LastModifiedOnDate != value))
  3037. {
  3038. this.OnLastModifiedOnDateChanging(value);
  3039. this.SendPropertyChanging();
  3040. this._LastModifiedOnDate = value;
  3041. this.SendPropertyChanged("LastModifiedOnDate");
  3042. this.OnLastModifiedOnDateChanged();
  3043. }
  3044. }
  3045. }
  3046. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User2_AP_StaffBroker_Staff", Storage="_AP_StaffBroker_Staffs", ThisKey="UserID", OtherKey="UserId2", IsUnique=true, IsForeignKey=false)]
  3047. public AP_StaffBroker_Staff AP_StaffBroker_Staffs
  3048. {
  3049. get
  3050. {
  3051. return this._AP_StaffBroker_Staffs.Entity;
  3052. }
  3053. set
  3054. {
  3055. AP_StaffBroker_Staff previousValue = this._AP_StaffBroker_Staffs.Entity;
  3056. if (((previousValue != value)
  3057. || (this._AP_StaffBroker_Staffs.HasLoadedOrAssignedValue == false)))
  3058. {
  3059. this.SendPropertyChanging();
  3060. if ((previousValue != null))
  3061. {
  3062. this._AP_StaffBroker_Staffs.Entity = null;
  3063. previousValue.User2 = null;
  3064. }
  3065. this._AP_StaffBroker_Staffs.Entity = value;
  3066. if ((value != null))
  3067. {
  3068. value.User2 = this;
  3069. }
  3070. this.SendPropertyChanged("AP_StaffBroker_Staffs");
  3071. }
  3072. }
  3073. }
  3074. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User2_UserProfile2", Storage="_UserProfile2s", ThisKey="UserID", OtherKey="UserID")]
  3075. public EntitySet<UserProfile2> UserProfile2s
  3076. {
  3077. get
  3078. {
  3079. return this._UserProfile2s;
  3080. }
  3081. set
  3082. {
  3083. this._UserProfile2s.Assign(value);
  3084. }
  3085. }
  3086. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User2_AP_StaffBroker_LeaderMeta2", Storage="_AP_StaffBroker_LeaderMeta2s", ThisKey="UserID", OtherKey="UserId")]
  3087. public EntitySet<AP_StaffBroker_LeaderMeta2> AP_StaffBroker_LeaderMeta2s
  3088. {
  3089. get
  3090. {
  3091. return this._AP_StaffBroker_LeaderMeta2s;
  3092. }
  3093. set
  3094. {
  3095. this._AP_StaffBroker_LeaderMeta2s.Assign(value);
  3096. }
  3097. }
  3098. public event PropertyChangingEventHandler PropertyChanging;
  3099. public event PropertyChangedEventHandler PropertyChanged;
  3100. protected virtual void SendPropertyChanging()
  3101. {
  3102. if ((this.PropertyChanging != null))
  3103. {
  3104. this.PropertyChanging(this, emptyChangingEventArgs);
  3105. }
  3106. }
  3107. protected virtual void SendPropertyChanged(String propertyName)
  3108. {
  3109. if ((this.PropertyChanged != null))
  3110. {
  3111. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  3112. }
  3113. }
  3114. private void attach_UserProfile2s(UserProfile2 entity)
  3115. {
  3116. this.SendPropertyChanging();
  3117. entity.User2 = this;
  3118. }
  3119. private void detach_UserProfile2s(UserProfile2 entity)
  3120. {
  3121. this.SendPropertyChanging();
  3122. entity.User2 = null;
  3123. }
  3124. private void attach_AP_StaffBroker_LeaderMeta2s(AP_StaffBroker_LeaderMeta2 entity)
  3125. {
  3126. this.SendPropertyChanging();
  3127. entity.User2 = this;
  3128. }
  3129. private void detach_AP_StaffBroker_LeaderMeta2s(AP_StaffBroker_LeaderMeta2 entity)
  3130. {
  3131. this.SendPropertyChanging();
  3132. entity.User2 = null;
  3133. }
  3134. }
  3135. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_StaffProfile")]
  3136. public partial class AP_StaffBroker_StaffProfile : INotifyPropertyChanging, INotifyPropertyChanged
  3137. {
  3138. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  3139. private long _StaffProfileId;
  3140. private string _PropertyValue;
  3141. private int _StaffPropertyDefinitionId;
  3142. private System.Nullable<int> _StaffId;
  3143. private EntityRef<AP_StaffBroker_Staff> _AP_StaffBroker_Staff;
  3144. private EntityRef<AP_StaffBroker_StaffPropertyDefinition> _AP_StaffBroker_StaffPropertyDefinition;
  3145. #region Extensibility Method Definitions
  3146. partial void OnLoaded();
  3147. partial void OnValidate(System.Data.Linq.ChangeAction action);
  3148. partial void OnCreated();
  3149. partial void OnStaffProfileIdChanging(long value);
  3150. partial void OnStaffProfileIdChanged();
  3151. partial void OnPropertyValueChanging(string value);
  3152. partial void OnPropertyValueChanged();
  3153. partial void OnStaffPropertyDefinitionIdChanging(int value);
  3154. partial void OnStaffPropertyDefinitionIdChanged();
  3155. partial void OnStaffIdChanging(System.Nullable<int> value);
  3156. partial void OnStaffIdChanged();
  3157. #endregion
  3158. public AP_StaffBroker_StaffProfile()
  3159. {
  3160. this._AP_StaffBroker_Staff = default(EntityRef<AP_StaffBroker_Staff>);
  3161. this._AP_StaffBroker_StaffPropertyDefinition = default(EntityRef<AP_StaffBroker_StaffPropertyDefinition>);
  3162. OnCreated();
  3163. }
  3164. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffProfileId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  3165. public long StaffProfileId
  3166. {
  3167. get
  3168. {
  3169. return this._StaffProfileId;
  3170. }
  3171. set
  3172. {
  3173. if ((this._StaffProfileId != value))
  3174. {
  3175. this.OnStaffProfileIdChanging(value);
  3176. this.SendPropertyChanging();
  3177. this._StaffProfileId = value;
  3178. this.SendPropertyChanged("StaffProfileId");
  3179. this.OnStaffProfileIdChanged();
  3180. }
  3181. }
  3182. }
  3183. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyValue", DbType="VarChar(MAX)")]
  3184. public string PropertyValue
  3185. {
  3186. get
  3187. {
  3188. return this._PropertyValue;
  3189. }
  3190. set
  3191. {
  3192. if ((this._PropertyValue != value))
  3193. {
  3194. this.OnPropertyValueChanging(value);
  3195. this.SendPropertyChanging();
  3196. this._PropertyValue = value;
  3197. this.SendPropertyChanged("PropertyValue");
  3198. this.OnPropertyValueChanged();
  3199. }
  3200. }
  3201. }
  3202. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffPropertyDefinitionId", DbType="Int NOT NULL")]
  3203. public int StaffPropertyDefinitionId
  3204. {
  3205. get
  3206. {
  3207. return this._StaffPropertyDefinitionId;
  3208. }
  3209. set
  3210. {
  3211. if ((this._StaffPropertyDefinitionId != value))
  3212. {
  3213. if (this._AP_StaffBroker_StaffPropertyDefinition.HasLoadedOrAssignedValue)
  3214. {
  3215. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  3216. }
  3217. this.OnStaffPropertyDefinitionIdChanging(value);
  3218. this.SendPropertyChanging();
  3219. this._StaffPropertyDefinitionId = value;
  3220. this.SendPropertyChanged("StaffPropertyDefinitionId");
  3221. this.OnStaffPropertyDefinitionIdChanged();
  3222. }
  3223. }
  3224. }
  3225. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffId", DbType="Int")]
  3226. public System.Nullable<int> StaffId
  3227. {
  3228. get
  3229. {
  3230. return this._StaffId;
  3231. }
  3232. set
  3233. {
  3234. if ((this._StaffId != value))
  3235. {
  3236. if (this._AP_StaffBroker_Staff.HasLoadedOrAssignedValue)
  3237. {
  3238. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  3239. }
  3240. this.OnStaffIdChanging(value);
  3241. this.SendPropertyChanging();
  3242. this._StaffId = value;
  3243. this.SendPropertyChanged("StaffId");
  3244. this.OnStaffIdChanged();
  3245. }
  3246. }
  3247. }
  3248. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_Staff_AP_StaffBroker_StaffProfile", Storage="_AP_StaffBroker_Staff", ThisKey="StaffId", OtherKey="StaffId", IsForeignKey=true)]
  3249. public AP_StaffBroker_Staff AP_StaffBroker_Staff
  3250. {
  3251. get
  3252. {
  3253. return this._AP_StaffBroker_Staff.Entity;
  3254. }
  3255. set
  3256. {
  3257. AP_StaffBroker_Staff previousValue = this._AP_StaffBroker_Staff.Entity;
  3258. if (((previousValue != value)
  3259. || (this._AP_StaffBroker_Staff.HasLoadedOrAssignedValue == false)))
  3260. {
  3261. this.SendPropertyChanging();
  3262. if ((previousValue != null))
  3263. {
  3264. this._AP_StaffBroker_Staff.Entity = null;
  3265. previousValue.AP_StaffBroker_StaffProfiles.Remove(this);
  3266. }
  3267. this._AP_StaffBroker_Staff.Entity = value;
  3268. if ((value != null))
  3269. {
  3270. value.AP_StaffBroker_StaffProfiles.Add(this);
  3271. this._StaffId = value.StaffId;
  3272. }
  3273. else
  3274. {
  3275. this._StaffId = default(Nullable<int>);
  3276. }
  3277. this.SendPropertyChanged("AP_StaffBroker_Staff");
  3278. }
  3279. }
  3280. }
  3281. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_StaffPropertyDefinition_AP_StaffBroker_StaffProfile", Storage="_AP_StaffBroker_StaffPropertyDefinition", ThisKey="StaffPropertyDefinitionId", OtherKey="StaffPropertyDefinitionId", IsForeignKey=true)]
  3282. public AP_StaffBroker_StaffPropertyDefinition AP_StaffBroker_StaffPropertyDefinition
  3283. {
  3284. get
  3285. {
  3286. return this._AP_StaffBroker_StaffPropertyDefinition.Entity;
  3287. }
  3288. set
  3289. {
  3290. AP_StaffBroker_StaffPropertyDefinition previousValue = this._AP_StaffBroker_StaffPropertyDefinition.Entity;
  3291. if (((previousValue != value)
  3292. || (this._AP_StaffBroker_StaffPropertyDefinition.HasLoadedOrAssignedValue == false)))
  3293. {
  3294. this.SendPropertyChanging();
  3295. if ((previousValue != null))
  3296. {
  3297. this._AP_StaffBroker_StaffPropertyDefinition.Entity = null;
  3298. previousValue.AP_StaffBroker_StaffProfiles.Remove(this);
  3299. }
  3300. this._AP_StaffBroker_StaffPropertyDefinition.Entity = value;
  3301. if ((value != null))
  3302. {
  3303. value.AP_StaffBroker_StaffProfiles.Add(this);
  3304. this._StaffPropertyDefinitionId = value.StaffPropertyDefinitionId;
  3305. }
  3306. else
  3307. {
  3308. this._StaffPropertyDefinitionId = default(int);
  3309. }
  3310. this.SendPropertyChanged("AP_StaffBroker_StaffPropertyDefinition");
  3311. }
  3312. }
  3313. }
  3314. public event PropertyChangingEventHandler PropertyChanging;
  3315. public event PropertyChangedEventHandler PropertyChanged;
  3316. protected virtual void SendPropertyChanging()
  3317. {
  3318. if ((this.PropertyChanging != null))
  3319. {
  3320. this.PropertyChanging(this, emptyChangingEventArgs);
  3321. }
  3322. }
  3323. protected virtual void SendPropertyChanged(String propertyName)
  3324. {
  3325. if ((this.PropertyChanged != null))
  3326. {
  3327. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  3328. }
  3329. }
  3330. }
  3331. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_Children")]
  3332. public partial class AP_StaffBroker_Children : INotifyPropertyChanging, INotifyPropertyChanged
  3333. {
  3334. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  3335. private long _ChildId;
  3336. private string _FirstName;
  3337. private System.DateTime _Birthday;
  3338. private int _StaffId;
  3339. private string _Gender;
  3340. private EntityRef<AP_StaffBroker_Staff> _AP_StaffBroker_Staff;
  3341. #region Extensibility Method Definitions
  3342. partial void OnLoaded();
  3343. partial void OnValidate(System.Data.Linq.ChangeAction action);
  3344. partial void OnCreated();
  3345. partial void OnChildIdChanging(long value);
  3346. partial void OnChildIdChanged();
  3347. partial void OnFirstNameChanging(string value);
  3348. partial void OnFirstNameChanged();
  3349. partial void OnBirthdayChanging(System.DateTime value);
  3350. partial void OnBirthdayChanged();
  3351. partial void OnStaffIdChanging(int value);
  3352. partial void OnStaffIdChanged();
  3353. partial void OnGenderChanging(string value);
  3354. partial void OnGenderChanged();
  3355. #endregion
  3356. public AP_StaffBroker_Children()
  3357. {
  3358. this._AP_StaffBroker_Staff = default(EntityRef<AP_StaffBroker_Staff>);
  3359. OnCreated();
  3360. }
  3361. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ChildId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  3362. public long ChildId
  3363. {
  3364. get
  3365. {
  3366. return this._ChildId;
  3367. }
  3368. set
  3369. {
  3370. if ((this._ChildId != value))
  3371. {
  3372. this.OnChildIdChanging(value);
  3373. this.SendPropertyChanging();
  3374. this._ChildId = value;
  3375. this.SendPropertyChanged("ChildId");
  3376. this.OnChildIdChanged();
  3377. }
  3378. }
  3379. }
  3380. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  3381. public string FirstName
  3382. {
  3383. get
  3384. {
  3385. return this._FirstName;
  3386. }
  3387. set
  3388. {
  3389. if ((this._FirstName != value))
  3390. {
  3391. this.OnFirstNameChanging(value);
  3392. this.SendPropertyChanging();
  3393. this._FirstName = value;
  3394. this.SendPropertyChanged("FirstName");
  3395. this.OnFirstNameChanged();
  3396. }
  3397. }
  3398. }
  3399. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Birthday", DbType="Date NOT NULL")]
  3400. public System.DateTime Birthday
  3401. {
  3402. get
  3403. {
  3404. return this._Birthday;
  3405. }
  3406. set
  3407. {
  3408. if ((this._Birthday != value))
  3409. {
  3410. this.OnBirthdayChanging(value);
  3411. this.SendPropertyChanging();
  3412. this._Birthday = value;
  3413. this.SendPropertyChanged("Birthday");
  3414. this.OnBirthdayChanged();
  3415. }
  3416. }
  3417. }
  3418. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffId", DbType="Int NOT NULL")]
  3419. public int StaffId
  3420. {
  3421. get
  3422. {
  3423. return this._StaffId;
  3424. }
  3425. set
  3426. {
  3427. if ((this._StaffId != value))
  3428. {
  3429. if (this._AP_StaffBroker_Staff.HasLoadedOrAssignedValue)
  3430. {
  3431. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  3432. }
  3433. this.OnStaffIdChanging(value);
  3434. this.SendPropertyChanging();
  3435. this._StaffId = value;
  3436. this.SendPropertyChanged("StaffId");
  3437. this.OnStaffIdChanged();
  3438. }
  3439. }
  3440. }
  3441. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Gender", DbType="nvarchar(10)")]
  3442. public string Gender
  3443. {
  3444. get
  3445. {
  3446. return this._Gender;
  3447. }
  3448. set
  3449. {
  3450. if ((this._Gender != value))
  3451. {
  3452. this.OnGenderChanging(value);
  3453. this.SendPropertyChanging();
  3454. this._Gender = value;
  3455. this.SendPropertyChanged("Gender");
  3456. this.OnGenderChanged();
  3457. }
  3458. }
  3459. }
  3460. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_Staff_AP_StaffBroker_Children", Storage="_AP_StaffBroker_Staff", ThisKey="StaffId", OtherKey="StaffId", IsForeignKey=true)]
  3461. public AP_StaffBroker_Staff AP_StaffBroker_Staff
  3462. {
  3463. get
  3464. {
  3465. return this._AP_StaffBroker_Staff.Entity;
  3466. }
  3467. set
  3468. {
  3469. AP_StaffBroker_Staff previousValue = this._AP_StaffBroker_Staff.Entity;
  3470. if (((previousValue != value)
  3471. || (this._AP_StaffBroker_Staff.HasLoadedOrAssignedValue == false)))
  3472. {
  3473. this.SendPropertyChanging();
  3474. if ((previousValue != null))
  3475. {
  3476. this._AP_StaffBroker_Staff.Entity = null;
  3477. previousValue.AP_StaffBroker_Childrens.Remove(this);
  3478. }
  3479. this._AP_StaffBroker_Staff.Entity = value;
  3480. if ((value != null))
  3481. {
  3482. value.AP_StaffBroker_Childrens.Add(this);
  3483. this._StaffId = value.StaffId;
  3484. }
  3485. else
  3486. {
  3487. this._StaffId = default(int);
  3488. }
  3489. this.SendPropertyChanged("AP_StaffBroker_Staff");
  3490. }
  3491. }
  3492. }
  3493. public event PropertyChangingEventHandler PropertyChanging;
  3494. public event PropertyChangedEventHandler PropertyChanged;
  3495. protected virtual void SendPropertyChanging()
  3496. {
  3497. if ((this.PropertyChanging != null))
  3498. {
  3499. this.PropertyChanging(this, emptyChangingEventArgs);
  3500. }
  3501. }
  3502. protected virtual void SendPropertyChanged(String propertyName)
  3503. {
  3504. if ((this.PropertyChanged != null))
  3505. {
  3506. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  3507. }
  3508. }
  3509. }
  3510. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_LeaderMeta")]
  3511. public partial class AP_StaffBroker_LeaderMeta : INotifyPropertyChanging, INotifyPropertyChanged
  3512. {
  3513. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  3514. private long _LeaderMetaId;
  3515. private int _UserId;
  3516. private int _LeaderId;
  3517. private System.Nullable<int> _DelegateId;
  3518. private EntityRef<Leader> _Leaders;
  3519. private EntityRef<User> _User;
  3520. private EntityRef<Delegate> _Delegate;
  3521. #region Extensibility Method Definitions
  3522. partial void OnLoaded();
  3523. partial void OnValidate(System.Data.Linq.ChangeAction action);
  3524. partial void OnCreated();
  3525. partial void OnLeaderMetaIdChanging(long value);
  3526. partial void OnLeaderMetaIdChanged();
  3527. partial void OnUserIdChanging(int value);
  3528. partial void OnUserIdChanged();
  3529. partial void OnLeaderIdChanging(int value);
  3530. partial void OnLeaderIdChanged();
  3531. partial void OnDelegateIdChanging(System.Nullable<int> value);
  3532. partial void OnDelegateIdChanged();
  3533. #endregion
  3534. public AP_StaffBroker_LeaderMeta()
  3535. {
  3536. this._Leaders = default(EntityRef<Leader>);
  3537. this._User = default(EntityRef<User>);
  3538. this._Delegate = default(EntityRef<Delegate>);
  3539. OnCreated();
  3540. }
  3541. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderMetaId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  3542. public long LeaderMetaId
  3543. {
  3544. get
  3545. {
  3546. return this._LeaderMetaId;
  3547. }
  3548. set
  3549. {
  3550. if ((this._LeaderMetaId != value))
  3551. {
  3552. this.OnLeaderMetaIdChanging(value);
  3553. this.SendPropertyChanging();
  3554. this._LeaderMetaId = value;
  3555. this.SendPropertyChanged("LeaderMetaId");
  3556. this.OnLeaderMetaIdChanged();
  3557. }
  3558. }
  3559. }
  3560. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="Int NOT NULL")]
  3561. public int UserId
  3562. {
  3563. get
  3564. {
  3565. return this._UserId;
  3566. }
  3567. set
  3568. {
  3569. if ((this._UserId != value))
  3570. {
  3571. if (this._User.HasLoadedOrAssignedValue)
  3572. {
  3573. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  3574. }
  3575. this.OnUserIdChanging(value);
  3576. this.SendPropertyChanging();
  3577. this._UserId = value;
  3578. this.SendPropertyChanged("UserId");
  3579. this.OnUserIdChanged();
  3580. }
  3581. }
  3582. }
  3583. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderId", DbType="Int NOT NULL")]
  3584. public int LeaderId
  3585. {
  3586. get
  3587. {
  3588. return this._LeaderId;
  3589. }
  3590. set
  3591. {
  3592. if ((this._LeaderId != value))
  3593. {
  3594. this.OnLeaderIdChanging(value);
  3595. this.SendPropertyChanging();
  3596. this._LeaderId = value;
  3597. this.SendPropertyChanged("LeaderId");
  3598. this.OnLeaderIdChanged();
  3599. }
  3600. }
  3601. }
  3602. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegateId", DbType="Int")]
  3603. public System.Nullable<int> DelegateId
  3604. {
  3605. get
  3606. {
  3607. return this._DelegateId;
  3608. }
  3609. set
  3610. {
  3611. if ((this._DelegateId != value))
  3612. {
  3613. if (this._Delegate.HasLoadedOrAssignedValue)
  3614. {
  3615. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  3616. }
  3617. this.OnDelegateIdChanging(value);
  3618. this.SendPropertyChanging();
  3619. this._DelegateId = value;
  3620. this.SendPropertyChanged("DelegateId");
  3621. this.OnDelegateIdChanged();
  3622. }
  3623. }
  3624. }
  3625. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_LeaderMeta_Leader", Storage="_Leaders", ThisKey="LeaderId", OtherKey="UserID", IsUnique=true, IsForeignKey=false)]
  3626. public Leader Leaders
  3627. {
  3628. get
  3629. {
  3630. return this._Leaders.Entity;
  3631. }
  3632. set
  3633. {
  3634. Leader previousValue = this._Leaders.Entity;
  3635. if (((previousValue != value)
  3636. || (this._Leaders.HasLoadedOrAssignedValue == false)))
  3637. {
  3638. this.SendPropertyChanging();
  3639. if ((previousValue != null))
  3640. {
  3641. this._Leaders.Entity = null;
  3642. previousValue.AP_StaffBroker_LeaderMeta = null;
  3643. }
  3644. this._Leaders.Entity = value;
  3645. if ((value != null))
  3646. {
  3647. value.AP_StaffBroker_LeaderMeta = this;
  3648. }
  3649. this.SendPropertyChanged("Leaders");
  3650. }
  3651. }
  3652. }
  3653. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_AP_StaffBroker_LeaderMeta", Storage="_User", ThisKey="UserId", OtherKey="UserID", IsForeignKey=true)]
  3654. public User User
  3655. {
  3656. get
  3657. {
  3658. return this._User.Entity;
  3659. }
  3660. set
  3661. {
  3662. User previousValue = this._User.Entity;
  3663. if (((previousValue != value)
  3664. || (this._User.HasLoadedOrAssignedValue == false)))
  3665. {
  3666. this.SendPropertyChanging();
  3667. if ((previousValue != null))
  3668. {
  3669. this._User.Entity = null;
  3670. previousValue.AP_StaffBroker_LeaderMetas.Remove(this);
  3671. }
  3672. this._User.Entity = value;
  3673. if ((value != null))
  3674. {
  3675. value.AP_StaffBroker_LeaderMetas.Add(this);
  3676. this._UserId = value.UserID;
  3677. }
  3678. else
  3679. {
  3680. this._UserId = default(int);
  3681. }
  3682. this.SendPropertyChanged("User");
  3683. }
  3684. }
  3685. }
  3686. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Delegate_AP_StaffBroker_LeaderMeta", Storage="_Delegate", ThisKey="DelegateId", OtherKey="UserID", IsForeignKey=true)]
  3687. public Delegate Delegate
  3688. {
  3689. get
  3690. {
  3691. return this._Delegate.Entity;
  3692. }
  3693. set
  3694. {
  3695. Delegate previousValue = this._Delegate.Entity;
  3696. if (((previousValue != value)
  3697. || (this._Delegate.HasLoadedOrAssignedValue == false)))
  3698. {
  3699. this.SendPropertyChanging();
  3700. if ((previousValue != null))
  3701. {
  3702. this._Delegate.Entity = null;
  3703. previousValue.AP_StaffBroker_LeaderMetas = null;
  3704. }
  3705. this._Delegate.Entity = value;
  3706. if ((value != null))
  3707. {
  3708. value.AP_StaffBroker_LeaderMetas = this;
  3709. this._DelegateId = value.UserID;
  3710. }
  3711. else
  3712. {
  3713. this._DelegateId = default(Nullable<int>);
  3714. }
  3715. this.SendPropertyChanged("Delegate");
  3716. }
  3717. }
  3718. }
  3719. public event PropertyChangingEventHandler PropertyChanging;
  3720. public event PropertyChangedEventHandler PropertyChanged;
  3721. protected virtual void SendPropertyChanging()
  3722. {
  3723. if ((this.PropertyChanging != null))
  3724. {
  3725. this.PropertyChanging(this, emptyChangingEventArgs);
  3726. }
  3727. }
  3728. protected virtual void SendPropertyChanged(String propertyName)
  3729. {
  3730. if ((this.PropertyChanged != null))
  3731. {
  3732. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  3733. }
  3734. }
  3735. }
  3736. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
  3737. public partial class Leader : INotifyPropertyChanging, INotifyPropertyChanged
  3738. {
  3739. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  3740. private int _UserID;
  3741. private string _Username;
  3742. private string _FirstName;
  3743. private string _LastName;
  3744. private bool _IsSuperUser;
  3745. private System.Nullable<int> _AffiliateId;
  3746. private string _Email;
  3747. private string _DisplayName;
  3748. private bool _UpdatePassword;
  3749. private string _LastIPAddress;
  3750. private bool _IsDeleted;
  3751. private System.Nullable<int> _CreatedByUserID;
  3752. private System.Nullable<System.DateTime> _CreatedOnDate;
  3753. private System.Nullable<int> _LastModifiedByUserID;
  3754. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  3755. private EntityRef<AP_StaffBroker_LeaderMeta> _AP_StaffBroker_LeaderMeta;
  3756. #region Extensibility Method Definitions
  3757. partial void OnLoaded();
  3758. partial void OnValidate(System.Data.Linq.ChangeAction action);
  3759. partial void OnCreated();
  3760. partial void OnUserIDChanging(int value);
  3761. partial void OnUserIDChanged();
  3762. partial void OnUsernameChanging(string value);
  3763. partial void OnUsernameChanged();
  3764. partial void OnFirstNameChanging(string value);
  3765. partial void OnFirstNameChanged();
  3766. partial void OnLastNameChanging(string value);
  3767. partial void OnLastNameChanged();
  3768. partial void OnIsSuperUserChanging(bool value);
  3769. partial void OnIsSuperUserChanged();
  3770. partial void OnAffiliateIdChanging(System.Nullable<int> value);
  3771. partial void OnAffiliateIdChanged();
  3772. partial void OnEmailChanging(string value);
  3773. partial void OnEmailChanged();
  3774. partial void OnDisplayNameChanging(string value);
  3775. partial void OnDisplayNameChanged();
  3776. partial void OnUpdatePasswordChanging(bool value);
  3777. partial void OnUpdatePasswordChanged();
  3778. partial void OnLastIPAddressChanging(string value);
  3779. partial void OnLastIPAddressChanged();
  3780. partial void OnIsDeletedChanging(bool value);
  3781. partial void OnIsDeletedChanged();
  3782. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  3783. partial void OnCreatedByUserIDChanged();
  3784. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  3785. partial void OnCreatedOnDateChanged();
  3786. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  3787. partial void OnLastModifiedByUserIDChanged();
  3788. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  3789. partial void OnLastModifiedOnDateChanged();
  3790. #endregion
  3791. public Leader()
  3792. {
  3793. this._AP_StaffBroker_LeaderMeta = default(EntityRef<AP_StaffBroker_LeaderMeta>);
  3794. OnCreated();
  3795. }
  3796. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  3797. public int UserID
  3798. {
  3799. get
  3800. {
  3801. return this._UserID;
  3802. }
  3803. set
  3804. {
  3805. if ((this._UserID != value))
  3806. {
  3807. if (this._AP_StaffBroker_LeaderMeta.HasLoadedOrAssignedValue)
  3808. {
  3809. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  3810. }
  3811. this.OnUserIDChanging(value);
  3812. this.SendPropertyChanging();
  3813. this._UserID = value;
  3814. this.SendPropertyChanged("UserID");
  3815. this.OnUserIDChanged();
  3816. }
  3817. }
  3818. }
  3819. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  3820. public string Username
  3821. {
  3822. get
  3823. {
  3824. return this._Username;
  3825. }
  3826. set
  3827. {
  3828. if ((this._Username != value))
  3829. {
  3830. this.OnUsernameChanging(value);
  3831. this.SendPropertyChanging();
  3832. this._Username = value;
  3833. this.SendPropertyChanged("Username");
  3834. this.OnUsernameChanged();
  3835. }
  3836. }
  3837. }
  3838. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  3839. public string FirstName
  3840. {
  3841. get
  3842. {
  3843. return this._FirstName;
  3844. }
  3845. set
  3846. {
  3847. if ((this._FirstName != value))
  3848. {
  3849. this.OnFirstNameChanging(value);
  3850. this.SendPropertyChanging();
  3851. this._FirstName = value;
  3852. this.SendPropertyChanged("FirstName");
  3853. this.OnFirstNameChanged();
  3854. }
  3855. }
  3856. }
  3857. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  3858. public string LastName
  3859. {
  3860. get
  3861. {
  3862. return this._LastName;
  3863. }
  3864. set
  3865. {
  3866. if ((this._LastName != value))
  3867. {
  3868. this.OnLastNameChanging(value);
  3869. this.SendPropertyChanging();
  3870. this._LastName = value;
  3871. this.SendPropertyChanged("LastName");
  3872. this.OnLastNameChanged();
  3873. }
  3874. }
  3875. }
  3876. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperUser", DbType="Bit NOT NULL")]
  3877. public bool IsSuperUser
  3878. {
  3879. get
  3880. {
  3881. return this._IsSuperUser;
  3882. }
  3883. set
  3884. {
  3885. if ((this._IsSuperUser != value))
  3886. {
  3887. this.OnIsSuperUserChanging(value);
  3888. this.SendPropertyChanging();
  3889. this._IsSuperUser = value;
  3890. this.SendPropertyChanged("IsSuperUser");
  3891. this.OnIsSuperUserChanged();
  3892. }
  3893. }
  3894. }
  3895. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AffiliateId", DbType="Int")]
  3896. public System.Nullable<int> AffiliateId
  3897. {
  3898. get
  3899. {
  3900. return this._AffiliateId;
  3901. }
  3902. set
  3903. {
  3904. if ((this._AffiliateId != value))
  3905. {
  3906. this.OnAffiliateIdChanging(value);
  3907. this.SendPropertyChanging();
  3908. this._AffiliateId = value;
  3909. this.SendPropertyChanged("AffiliateId");
  3910. this.OnAffiliateIdChanged();
  3911. }
  3912. }
  3913. }
  3914. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
  3915. public string Email
  3916. {
  3917. get
  3918. {
  3919. return this._Email;
  3920. }
  3921. set
  3922. {
  3923. if ((this._Email != value))
  3924. {
  3925. this.OnEmailChanging(value);
  3926. this.SendPropertyChanging();
  3927. this._Email = value;
  3928. this.SendPropertyChanged("Email");
  3929. this.OnEmailChanged();
  3930. }
  3931. }
  3932. }
  3933. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  3934. public string DisplayName
  3935. {
  3936. get
  3937. {
  3938. return this._DisplayName;
  3939. }
  3940. set
  3941. {
  3942. if ((this._DisplayName != value))
  3943. {
  3944. this.OnDisplayNameChanging(value);
  3945. this.SendPropertyChanging();
  3946. this._DisplayName = value;
  3947. this.SendPropertyChanged("DisplayName");
  3948. this.OnDisplayNameChanged();
  3949. }
  3950. }
  3951. }
  3952. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpdatePassword", DbType="Bit NOT NULL")]
  3953. public bool UpdatePassword
  3954. {
  3955. get
  3956. {
  3957. return this._UpdatePassword;
  3958. }
  3959. set
  3960. {
  3961. if ((this._UpdatePassword != value))
  3962. {
  3963. this.OnUpdatePasswordChanging(value);
  3964. this.SendPropertyChanging();
  3965. this._UpdatePassword = value;
  3966. this.SendPropertyChanged("UpdatePassword");
  3967. this.OnUpdatePasswordChanged();
  3968. }
  3969. }
  3970. }
  3971. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIPAddress", DbType="NVarChar(50)")]
  3972. public string LastIPAddress
  3973. {
  3974. get
  3975. {
  3976. return this._LastIPAddress;
  3977. }
  3978. set
  3979. {
  3980. if ((this._LastIPAddress != value))
  3981. {
  3982. this.OnLastIPAddressChanging(value);
  3983. this.SendPropertyChanging();
  3984. this._LastIPAddress = value;
  3985. this.SendPropertyChanged("LastIPAddress");
  3986. this.OnLastIPAddressChanged();
  3987. }
  3988. }
  3989. }
  3990. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
  3991. public bool IsDeleted
  3992. {
  3993. get
  3994. {
  3995. return this._IsDeleted;
  3996. }
  3997. set
  3998. {
  3999. if ((this._IsDeleted != value))
  4000. {
  4001. this.OnIsDeletedChanging(value);
  4002. this.SendPropertyChanging();
  4003. this._IsDeleted = value;
  4004. this.SendPropertyChanged("IsDeleted");
  4005. this.OnIsDeletedChanged();
  4006. }
  4007. }
  4008. }
  4009. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  4010. public System.Nullable<int> CreatedByUserID
  4011. {
  4012. get
  4013. {
  4014. return this._CreatedByUserID;
  4015. }
  4016. set
  4017. {
  4018. if ((this._CreatedByUserID != value))
  4019. {
  4020. this.OnCreatedByUserIDChanging(value);
  4021. this.SendPropertyChanging();
  4022. this._CreatedByUserID = value;
  4023. this.SendPropertyChanged("CreatedByUserID");
  4024. this.OnCreatedByUserIDChanged();
  4025. }
  4026. }
  4027. }
  4028. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  4029. public System.Nullable<System.DateTime> CreatedOnDate
  4030. {
  4031. get
  4032. {
  4033. return this._CreatedOnDate;
  4034. }
  4035. set
  4036. {
  4037. if ((this._CreatedOnDate != value))
  4038. {
  4039. this.OnCreatedOnDateChanging(value);
  4040. this.SendPropertyChanging();
  4041. this._CreatedOnDate = value;
  4042. this.SendPropertyChanged("CreatedOnDate");
  4043. this.OnCreatedOnDateChanged();
  4044. }
  4045. }
  4046. }
  4047. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  4048. public System.Nullable<int> LastModifiedByUserID
  4049. {
  4050. get
  4051. {
  4052. return this._LastModifiedByUserID;
  4053. }
  4054. set
  4055. {
  4056. if ((this._LastModifiedByUserID != value))
  4057. {
  4058. this.OnLastModifiedByUserIDChanging(value);
  4059. this.SendPropertyChanging();
  4060. this._LastModifiedByUserID = value;
  4061. this.SendPropertyChanged("LastModifiedByUserID");
  4062. this.OnLastModifiedByUserIDChanged();
  4063. }
  4064. }
  4065. }
  4066. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  4067. public System.Nullable<System.DateTime> LastModifiedOnDate
  4068. {
  4069. get
  4070. {
  4071. return this._LastModifiedOnDate;
  4072. }
  4073. set
  4074. {
  4075. if ((this._LastModifiedOnDate != value))
  4076. {
  4077. this.OnLastModifiedOnDateChanging(value);
  4078. this.SendPropertyChanging();
  4079. this._LastModifiedOnDate = value;
  4080. this.SendPropertyChanged("LastModifiedOnDate");
  4081. this.OnLastModifiedOnDateChanged();
  4082. }
  4083. }
  4084. }
  4085. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_LeaderMeta_Leader", Storage="_AP_StaffBroker_LeaderMeta", ThisKey="UserID", OtherKey="LeaderId", IsForeignKey=true)]
  4086. public AP_StaffBroker_LeaderMeta AP_StaffBroker_LeaderMeta
  4087. {
  4088. get
  4089. {
  4090. return this._AP_StaffBroker_LeaderMeta.Entity;
  4091. }
  4092. set
  4093. {
  4094. AP_StaffBroker_LeaderMeta previousValue = this._AP_StaffBroker_LeaderMeta.Entity;
  4095. if (((previousValue != value)
  4096. || (this._AP_StaffBroker_LeaderMeta.HasLoadedOrAssignedValue == false)))
  4097. {
  4098. this.SendPropertyChanging();
  4099. if ((previousValue != null))
  4100. {
  4101. this._AP_StaffBroker_LeaderMeta.Entity = null;
  4102. previousValue.Leaders = null;
  4103. }
  4104. this._AP_StaffBroker_LeaderMeta.Entity = value;
  4105. if ((value != null))
  4106. {
  4107. value.Leaders = this;
  4108. this._UserID = value.LeaderId;
  4109. }
  4110. else
  4111. {
  4112. this._UserID = default(int);
  4113. }
  4114. this.SendPropertyChanged("AP_StaffBroker_LeaderMeta");
  4115. }
  4116. }
  4117. }
  4118. public event PropertyChangingEventHandler PropertyChanging;
  4119. public event PropertyChangedEventHandler PropertyChanged;
  4120. protected virtual void SendPropertyChanging()
  4121. {
  4122. if ((this.PropertyChanging != null))
  4123. {
  4124. this.PropertyChanging(this, emptyChangingEventArgs);
  4125. }
  4126. }
  4127. protected virtual void SendPropertyChanged(String propertyName)
  4128. {
  4129. if ((this.PropertyChanged != null))
  4130. {
  4131. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  4132. }
  4133. }
  4134. }
  4135. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
  4136. public partial class Delegate : INotifyPropertyChanging, INotifyPropertyChanged
  4137. {
  4138. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  4139. private int _UserID;
  4140. private string _Username;
  4141. private string _FirstName;
  4142. private string _LastName;
  4143. private bool _IsSuperUser;
  4144. private System.Nullable<int> _AffiliateId;
  4145. private string _Email;
  4146. private string _DisplayName;
  4147. private bool _UpdatePassword;
  4148. private string _LastIPAddress;
  4149. private bool _IsDeleted;
  4150. private System.Nullable<int> _CreatedByUserID;
  4151. private System.Nullable<System.DateTime> _CreatedOnDate;
  4152. private System.Nullable<int> _LastModifiedByUserID;
  4153. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  4154. private EntityRef<AP_StaffBroker_LeaderMeta> _AP_StaffBroker_LeaderMetas;
  4155. #region Extensibility Method Definitions
  4156. partial void OnLoaded();
  4157. partial void OnValidate(System.Data.Linq.ChangeAction action);
  4158. partial void OnCreated();
  4159. partial void OnUserIDChanging(int value);
  4160. partial void OnUserIDChanged();
  4161. partial void OnUsernameChanging(string value);
  4162. partial void OnUsernameChanged();
  4163. partial void OnFirstNameChanging(string value);
  4164. partial void OnFirstNameChanged();
  4165. partial void OnLastNameChanging(string value);
  4166. partial void OnLastNameChanged();
  4167. partial void OnIsSuperUserChanging(bool value);
  4168. partial void OnIsSuperUserChanged();
  4169. partial void OnAffiliateIdChanging(System.Nullable<int> value);
  4170. partial void OnAffiliateIdChanged();
  4171. partial void OnEmailChanging(string value);
  4172. partial void OnEmailChanged();
  4173. partial void OnDisplayNameChanging(string value);
  4174. partial void OnDisplayNameChanged();
  4175. partial void OnUpdatePasswordChanging(bool value);
  4176. partial void OnUpdatePasswordChanged();
  4177. partial void OnLastIPAddressChanging(string value);
  4178. partial void OnLastIPAddressChanged();
  4179. partial void OnIsDeletedChanging(bool value);
  4180. partial void OnIsDeletedChanged();
  4181. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  4182. partial void OnCreatedByUserIDChanged();
  4183. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  4184. partial void OnCreatedOnDateChanged();
  4185. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  4186. partial void OnLastModifiedByUserIDChanged();
  4187. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  4188. partial void OnLastModifiedOnDateChanged();
  4189. #endregion
  4190. public Delegate()
  4191. {
  4192. this._AP_StaffBroker_LeaderMetas = default(EntityRef<AP_StaffBroker_LeaderMeta>);
  4193. OnCreated();
  4194. }
  4195. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  4196. public int UserID
  4197. {
  4198. get
  4199. {
  4200. return this._UserID;
  4201. }
  4202. set
  4203. {
  4204. if ((this._UserID != value))
  4205. {
  4206. this.OnUserIDChanging(value);
  4207. this.SendPropertyChanging();
  4208. this._UserID = value;
  4209. this.SendPropertyChanged("UserID");
  4210. this.OnUserIDChanged();
  4211. }
  4212. }
  4213. }
  4214. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  4215. public string Username
  4216. {
  4217. get
  4218. {
  4219. return this._Username;
  4220. }
  4221. set
  4222. {
  4223. if ((this._Username != value))
  4224. {
  4225. this.OnUsernameChanging(value);
  4226. this.SendPropertyChanging();
  4227. this._Username = value;
  4228. this.SendPropertyChanged("Username");
  4229. this.OnUsernameChanged();
  4230. }
  4231. }
  4232. }
  4233. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  4234. public string FirstName
  4235. {
  4236. get
  4237. {
  4238. return this._FirstName;
  4239. }
  4240. set
  4241. {
  4242. if ((this._FirstName != value))
  4243. {
  4244. this.OnFirstNameChanging(value);
  4245. this.SendPropertyChanging();
  4246. this._FirstName = value;
  4247. this.SendPropertyChanged("FirstName");
  4248. this.OnFirstNameChanged();
  4249. }
  4250. }
  4251. }
  4252. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  4253. public string LastName
  4254. {
  4255. get
  4256. {
  4257. return this._LastName;
  4258. }
  4259. set
  4260. {
  4261. if ((this._LastName != value))
  4262. {
  4263. this.OnLastNameChanging(value);
  4264. this.SendPropertyChanging();
  4265. this._LastName = value;
  4266. this.SendPropertyChanged("LastName");
  4267. this.OnLastNameChanged();
  4268. }
  4269. }
  4270. }
  4271. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperUser", DbType="Bit NOT NULL")]
  4272. public bool IsSuperUser
  4273. {
  4274. get
  4275. {
  4276. return this._IsSuperUser;
  4277. }
  4278. set
  4279. {
  4280. if ((this._IsSuperUser != value))
  4281. {
  4282. this.OnIsSuperUserChanging(value);
  4283. this.SendPropertyChanging();
  4284. this._IsSuperUser = value;
  4285. this.SendPropertyChanged("IsSuperUser");
  4286. this.OnIsSuperUserChanged();
  4287. }
  4288. }
  4289. }
  4290. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AffiliateId", DbType="Int")]
  4291. public System.Nullable<int> AffiliateId
  4292. {
  4293. get
  4294. {
  4295. return this._AffiliateId;
  4296. }
  4297. set
  4298. {
  4299. if ((this._AffiliateId != value))
  4300. {
  4301. this.OnAffiliateIdChanging(value);
  4302. this.SendPropertyChanging();
  4303. this._AffiliateId = value;
  4304. this.SendPropertyChanged("AffiliateId");
  4305. this.OnAffiliateIdChanged();
  4306. }
  4307. }
  4308. }
  4309. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
  4310. public string Email
  4311. {
  4312. get
  4313. {
  4314. return this._Email;
  4315. }
  4316. set
  4317. {
  4318. if ((this._Email != value))
  4319. {
  4320. this.OnEmailChanging(value);
  4321. this.SendPropertyChanging();
  4322. this._Email = value;
  4323. this.SendPropertyChanged("Email");
  4324. this.OnEmailChanged();
  4325. }
  4326. }
  4327. }
  4328. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  4329. public string DisplayName
  4330. {
  4331. get
  4332. {
  4333. return this._DisplayName;
  4334. }
  4335. set
  4336. {
  4337. if ((this._DisplayName != value))
  4338. {
  4339. this.OnDisplayNameChanging(value);
  4340. this.SendPropertyChanging();
  4341. this._DisplayName = value;
  4342. this.SendPropertyChanged("DisplayName");
  4343. this.OnDisplayNameChanged();
  4344. }
  4345. }
  4346. }
  4347. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpdatePassword", DbType="Bit NOT NULL")]
  4348. public bool UpdatePassword
  4349. {
  4350. get
  4351. {
  4352. return this._UpdatePassword;
  4353. }
  4354. set
  4355. {
  4356. if ((this._UpdatePassword != value))
  4357. {
  4358. this.OnUpdatePasswordChanging(value);
  4359. this.SendPropertyChanging();
  4360. this._UpdatePassword = value;
  4361. this.SendPropertyChanged("UpdatePassword");
  4362. this.OnUpdatePasswordChanged();
  4363. }
  4364. }
  4365. }
  4366. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIPAddress", DbType="NVarChar(50)")]
  4367. public string LastIPAddress
  4368. {
  4369. get
  4370. {
  4371. return this._LastIPAddress;
  4372. }
  4373. set
  4374. {
  4375. if ((this._LastIPAddress != value))
  4376. {
  4377. this.OnLastIPAddressChanging(value);
  4378. this.SendPropertyChanging();
  4379. this._LastIPAddress = value;
  4380. this.SendPropertyChanged("LastIPAddress");
  4381. this.OnLastIPAddressChanged();
  4382. }
  4383. }
  4384. }
  4385. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
  4386. public bool IsDeleted
  4387. {
  4388. get
  4389. {
  4390. return this._IsDeleted;
  4391. }
  4392. set
  4393. {
  4394. if ((this._IsDeleted != value))
  4395. {
  4396. this.OnIsDeletedChanging(value);
  4397. this.SendPropertyChanging();
  4398. this._IsDeleted = value;
  4399. this.SendPropertyChanged("IsDeleted");
  4400. this.OnIsDeletedChanged();
  4401. }
  4402. }
  4403. }
  4404. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  4405. public System.Nullable<int> CreatedByUserID
  4406. {
  4407. get
  4408. {
  4409. return this._CreatedByUserID;
  4410. }
  4411. set
  4412. {
  4413. if ((this._CreatedByUserID != value))
  4414. {
  4415. this.OnCreatedByUserIDChanging(value);
  4416. this.SendPropertyChanging();
  4417. this._CreatedByUserID = value;
  4418. this.SendPropertyChanged("CreatedByUserID");
  4419. this.OnCreatedByUserIDChanged();
  4420. }
  4421. }
  4422. }
  4423. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  4424. public System.Nullable<System.DateTime> CreatedOnDate
  4425. {
  4426. get
  4427. {
  4428. return this._CreatedOnDate;
  4429. }
  4430. set
  4431. {
  4432. if ((this._CreatedOnDate != value))
  4433. {
  4434. this.OnCreatedOnDateChanging(value);
  4435. this.SendPropertyChanging();
  4436. this._CreatedOnDate = value;
  4437. this.SendPropertyChanged("CreatedOnDate");
  4438. this.OnCreatedOnDateChanged();
  4439. }
  4440. }
  4441. }
  4442. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  4443. public System.Nullable<int> LastModifiedByUserID
  4444. {
  4445. get
  4446. {
  4447. return this._LastModifiedByUserID;
  4448. }
  4449. set
  4450. {
  4451. if ((this._LastModifiedByUserID != value))
  4452. {
  4453. this.OnLastModifiedByUserIDChanging(value);
  4454. this.SendPropertyChanging();
  4455. this._LastModifiedByUserID = value;
  4456. this.SendPropertyChanged("LastModifiedByUserID");
  4457. this.OnLastModifiedByUserIDChanged();
  4458. }
  4459. }
  4460. }
  4461. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  4462. public System.Nullable<System.DateTime> LastModifiedOnDate
  4463. {
  4464. get
  4465. {
  4466. return this._LastModifiedOnDate;
  4467. }
  4468. set
  4469. {
  4470. if ((this._LastModifiedOnDate != value))
  4471. {
  4472. this.OnLastModifiedOnDateChanging(value);
  4473. this.SendPropertyChanging();
  4474. this._LastModifiedOnDate = value;
  4475. this.SendPropertyChanged("LastModifiedOnDate");
  4476. this.OnLastModifiedOnDateChanged();
  4477. }
  4478. }
  4479. }
  4480. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Delegate_AP_StaffBroker_LeaderMeta", Storage="_AP_StaffBroker_LeaderMetas", ThisKey="UserID", OtherKey="DelegateId", IsUnique=true, IsForeignKey=false)]
  4481. public AP_StaffBroker_LeaderMeta AP_StaffBroker_LeaderMetas
  4482. {
  4483. get
  4484. {
  4485. return this._AP_StaffBroker_LeaderMetas.Entity;
  4486. }
  4487. set
  4488. {
  4489. AP_StaffBroker_LeaderMeta previousValue = this._AP_StaffBroker_LeaderMetas.Entity;
  4490. if (((previousValue != value)
  4491. || (this._AP_StaffBroker_LeaderMetas.HasLoadedOrAssignedValue == false)))
  4492. {
  4493. this.SendPropertyChanging();
  4494. if ((previousValue != null))
  4495. {
  4496. this._AP_StaffBroker_LeaderMetas.Entity = null;
  4497. previousValue.Delegate = null;
  4498. }
  4499. this._AP_StaffBroker_LeaderMetas.Entity = value;
  4500. if ((value != null))
  4501. {
  4502. value.Delegate = this;
  4503. }
  4504. this.SendPropertyChanged("AP_StaffBroker_LeaderMetas");
  4505. }
  4506. }
  4507. }
  4508. public event PropertyChangingEventHandler PropertyChanging;
  4509. public event PropertyChangedEventHandler PropertyChanged;
  4510. protected virtual void SendPropertyChanging()
  4511. {
  4512. if ((this.PropertyChanging != null))
  4513. {
  4514. this.PropertyChanging(this, emptyChangingEventArgs);
  4515. }
  4516. }
  4517. protected virtual void SendPropertyChanged(String propertyName)
  4518. {
  4519. if ((this.PropertyChanged != null))
  4520. {
  4521. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  4522. }
  4523. }
  4524. }
  4525. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_LeaderMeta")]
  4526. public partial class AP_StaffBroker_LeaderMeta2 : INotifyPropertyChanging, INotifyPropertyChanged
  4527. {
  4528. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  4529. private long _LeaderMetaId;
  4530. private int _UserId;
  4531. private int _LeaderId;
  4532. private System.Nullable<int> _DelegateId;
  4533. private EntityRef<Leader2> _Leader2s;
  4534. private EntityRef<Delegate2> _Delegate2;
  4535. private EntityRef<User2> _User2;
  4536. #region Extensibility Method Definitions
  4537. partial void OnLoaded();
  4538. partial void OnValidate(System.Data.Linq.ChangeAction action);
  4539. partial void OnCreated();
  4540. partial void OnLeaderMetaIdChanging(long value);
  4541. partial void OnLeaderMetaIdChanged();
  4542. partial void OnUserIdChanging(int value);
  4543. partial void OnUserIdChanged();
  4544. partial void OnLeaderIdChanging(int value);
  4545. partial void OnLeaderIdChanged();
  4546. partial void OnDelegateIdChanging(System.Nullable<int> value);
  4547. partial void OnDelegateIdChanged();
  4548. #endregion
  4549. public AP_StaffBroker_LeaderMeta2()
  4550. {
  4551. this._Leader2s = default(EntityRef<Leader2>);
  4552. this._Delegate2 = default(EntityRef<Delegate2>);
  4553. this._User2 = default(EntityRef<User2>);
  4554. OnCreated();
  4555. }
  4556. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderMetaId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  4557. public long LeaderMetaId
  4558. {
  4559. get
  4560. {
  4561. return this._LeaderMetaId;
  4562. }
  4563. set
  4564. {
  4565. if ((this._LeaderMetaId != value))
  4566. {
  4567. this.OnLeaderMetaIdChanging(value);
  4568. this.SendPropertyChanging();
  4569. this._LeaderMetaId = value;
  4570. this.SendPropertyChanged("LeaderMetaId");
  4571. this.OnLeaderMetaIdChanged();
  4572. }
  4573. }
  4574. }
  4575. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="Int NOT NULL")]
  4576. public int UserId
  4577. {
  4578. get
  4579. {
  4580. return this._UserId;
  4581. }
  4582. set
  4583. {
  4584. if ((this._UserId != value))
  4585. {
  4586. if (this._User2.HasLoadedOrAssignedValue)
  4587. {
  4588. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  4589. }
  4590. this.OnUserIdChanging(value);
  4591. this.SendPropertyChanging();
  4592. this._UserId = value;
  4593. this.SendPropertyChanged("UserId");
  4594. this.OnUserIdChanged();
  4595. }
  4596. }
  4597. }
  4598. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderId", DbType="Int NOT NULL")]
  4599. public int LeaderId
  4600. {
  4601. get
  4602. {
  4603. return this._LeaderId;
  4604. }
  4605. set
  4606. {
  4607. if ((this._LeaderId != value))
  4608. {
  4609. this.OnLeaderIdChanging(value);
  4610. this.SendPropertyChanging();
  4611. this._LeaderId = value;
  4612. this.SendPropertyChanged("LeaderId");
  4613. this.OnLeaderIdChanged();
  4614. }
  4615. }
  4616. }
  4617. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegateId", DbType="Int")]
  4618. public System.Nullable<int> DelegateId
  4619. {
  4620. get
  4621. {
  4622. return this._DelegateId;
  4623. }
  4624. set
  4625. {
  4626. if ((this._DelegateId != value))
  4627. {
  4628. if (this._Delegate2.HasLoadedOrAssignedValue)
  4629. {
  4630. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  4631. }
  4632. this.OnDelegateIdChanging(value);
  4633. this.SendPropertyChanging();
  4634. this._DelegateId = value;
  4635. this.SendPropertyChanged("DelegateId");
  4636. this.OnDelegateIdChanged();
  4637. }
  4638. }
  4639. }
  4640. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_LeaderMeta2_Leader2", Storage="_Leader2s", ThisKey="LeaderId", OtherKey="UserID", IsUnique=true, IsForeignKey=false)]
  4641. public Leader2 Leader2s
  4642. {
  4643. get
  4644. {
  4645. return this._Leader2s.Entity;
  4646. }
  4647. set
  4648. {
  4649. Leader2 previousValue = this._Leader2s.Entity;
  4650. if (((previousValue != value)
  4651. || (this._Leader2s.HasLoadedOrAssignedValue == false)))
  4652. {
  4653. this.SendPropertyChanging();
  4654. if ((previousValue != null))
  4655. {
  4656. this._Leader2s.Entity = null;
  4657. previousValue.AP_StaffBroker_LeaderMeta2 = null;
  4658. }
  4659. this._Leader2s.Entity = value;
  4660. if ((value != null))
  4661. {
  4662. value.AP_StaffBroker_LeaderMeta2 = this;
  4663. }
  4664. this.SendPropertyChanged("Leader2s");
  4665. }
  4666. }
  4667. }
  4668. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Delegate2_AP_StaffBroker_LeaderMeta2", Storage="_Delegate2", ThisKey="DelegateId", OtherKey="UserID", IsForeignKey=true)]
  4669. public Delegate2 Delegate2
  4670. {
  4671. get
  4672. {
  4673. return this._Delegate2.Entity;
  4674. }
  4675. set
  4676. {
  4677. Delegate2 previousValue = this._Delegate2.Entity;
  4678. if (((previousValue != value)
  4679. || (this._Delegate2.HasLoadedOrAssignedValue == false)))
  4680. {
  4681. this.SendPropertyChanging();
  4682. if ((previousValue != null))
  4683. {
  4684. this._Delegate2.Entity = null;
  4685. previousValue.AP_StaffBroker_LeaderMeta2 = null;
  4686. }
  4687. this._Delegate2.Entity = value;
  4688. if ((value != null))
  4689. {
  4690. value.AP_StaffBroker_LeaderMeta2 = this;
  4691. this._DelegateId = value.UserID;
  4692. }
  4693. else
  4694. {
  4695. this._DelegateId = default(Nullable<int>);
  4696. }
  4697. this.SendPropertyChanged("Delegate2");
  4698. }
  4699. }
  4700. }
  4701. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User2_AP_StaffBroker_LeaderMeta2", Storage="_User2", ThisKey="UserId", OtherKey="UserID", IsForeignKey=true)]
  4702. public User2 User2
  4703. {
  4704. get
  4705. {
  4706. return this._User2.Entity;
  4707. }
  4708. set
  4709. {
  4710. User2 previousValue = this._User2.Entity;
  4711. if (((previousValue != value)
  4712. || (this._User2.HasLoadedOrAssignedValue == false)))
  4713. {
  4714. this.SendPropertyChanging();
  4715. if ((previousValue != null))
  4716. {
  4717. this._User2.Entity = null;
  4718. previousValue.AP_StaffBroker_LeaderMeta2s.Remove(this);
  4719. }
  4720. this._User2.Entity = value;
  4721. if ((value != null))
  4722. {
  4723. value.AP_StaffBroker_LeaderMeta2s.Add(this);
  4724. this._UserId = value.UserID;
  4725. }
  4726. else
  4727. {
  4728. this._UserId = default(int);
  4729. }
  4730. this.SendPropertyChanged("User2");
  4731. }
  4732. }
  4733. }
  4734. public event PropertyChangingEventHandler PropertyChanging;
  4735. public event PropertyChangedEventHandler PropertyChanged;
  4736. protected virtual void SendPropertyChanging()
  4737. {
  4738. if ((this.PropertyChanging != null))
  4739. {
  4740. this.PropertyChanging(this, emptyChangingEventArgs);
  4741. }
  4742. }
  4743. protected virtual void SendPropertyChanged(String propertyName)
  4744. {
  4745. if ((this.PropertyChanged != null))
  4746. {
  4747. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  4748. }
  4749. }
  4750. }
  4751. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
  4752. public partial class Delegate2 : INotifyPropertyChanging, INotifyPropertyChanged
  4753. {
  4754. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  4755. private int _UserID;
  4756. private string _Username;
  4757. private string _FirstName;
  4758. private string _LastName;
  4759. private bool _IsSuperUser;
  4760. private System.Nullable<int> _AffiliateId;
  4761. private string _Email;
  4762. private string _DisplayName;
  4763. private bool _UpdatePassword;
  4764. private string _LastIPAddress;
  4765. private bool _IsDeleted;
  4766. private System.Nullable<int> _CreatedByUserID;
  4767. private System.Nullable<System.DateTime> _CreatedOnDate;
  4768. private System.Nullable<int> _LastModifiedByUserID;
  4769. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  4770. private EntityRef<AP_StaffBroker_LeaderMeta2> _AP_StaffBroker_LeaderMeta2;
  4771. #region Extensibility Method Definitions
  4772. partial void OnLoaded();
  4773. partial void OnValidate(System.Data.Linq.ChangeAction action);
  4774. partial void OnCreated();
  4775. partial void OnUserIDChanging(int value);
  4776. partial void OnUserIDChanged();
  4777. partial void OnUsernameChanging(string value);
  4778. partial void OnUsernameChanged();
  4779. partial void OnFirstNameChanging(string value);
  4780. partial void OnFirstNameChanged();
  4781. partial void OnLastNameChanging(string value);
  4782. partial void OnLastNameChanged();
  4783. partial void OnIsSuperUserChanging(bool value);
  4784. partial void OnIsSuperUserChanged();
  4785. partial void OnAffiliateIdChanging(System.Nullable<int> value);
  4786. partial void OnAffiliateIdChanged();
  4787. partial void OnEmailChanging(string value);
  4788. partial void OnEmailChanged();
  4789. partial void OnDisplayNameChanging(string value);
  4790. partial void OnDisplayNameChanged();
  4791. partial void OnUpdatePasswordChanging(bool value);
  4792. partial void OnUpdatePasswordChanged();
  4793. partial void OnLastIPAddressChanging(string value);
  4794. partial void OnLastIPAddressChanged();
  4795. partial void OnIsDeletedChanging(bool value);
  4796. partial void OnIsDeletedChanged();
  4797. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  4798. partial void OnCreatedByUserIDChanged();
  4799. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  4800. partial void OnCreatedOnDateChanged();
  4801. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  4802. partial void OnLastModifiedByUserIDChanged();
  4803. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  4804. partial void OnLastModifiedOnDateChanged();
  4805. #endregion
  4806. public Delegate2()
  4807. {
  4808. this._AP_StaffBroker_LeaderMeta2 = default(EntityRef<AP_StaffBroker_LeaderMeta2>);
  4809. OnCreated();
  4810. }
  4811. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  4812. public int UserID
  4813. {
  4814. get
  4815. {
  4816. return this._UserID;
  4817. }
  4818. set
  4819. {
  4820. if ((this._UserID != value))
  4821. {
  4822. this.OnUserIDChanging(value);
  4823. this.SendPropertyChanging();
  4824. this._UserID = value;
  4825. this.SendPropertyChanged("UserID");
  4826. this.OnUserIDChanged();
  4827. }
  4828. }
  4829. }
  4830. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  4831. public string Username
  4832. {
  4833. get
  4834. {
  4835. return this._Username;
  4836. }
  4837. set
  4838. {
  4839. if ((this._Username != value))
  4840. {
  4841. this.OnUsernameChanging(value);
  4842. this.SendPropertyChanging();
  4843. this._Username = value;
  4844. this.SendPropertyChanged("Username");
  4845. this.OnUsernameChanged();
  4846. }
  4847. }
  4848. }
  4849. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  4850. public string FirstName
  4851. {
  4852. get
  4853. {
  4854. return this._FirstName;
  4855. }
  4856. set
  4857. {
  4858. if ((this._FirstName != value))
  4859. {
  4860. this.OnFirstNameChanging(value);
  4861. this.SendPropertyChanging();
  4862. this._FirstName = value;
  4863. this.SendPropertyChanged("FirstName");
  4864. this.OnFirstNameChanged();
  4865. }
  4866. }
  4867. }
  4868. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  4869. public string LastName
  4870. {
  4871. get
  4872. {
  4873. return this._LastName;
  4874. }
  4875. set
  4876. {
  4877. if ((this._LastName != value))
  4878. {
  4879. this.OnLastNameChanging(value);
  4880. this.SendPropertyChanging();
  4881. this._LastName = value;
  4882. this.SendPropertyChanged("LastName");
  4883. this.OnLastNameChanged();
  4884. }
  4885. }
  4886. }
  4887. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperUser", DbType="Bit NOT NULL")]
  4888. public bool IsSuperUser
  4889. {
  4890. get
  4891. {
  4892. return this._IsSuperUser;
  4893. }
  4894. set
  4895. {
  4896. if ((this._IsSuperUser != value))
  4897. {
  4898. this.OnIsSuperUserChanging(value);
  4899. this.SendPropertyChanging();
  4900. this._IsSuperUser = value;
  4901. this.SendPropertyChanged("IsSuperUser");
  4902. this.OnIsSuperUserChanged();
  4903. }
  4904. }
  4905. }
  4906. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AffiliateId", DbType="Int")]
  4907. public System.Nullable<int> AffiliateId
  4908. {
  4909. get
  4910. {
  4911. return this._AffiliateId;
  4912. }
  4913. set
  4914. {
  4915. if ((this._AffiliateId != value))
  4916. {
  4917. this.OnAffiliateIdChanging(value);
  4918. this.SendPropertyChanging();
  4919. this._AffiliateId = value;
  4920. this.SendPropertyChanged("AffiliateId");
  4921. this.OnAffiliateIdChanged();
  4922. }
  4923. }
  4924. }
  4925. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
  4926. public string Email
  4927. {
  4928. get
  4929. {
  4930. return this._Email;
  4931. }
  4932. set
  4933. {
  4934. if ((this._Email != value))
  4935. {
  4936. this.OnEmailChanging(value);
  4937. this.SendPropertyChanging();
  4938. this._Email = value;
  4939. this.SendPropertyChanged("Email");
  4940. this.OnEmailChanged();
  4941. }
  4942. }
  4943. }
  4944. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  4945. public string DisplayName
  4946. {
  4947. get
  4948. {
  4949. return this._DisplayName;
  4950. }
  4951. set
  4952. {
  4953. if ((this._DisplayName != value))
  4954. {
  4955. this.OnDisplayNameChanging(value);
  4956. this.SendPropertyChanging();
  4957. this._DisplayName = value;
  4958. this.SendPropertyChanged("DisplayName");
  4959. this.OnDisplayNameChanged();
  4960. }
  4961. }
  4962. }
  4963. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpdatePassword", DbType="Bit NOT NULL")]
  4964. public bool UpdatePassword
  4965. {
  4966. get
  4967. {
  4968. return this._UpdatePassword;
  4969. }
  4970. set
  4971. {
  4972. if ((this._UpdatePassword != value))
  4973. {
  4974. this.OnUpdatePasswordChanging(value);
  4975. this.SendPropertyChanging();
  4976. this._UpdatePassword = value;
  4977. this.SendPropertyChanged("UpdatePassword");
  4978. this.OnUpdatePasswordChanged();
  4979. }
  4980. }
  4981. }
  4982. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIPAddress", DbType="NVarChar(50)")]
  4983. public string LastIPAddress
  4984. {
  4985. get
  4986. {
  4987. return this._LastIPAddress;
  4988. }
  4989. set
  4990. {
  4991. if ((this._LastIPAddress != value))
  4992. {
  4993. this.OnLastIPAddressChanging(value);
  4994. this.SendPropertyChanging();
  4995. this._LastIPAddress = value;
  4996. this.SendPropertyChanged("LastIPAddress");
  4997. this.OnLastIPAddressChanged();
  4998. }
  4999. }
  5000. }
  5001. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
  5002. public bool IsDeleted
  5003. {
  5004. get
  5005. {
  5006. return this._IsDeleted;
  5007. }
  5008. set
  5009. {
  5010. if ((this._IsDeleted != value))
  5011. {
  5012. this.OnIsDeletedChanging(value);
  5013. this.SendPropertyChanging();
  5014. this._IsDeleted = value;
  5015. this.SendPropertyChanged("IsDeleted");
  5016. this.OnIsDeletedChanged();
  5017. }
  5018. }
  5019. }
  5020. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  5021. public System.Nullable<int> CreatedByUserID
  5022. {
  5023. get
  5024. {
  5025. return this._CreatedByUserID;
  5026. }
  5027. set
  5028. {
  5029. if ((this._CreatedByUserID != value))
  5030. {
  5031. this.OnCreatedByUserIDChanging(value);
  5032. this.SendPropertyChanging();
  5033. this._CreatedByUserID = value;
  5034. this.SendPropertyChanged("CreatedByUserID");
  5035. this.OnCreatedByUserIDChanged();
  5036. }
  5037. }
  5038. }
  5039. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  5040. public System.Nullable<System.DateTime> CreatedOnDate
  5041. {
  5042. get
  5043. {
  5044. return this._CreatedOnDate;
  5045. }
  5046. set
  5047. {
  5048. if ((this._CreatedOnDate != value))
  5049. {
  5050. this.OnCreatedOnDateChanging(value);
  5051. this.SendPropertyChanging();
  5052. this._CreatedOnDate = value;
  5053. this.SendPropertyChanged("CreatedOnDate");
  5054. this.OnCreatedOnDateChanged();
  5055. }
  5056. }
  5057. }
  5058. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  5059. public System.Nullable<int> LastModifiedByUserID
  5060. {
  5061. get
  5062. {
  5063. return this._LastModifiedByUserID;
  5064. }
  5065. set
  5066. {
  5067. if ((this._LastModifiedByUserID != value))
  5068. {
  5069. this.OnLastModifiedByUserIDChanging(value);
  5070. this.SendPropertyChanging();
  5071. this._LastModifiedByUserID = value;
  5072. this.SendPropertyChanged("LastModifiedByUserID");
  5073. this.OnLastModifiedByUserIDChanged();
  5074. }
  5075. }
  5076. }
  5077. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  5078. public System.Nullable<System.DateTime> LastModifiedOnDate
  5079. {
  5080. get
  5081. {
  5082. return this._LastModifiedOnDate;
  5083. }
  5084. set
  5085. {
  5086. if ((this._LastModifiedOnDate != value))
  5087. {
  5088. this.OnLastModifiedOnDateChanging(value);
  5089. this.SendPropertyChanging();
  5090. this._LastModifiedOnDate = value;
  5091. this.SendPropertyChanged("LastModifiedOnDate");
  5092. this.OnLastModifiedOnDateChanged();
  5093. }
  5094. }
  5095. }
  5096. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Delegate2_AP_StaffBroker_LeaderMeta2", Storage="_AP_StaffBroker_LeaderMeta2", ThisKey="UserID", OtherKey="DelegateId", IsUnique=true, IsForeignKey=false)]
  5097. public AP_StaffBroker_LeaderMeta2 AP_StaffBroker_LeaderMeta2
  5098. {
  5099. get
  5100. {
  5101. return this._AP_StaffBroker_LeaderMeta2.Entity;
  5102. }
  5103. set
  5104. {
  5105. AP_StaffBroker_LeaderMeta2 previousValue = this._AP_StaffBroker_LeaderMeta2.Entity;
  5106. if (((previousValue != value)
  5107. || (this._AP_StaffBroker_LeaderMeta2.HasLoadedOrAssignedValue == false)))
  5108. {
  5109. this.SendPropertyChanging();
  5110. if ((previousValue != null))
  5111. {
  5112. this._AP_StaffBroker_LeaderMeta2.Entity = null;
  5113. previousValue.Delegate2 = null;
  5114. }
  5115. this._AP_StaffBroker_LeaderMeta2.Entity = value;
  5116. if ((value != null))
  5117. {
  5118. value.Delegate2 = this;
  5119. }
  5120. this.SendPropertyChanged("AP_StaffBroker_LeaderMeta2");
  5121. }
  5122. }
  5123. }
  5124. public event PropertyChangingEventHandler PropertyChanging;
  5125. public event PropertyChangedEventHandler PropertyChanged;
  5126. protected virtual void SendPropertyChanging()
  5127. {
  5128. if ((this.PropertyChanging != null))
  5129. {
  5130. this.PropertyChanging(this, emptyChangingEventArgs);
  5131. }
  5132. }
  5133. protected virtual void SendPropertyChanged(String propertyName)
  5134. {
  5135. if ((this.PropertyChanged != null))
  5136. {
  5137. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  5138. }
  5139. }
  5140. }
  5141. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
  5142. public partial class Leader2 : INotifyPropertyChanging, INotifyPropertyChanged
  5143. {
  5144. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  5145. private int _UserID;
  5146. private string _Username;
  5147. private string _FirstName;
  5148. private string _LastName;
  5149. private bool _IsSuperUser;
  5150. private System.Nullable<int> _AffiliateId;
  5151. private string _Email;
  5152. private string _DisplayName;
  5153. private bool _UpdatePassword;
  5154. private string _LastIPAddress;
  5155. private bool _IsDeleted;
  5156. private System.Nullable<int> _CreatedByUserID;
  5157. private System.Nullable<System.DateTime> _CreatedOnDate;
  5158. private System.Nullable<int> _LastModifiedByUserID;
  5159. private System.Nullable<System.DateTime> _LastModifiedOnDate;
  5160. private EntityRef<AP_StaffBroker_LeaderMeta2> _AP_StaffBroker_LeaderMeta2;
  5161. #region Extensibility Method Definitions
  5162. partial void OnLoaded();
  5163. partial void OnValidate(System.Data.Linq.ChangeAction action);
  5164. partial void OnCreated();
  5165. partial void OnUserIDChanging(int value);
  5166. partial void OnUserIDChanged();
  5167. partial void OnUsernameChanging(string value);
  5168. partial void OnUsernameChanged();
  5169. partial void OnFirstNameChanging(string value);
  5170. partial void OnFirstNameChanged();
  5171. partial void OnLastNameChanging(string value);
  5172. partial void OnLastNameChanged();
  5173. partial void OnIsSuperUserChanging(bool value);
  5174. partial void OnIsSuperUserChanged();
  5175. partial void OnAffiliateIdChanging(System.Nullable<int> value);
  5176. partial void OnAffiliateIdChanged();
  5177. partial void OnEmailChanging(string value);
  5178. partial void OnEmailChanged();
  5179. partial void OnDisplayNameChanging(string value);
  5180. partial void OnDisplayNameChanged();
  5181. partial void OnUpdatePasswordChanging(bool value);
  5182. partial void OnUpdatePasswordChanged();
  5183. partial void OnLastIPAddressChanging(string value);
  5184. partial void OnLastIPAddressChanged();
  5185. partial void OnIsDeletedChanging(bool value);
  5186. partial void OnIsDeletedChanged();
  5187. partial void OnCreatedByUserIDChanging(System.Nullable<int> value);
  5188. partial void OnCreatedByUserIDChanged();
  5189. partial void OnCreatedOnDateChanging(System.Nullable<System.DateTime> value);
  5190. partial void OnCreatedOnDateChanged();
  5191. partial void OnLastModifiedByUserIDChanging(System.Nullable<int> value);
  5192. partial void OnLastModifiedByUserIDChanged();
  5193. partial void OnLastModifiedOnDateChanging(System.Nullable<System.DateTime> value);
  5194. partial void OnLastModifiedOnDateChanged();
  5195. #endregion
  5196. public Leader2()
  5197. {
  5198. this._AP_StaffBroker_LeaderMeta2 = default(EntityRef<AP_StaffBroker_LeaderMeta2>);
  5199. OnCreated();
  5200. }
  5201. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  5202. public int UserID
  5203. {
  5204. get
  5205. {
  5206. return this._UserID;
  5207. }
  5208. set
  5209. {
  5210. if ((this._UserID != value))
  5211. {
  5212. if (this._AP_StaffBroker_LeaderMeta2.HasLoadedOrAssignedValue)
  5213. {
  5214. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  5215. }
  5216. this.OnUserIDChanging(value);
  5217. this.SendPropertyChanging();
  5218. this._UserID = value;
  5219. this.SendPropertyChanged("UserID");
  5220. this.OnUserIDChanged();
  5221. }
  5222. }
  5223. }
  5224. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  5225. public string Username
  5226. {
  5227. get
  5228. {
  5229. return this._Username;
  5230. }
  5231. set
  5232. {
  5233. if ((this._Username != value))
  5234. {
  5235. this.OnUsernameChanging(value);
  5236. this.SendPropertyChanging();
  5237. this._Username = value;
  5238. this.SendPropertyChanged("Username");
  5239. this.OnUsernameChanged();
  5240. }
  5241. }
  5242. }
  5243. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  5244. public string FirstName
  5245. {
  5246. get
  5247. {
  5248. return this._FirstName;
  5249. }
  5250. set
  5251. {
  5252. if ((this._FirstName != value))
  5253. {
  5254. this.OnFirstNameChanging(value);
  5255. this.SendPropertyChanging();
  5256. this._FirstName = value;
  5257. this.SendPropertyChanged("FirstName");
  5258. this.OnFirstNameChanged();
  5259. }
  5260. }
  5261. }
  5262. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  5263. public string LastName
  5264. {
  5265. get
  5266. {
  5267. return this._LastName;
  5268. }
  5269. set
  5270. {
  5271. if ((this._LastName != value))
  5272. {
  5273. this.OnLastNameChanging(value);
  5274. this.SendPropertyChanging();
  5275. this._LastName = value;
  5276. this.SendPropertyChanged("LastName");
  5277. this.OnLastNameChanged();
  5278. }
  5279. }
  5280. }
  5281. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperUser", DbType="Bit NOT NULL")]
  5282. public bool IsSuperUser
  5283. {
  5284. get
  5285. {
  5286. return this._IsSuperUser;
  5287. }
  5288. set
  5289. {
  5290. if ((this._IsSuperUser != value))
  5291. {
  5292. this.OnIsSuperUserChanging(value);
  5293. this.SendPropertyChanging();
  5294. this._IsSuperUser = value;
  5295. this.SendPropertyChanged("IsSuperUser");
  5296. this.OnIsSuperUserChanged();
  5297. }
  5298. }
  5299. }
  5300. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AffiliateId", DbType="Int")]
  5301. public System.Nullable<int> AffiliateId
  5302. {
  5303. get
  5304. {
  5305. return this._AffiliateId;
  5306. }
  5307. set
  5308. {
  5309. if ((this._AffiliateId != value))
  5310. {
  5311. this.OnAffiliateIdChanging(value);
  5312. this.SendPropertyChanging();
  5313. this._AffiliateId = value;
  5314. this.SendPropertyChanged("AffiliateId");
  5315. this.OnAffiliateIdChanged();
  5316. }
  5317. }
  5318. }
  5319. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
  5320. public string Email
  5321. {
  5322. get
  5323. {
  5324. return this._Email;
  5325. }
  5326. set
  5327. {
  5328. if ((this._Email != value))
  5329. {
  5330. this.OnEmailChanging(value);
  5331. this.SendPropertyChanging();
  5332. this._Email = value;
  5333. this.SendPropertyChanged("Email");
  5334. this.OnEmailChanged();
  5335. }
  5336. }
  5337. }
  5338. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  5339. public string DisplayName
  5340. {
  5341. get
  5342. {
  5343. return this._DisplayName;
  5344. }
  5345. set
  5346. {
  5347. if ((this._DisplayName != value))
  5348. {
  5349. this.OnDisplayNameChanging(value);
  5350. this.SendPropertyChanging();
  5351. this._DisplayName = value;
  5352. this.SendPropertyChanged("DisplayName");
  5353. this.OnDisplayNameChanged();
  5354. }
  5355. }
  5356. }
  5357. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpdatePassword", DbType="Bit NOT NULL")]
  5358. public bool UpdatePassword
  5359. {
  5360. get
  5361. {
  5362. return this._UpdatePassword;
  5363. }
  5364. set
  5365. {
  5366. if ((this._UpdatePassword != value))
  5367. {
  5368. this.OnUpdatePasswordChanging(value);
  5369. this.SendPropertyChanging();
  5370. this._UpdatePassword = value;
  5371. this.SendPropertyChanged("UpdatePassword");
  5372. this.OnUpdatePasswordChanged();
  5373. }
  5374. }
  5375. }
  5376. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIPAddress", DbType="NVarChar(50)")]
  5377. public string LastIPAddress
  5378. {
  5379. get
  5380. {
  5381. return this._LastIPAddress;
  5382. }
  5383. set
  5384. {
  5385. if ((this._LastIPAddress != value))
  5386. {
  5387. this.OnLastIPAddressChanging(value);
  5388. this.SendPropertyChanging();
  5389. this._LastIPAddress = value;
  5390. this.SendPropertyChanged("LastIPAddress");
  5391. this.OnLastIPAddressChanged();
  5392. }
  5393. }
  5394. }
  5395. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
  5396. public bool IsDeleted
  5397. {
  5398. get
  5399. {
  5400. return this._IsDeleted;
  5401. }
  5402. set
  5403. {
  5404. if ((this._IsDeleted != value))
  5405. {
  5406. this.OnIsDeletedChanging(value);
  5407. this.SendPropertyChanging();
  5408. this._IsDeleted = value;
  5409. this.SendPropertyChanged("IsDeleted");
  5410. this.OnIsDeletedChanged();
  5411. }
  5412. }
  5413. }
  5414. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedByUserID", DbType="Int")]
  5415. public System.Nullable<int> CreatedByUserID
  5416. {
  5417. get
  5418. {
  5419. return this._CreatedByUserID;
  5420. }
  5421. set
  5422. {
  5423. if ((this._CreatedByUserID != value))
  5424. {
  5425. this.OnCreatedByUserIDChanging(value);
  5426. this.SendPropertyChanging();
  5427. this._CreatedByUserID = value;
  5428. this.SendPropertyChanged("CreatedByUserID");
  5429. this.OnCreatedByUserIDChanged();
  5430. }
  5431. }
  5432. }
  5433. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedOnDate", DbType="DateTime")]
  5434. public System.Nullable<System.DateTime> CreatedOnDate
  5435. {
  5436. get
  5437. {
  5438. return this._CreatedOnDate;
  5439. }
  5440. set
  5441. {
  5442. if ((this._CreatedOnDate != value))
  5443. {
  5444. this.OnCreatedOnDateChanging(value);
  5445. this.SendPropertyChanging();
  5446. this._CreatedOnDate = value;
  5447. this.SendPropertyChanged("CreatedOnDate");
  5448. this.OnCreatedOnDateChanged();
  5449. }
  5450. }
  5451. }
  5452. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedByUserID", DbType="Int")]
  5453. public System.Nullable<int> LastModifiedByUserID
  5454. {
  5455. get
  5456. {
  5457. return this._LastModifiedByUserID;
  5458. }
  5459. set
  5460. {
  5461. if ((this._LastModifiedByUserID != value))
  5462. {
  5463. this.OnLastModifiedByUserIDChanging(value);
  5464. this.SendPropertyChanging();
  5465. this._LastModifiedByUserID = value;
  5466. this.SendPropertyChanged("LastModifiedByUserID");
  5467. this.OnLastModifiedByUserIDChanged();
  5468. }
  5469. }
  5470. }
  5471. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastModifiedOnDate", DbType="DateTime")]
  5472. public System.Nullable<System.DateTime> LastModifiedOnDate
  5473. {
  5474. get
  5475. {
  5476. return this._LastModifiedOnDate;
  5477. }
  5478. set
  5479. {
  5480. if ((this._LastModifiedOnDate != value))
  5481. {
  5482. this.OnLastModifiedOnDateChanging(value);
  5483. this.SendPropertyChanging();
  5484. this._LastModifiedOnDate = value;
  5485. this.SendPropertyChanged("LastModifiedOnDate");
  5486. this.OnLastModifiedOnDateChanged();
  5487. }
  5488. }
  5489. }
  5490. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_LeaderMeta2_Leader2", Storage="_AP_StaffBroker_LeaderMeta2", ThisKey="UserID", OtherKey="LeaderId", IsForeignKey=true)]
  5491. public AP_StaffBroker_LeaderMeta2 AP_StaffBroker_LeaderMeta2
  5492. {
  5493. get
  5494. {
  5495. return this._AP_StaffBroker_LeaderMeta2.Entity;
  5496. }
  5497. set
  5498. {
  5499. AP_StaffBroker_LeaderMeta2 previousValue = this._AP_StaffBroker_LeaderMeta2.Entity;
  5500. if (((previousValue != value)
  5501. || (this._AP_StaffBroker_LeaderMeta2.HasLoadedOrAssignedValue == false)))
  5502. {
  5503. this.SendPropertyChanging();
  5504. if ((previousValue != null))
  5505. {
  5506. this._AP_StaffBroker_LeaderMeta2.Entity = null;
  5507. previousValue.Leader2s = null;
  5508. }
  5509. this._AP_StaffBroker_LeaderMeta2.Entity = value;
  5510. if ((value != null))
  5511. {
  5512. value.Leader2s = this;
  5513. this._UserID = value.LeaderId;
  5514. }
  5515. else
  5516. {
  5517. this._UserID = default(int);
  5518. }
  5519. this.SendPropertyChanged("AP_StaffBroker_LeaderMeta2");
  5520. }
  5521. }
  5522. }
  5523. public event PropertyChangingEventHandler PropertyChanging;
  5524. public event PropertyChangedEventHandler PropertyChanged;
  5525. protected virtual void SendPropertyChanging()
  5526. {
  5527. if ((this.PropertyChanging != null))
  5528. {
  5529. this.PropertyChanging(this, emptyChangingEventArgs);
  5530. }
  5531. }
  5532. protected virtual void SendPropertyChanged(String propertyName)
  5533. {
  5534. if ((this.PropertyChanged != null))
  5535. {
  5536. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  5537. }
  5538. }
  5539. }
  5540. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_AccountCodes")]
  5541. public partial class AP_StaffBroker_AccountCode : INotifyPropertyChanging, INotifyPropertyChanged
  5542. {
  5543. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  5544. private long _AccountCodeId;
  5545. private string _AccountCode;
  5546. private string _AccountCodeName;
  5547. private byte _AccountCodeType;
  5548. private int _PortalId;
  5549. #region Extensibility Method Definitions
  5550. partial void OnLoaded();
  5551. partial void OnValidate(System.Data.Linq.ChangeAction action);
  5552. partial void OnCreated();
  5553. partial void OnAccountCodeIdChanging(long value);
  5554. partial void OnAccountCodeIdChanged();
  5555. partial void OnAccountCodeChanging(string value);
  5556. partial void OnAccountCodeChanged();
  5557. partial void OnAccountCodeNameChanging(string value);
  5558. partial void OnAccountCodeNameChanged();
  5559. partial void OnAccountCodeTypeChanging(byte value);
  5560. partial void OnAccountCodeTypeChanged();
  5561. partial void OnPortalIdChanging(int value);
  5562. partial void OnPortalIdChanged();
  5563. #endregion
  5564. public AP_StaffBroker_AccountCode()
  5565. {
  5566. OnCreated();
  5567. }
  5568. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCodeId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  5569. public long AccountCodeId
  5570. {
  5571. get
  5572. {
  5573. return this._AccountCodeId;
  5574. }
  5575. set
  5576. {
  5577. if ((this._AccountCodeId != value))
  5578. {
  5579. this.OnAccountCodeIdChanging(value);
  5580. this.SendPropertyChanging();
  5581. this._AccountCodeId = value;
  5582. this.SendPropertyChanged("AccountCodeId");
  5583. this.OnAccountCodeIdChanged();
  5584. }
  5585. }
  5586. }
  5587. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCode", DbType="NVarChar(12) NOT NULL", CanBeNull=false)]
  5588. public string AccountCode
  5589. {
  5590. get
  5591. {
  5592. return this._AccountCode;
  5593. }
  5594. set
  5595. {
  5596. if ((this._AccountCode != value))
  5597. {
  5598. this.OnAccountCodeChanging(value);
  5599. this.SendPropertyChanging();
  5600. this._AccountCode = value;
  5601. this.SendPropertyChanged("AccountCode");
  5602. this.OnAccountCodeChanged();
  5603. }
  5604. }
  5605. }
  5606. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCodeName", DbType="NVarChar(120) NOT NULL", CanBeNull=false)]
  5607. public string AccountCodeName
  5608. {
  5609. get
  5610. {
  5611. return this._AccountCodeName;
  5612. }
  5613. set
  5614. {
  5615. if ((this._AccountCodeName != value))
  5616. {
  5617. this.OnAccountCodeNameChanging(value);
  5618. this.SendPropertyChanging();
  5619. this._AccountCodeName = value;
  5620. this.SendPropertyChanged("AccountCodeName");
  5621. this.OnAccountCodeNameChanged();
  5622. }
  5623. }
  5624. }
  5625. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCodeType", DbType="TinyInt NOT NULL")]
  5626. public byte AccountCodeType
  5627. {
  5628. get
  5629. {
  5630. return this._AccountCodeType;
  5631. }
  5632. set
  5633. {
  5634. if ((this._AccountCodeType != value))
  5635. {
  5636. this.OnAccountCodeTypeChanging(value);
  5637. this.SendPropertyChanging();
  5638. this._AccountCodeType = value;
  5639. this.SendPropertyChanged("AccountCodeType");
  5640. this.OnAccountCodeTypeChanged();
  5641. }
  5642. }
  5643. }
  5644. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  5645. public int PortalId
  5646. {
  5647. get
  5648. {
  5649. return this._PortalId;
  5650. }
  5651. set
  5652. {
  5653. if ((this._PortalId != value))
  5654. {
  5655. this.OnPortalIdChanging(value);
  5656. this.SendPropertyChanging();
  5657. this._PortalId = value;
  5658. this.SendPropertyChanged("PortalId");
  5659. this.OnPortalIdChanged();
  5660. }
  5661. }
  5662. }
  5663. public event PropertyChangingEventHandler PropertyChanging;
  5664. public event PropertyChangedEventHandler PropertyChanged;
  5665. protected virtual void SendPropertyChanging()
  5666. {
  5667. if ((this.PropertyChanging != null))
  5668. {
  5669. this.PropertyChanging(this, emptyChangingEventArgs);
  5670. }
  5671. }
  5672. protected virtual void SendPropertyChanged(String propertyName)
  5673. {
  5674. if ((this.PropertyChanged != null))
  5675. {
  5676. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  5677. }
  5678. }
  5679. }
  5680. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_CostCenters")]
  5681. public partial class AP_StaffBroker_CostCenter : INotifyPropertyChanging, INotifyPropertyChanged
  5682. {
  5683. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  5684. private long _CostCentreId;
  5685. private string _CostCentreCode;
  5686. private string _CostCentreName;
  5687. private int _PortalId;
  5688. private byte _Type;
  5689. #region Extensibility Method Definitions
  5690. partial void OnLoaded();
  5691. partial void OnValidate(System.Data.Linq.ChangeAction action);
  5692. partial void OnCreated();
  5693. partial void OnCostCentreIdChanging(long value);
  5694. partial void OnCostCentreIdChanged();
  5695. partial void OnCostCentreCodeChanging(string value);
  5696. partial void OnCostCentreCodeChanged();
  5697. partial void OnCostCentreNameChanging(string value);
  5698. partial void OnCostCentreNameChanged();
  5699. partial void OnPortalIdChanging(int value);
  5700. partial void OnPortalIdChanged();
  5701. partial void OnTypeChanging(byte value);
  5702. partial void OnTypeChanged();
  5703. #endregion
  5704. public AP_StaffBroker_CostCenter()
  5705. {
  5706. OnCreated();
  5707. }
  5708. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  5709. public long CostCentreId
  5710. {
  5711. get
  5712. {
  5713. return this._CostCentreId;
  5714. }
  5715. set
  5716. {
  5717. if ((this._CostCentreId != value))
  5718. {
  5719. this.OnCostCentreIdChanging(value);
  5720. this.SendPropertyChanging();
  5721. this._CostCentreId = value;
  5722. this.SendPropertyChanged("CostCentreId");
  5723. this.OnCostCentreIdChanged();
  5724. }
  5725. }
  5726. }
  5727. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreCode", DbType="NVarChar(12) NOT NULL", CanBeNull=false)]
  5728. public string CostCentreCode
  5729. {
  5730. get
  5731. {
  5732. return this._CostCentreCode;
  5733. }
  5734. set
  5735. {
  5736. if ((this._CostCentreCode != value))
  5737. {
  5738. this.OnCostCentreCodeChanging(value);
  5739. this.SendPropertyChanging();
  5740. this._CostCentreCode = value;
  5741. this.SendPropertyChanged("CostCentreCode");
  5742. this.OnCostCentreCodeChanged();
  5743. }
  5744. }
  5745. }
  5746. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreName", DbType="NVarChar(120) NOT NULL", CanBeNull=false)]
  5747. public string CostCentreName
  5748. {
  5749. get
  5750. {
  5751. return this._CostCentreName;
  5752. }
  5753. set
  5754. {
  5755. if ((this._CostCentreName != value))
  5756. {
  5757. this.OnCostCentreNameChanging(value);
  5758. this.SendPropertyChanging();
  5759. this._CostCentreName = value;
  5760. this.SendPropertyChanged("CostCentreName");
  5761. this.OnCostCentreNameChanged();
  5762. }
  5763. }
  5764. }
  5765. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  5766. public int PortalId
  5767. {
  5768. get
  5769. {
  5770. return this._PortalId;
  5771. }
  5772. set
  5773. {
  5774. if ((this._PortalId != value))
  5775. {
  5776. this.OnPortalIdChanging(value);
  5777. this.SendPropertyChanging();
  5778. this._PortalId = value;
  5779. this.SendPropertyChanged("PortalId");
  5780. this.OnPortalIdChanged();
  5781. }
  5782. }
  5783. }
  5784. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="TinyInt NOT NULL")]
  5785. public byte Type
  5786. {
  5787. get
  5788. {
  5789. return this._Type;
  5790. }
  5791. set
  5792. {
  5793. if ((this._Type != value))
  5794. {
  5795. this.OnTypeChanging(value);
  5796. this.SendPropertyChanging();
  5797. this._Type = value;
  5798. this.SendPropertyChanged("Type");
  5799. this.OnTypeChanged();
  5800. }
  5801. }
  5802. }
  5803. public event PropertyChangingEventHandler PropertyChanging;
  5804. public event PropertyChangedEventHandler PropertyChanged;
  5805. protected virtual void SendPropertyChanging()
  5806. {
  5807. if ((this.PropertyChanging != null))
  5808. {
  5809. this.PropertyChanging(this, emptyChangingEventArgs);
  5810. }
  5811. }
  5812. protected virtual void SendPropertyChanged(String propertyName)
  5813. {
  5814. if ((this.PropertyChanged != null))
  5815. {
  5816. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  5817. }
  5818. }
  5819. }
  5820. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_Settings")]
  5821. public partial class AP_StaffBroker_Setting : INotifyPropertyChanging, INotifyPropertyChanged
  5822. {
  5823. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  5824. private int _SettingId;
  5825. private string _SettingName;
  5826. private string _SettingValue;
  5827. private System.Nullable<int> _PortalId;
  5828. #region Extensibility Method Definitions
  5829. partial void OnLoaded();
  5830. partial void OnValidate(System.Data.Linq.ChangeAction action);
  5831. partial void OnCreated();
  5832. partial void OnSettingIdChanging(int value);
  5833. partial void OnSettingIdChanged();
  5834. partial void OnSettingNameChanging(string value);
  5835. partial void OnSettingNameChanged();
  5836. partial void OnSettingValueChanging(string value);
  5837. partial void OnSettingValueChanged();
  5838. partial void OnPortalIdChanging(System.Nullable<int> value);
  5839. partial void OnPortalIdChanged();
  5840. #endregion
  5841. public AP_StaffBroker_Setting()
  5842. {
  5843. OnCreated();
  5844. }
  5845. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SettingId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  5846. public int SettingId
  5847. {
  5848. get
  5849. {
  5850. return this._SettingId;
  5851. }
  5852. set
  5853. {
  5854. if ((this._SettingId != value))
  5855. {
  5856. this.OnSettingIdChanging(value);
  5857. this.SendPropertyChanging();
  5858. this._SettingId = value;
  5859. this.SendPropertyChanged("SettingId");
  5860. this.OnSettingIdChanged();
  5861. }
  5862. }
  5863. }
  5864. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SettingName", DbType="NVarChar(50)")]
  5865. public string SettingName
  5866. {
  5867. get
  5868. {
  5869. return this._SettingName;
  5870. }
  5871. set
  5872. {
  5873. if ((this._SettingName != value))
  5874. {
  5875. this.OnSettingNameChanging(value);
  5876. this.SendPropertyChanging();
  5877. this._SettingName = value;
  5878. this.SendPropertyChanged("SettingName");
  5879. this.OnSettingNameChanged();
  5880. }
  5881. }
  5882. }
  5883. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SettingValue", DbType="NVarChar(MAX)")]
  5884. public string SettingValue
  5885. {
  5886. get
  5887. {
  5888. return this._SettingValue;
  5889. }
  5890. set
  5891. {
  5892. if ((this._SettingValue != value))
  5893. {
  5894. this.OnSettingValueChanging(value);
  5895. this.SendPropertyChanging();
  5896. this._SettingValue = value;
  5897. this.SendPropertyChanged("SettingValue");
  5898. this.OnSettingValueChanged();
  5899. }
  5900. }
  5901. }
  5902. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
  5903. public System.Nullable<int> PortalId
  5904. {
  5905. get
  5906. {
  5907. return this._PortalId;
  5908. }
  5909. set
  5910. {
  5911. if ((this._PortalId != value))
  5912. {
  5913. this.OnPortalIdChanging(value);
  5914. this.SendPropertyChanging();
  5915. this._PortalId = value;
  5916. this.SendPropertyChanged("PortalId");
  5917. this.OnPortalIdChanged();
  5918. }
  5919. }
  5920. }
  5921. public event PropertyChangingEventHandler PropertyChanging;
  5922. public event PropertyChangedEventHandler PropertyChanged;
  5923. protected virtual void SendPropertyChanging()
  5924. {
  5925. if ((this.PropertyChanging != null))
  5926. {
  5927. this.PropertyChanging(this, emptyChangingEventArgs);
  5928. }
  5929. }
  5930. protected virtual void SendPropertyChanged(String propertyName)
  5931. {
  5932. if ((this.PropertyChanged != null))
  5933. {
  5934. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  5935. }
  5936. }
  5937. }
  5938. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserPortals")]
  5939. public partial class UserPortal : INotifyPropertyChanging, INotifyPropertyChanged
  5940. {
  5941. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  5942. private int _UserId;
  5943. private int _PortalId;
  5944. private int _UserPortalId;
  5945. private System.DateTime _CreatedDate;
  5946. private bool _Authorised;
  5947. private bool _IsDeleted;
  5948. private bool _RefreshRoles;
  5949. private EntityRef<User> _User;
  5950. #region Extensibility Method Definitions
  5951. partial void OnLoaded();
  5952. partial void OnValidate(System.Data.Linq.ChangeAction action);
  5953. partial void OnCreated();
  5954. partial void OnUserIdChanging(int value);
  5955. partial void OnUserIdChanged();
  5956. partial void OnPortalIdChanging(int value);
  5957. partial void OnPortalIdChanged();
  5958. partial void OnUserPortalIdChanging(int value);
  5959. partial void OnUserPortalIdChanged();
  5960. partial void OnCreatedDateChanging(System.DateTime value);
  5961. partial void OnCreatedDateChanged();
  5962. partial void OnAuthorisedChanging(bool value);
  5963. partial void OnAuthorisedChanged();
  5964. partial void OnIsDeletedChanging(bool value);
  5965. partial void OnIsDeletedChanged();
  5966. partial void OnRefreshRolesChanging(bool value);
  5967. partial void OnRefreshRolesChanged();
  5968. #endregion
  5969. public UserPortal()
  5970. {
  5971. this._User = default(EntityRef<User>);
  5972. OnCreated();
  5973. }
  5974. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="Int NOT NULL", IsPrimaryKey=true)]
  5975. public int UserId
  5976. {
  5977. get
  5978. {
  5979. return this._UserId;
  5980. }
  5981. set
  5982. {
  5983. if ((this._UserId != value))
  5984. {
  5985. if (this._User.HasLoadedOrAssignedValue)
  5986. {
  5987. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  5988. }
  5989. this.OnUserIdChanging(value);
  5990. this.SendPropertyChanging();
  5991. this._UserId = value;
  5992. this.SendPropertyChanged("UserId");
  5993. this.OnUserIdChanged();
  5994. }
  5995. }
  5996. }
  5997. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL", IsPrimaryKey=true)]
  5998. public int PortalId
  5999. {
  6000. get
  6001. {
  6002. return this._PortalId;
  6003. }
  6004. set
  6005. {
  6006. if ((this._PortalId != value))
  6007. {
  6008. this.OnPortalIdChanging(value);
  6009. this.SendPropertyChanging();
  6010. this._PortalId = value;
  6011. this.SendPropertyChanged("PortalId");
  6012. this.OnPortalIdChanged();
  6013. }
  6014. }
  6015. }
  6016. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserPortalId", AutoSync=AutoSync.Always, DbType="Int NOT NULL IDENTITY", IsDbGenerated=true)]
  6017. public int UserPortalId
  6018. {
  6019. get
  6020. {
  6021. return this._UserPortalId;
  6022. }
  6023. set
  6024. {
  6025. if ((this._UserPortalId != value))
  6026. {
  6027. this.OnUserPortalIdChanging(value);
  6028. this.SendPropertyChanging();
  6029. this._UserPortalId = value;
  6030. this.SendPropertyChanged("UserPortalId");
  6031. this.OnUserPortalIdChanged();
  6032. }
  6033. }
  6034. }
  6035. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedDate", DbType="DateTime NOT NULL")]
  6036. public System.DateTime CreatedDate
  6037. {
  6038. get
  6039. {
  6040. return this._CreatedDate;
  6041. }
  6042. set
  6043. {
  6044. if ((this._CreatedDate != value))
  6045. {
  6046. this.OnCreatedDateChanging(value);
  6047. this.SendPropertyChanging();
  6048. this._CreatedDate = value;
  6049. this.SendPropertyChanged("CreatedDate");
  6050. this.OnCreatedDateChanged();
  6051. }
  6052. }
  6053. }
  6054. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Authorised", DbType="Bit NOT NULL")]
  6055. public bool Authorised
  6056. {
  6057. get
  6058. {
  6059. return this._Authorised;
  6060. }
  6061. set
  6062. {
  6063. if ((this._Authorised != value))
  6064. {
  6065. this.OnAuthorisedChanging(value);
  6066. this.SendPropertyChanging();
  6067. this._Authorised = value;
  6068. this.SendPropertyChanged("Authorised");
  6069. this.OnAuthorisedChanged();
  6070. }
  6071. }
  6072. }
  6073. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDeleted", DbType="Bit NOT NULL")]
  6074. public bool IsDeleted
  6075. {
  6076. get
  6077. {
  6078. return this._IsDeleted;
  6079. }
  6080. set
  6081. {
  6082. if ((this._IsDeleted != value))
  6083. {
  6084. this.OnIsDeletedChanging(value);
  6085. this.SendPropertyChanging();
  6086. this._IsDeleted = value;
  6087. this.SendPropertyChanged("IsDeleted");
  6088. this.OnIsDeletedChanged();
  6089. }
  6090. }
  6091. }
  6092. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RefreshRoles", DbType="Bit NOT NULL")]
  6093. public bool RefreshRoles
  6094. {
  6095. get
  6096. {
  6097. return this._RefreshRoles;
  6098. }
  6099. set
  6100. {
  6101. if ((this._RefreshRoles != value))
  6102. {
  6103. this.OnRefreshRolesChanging(value);
  6104. this.SendPropertyChanging();
  6105. this._RefreshRoles = value;
  6106. this.SendPropertyChanged("RefreshRoles");
  6107. this.OnRefreshRolesChanged();
  6108. }
  6109. }
  6110. }
  6111. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserPortal", Storage="_User", ThisKey="UserId", OtherKey="UserID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
  6112. public User User
  6113. {
  6114. get
  6115. {
  6116. return this._User.Entity;
  6117. }
  6118. set
  6119. {
  6120. User previousValue = this._User.Entity;
  6121. if (((previousValue != value)
  6122. || (this._User.HasLoadedOrAssignedValue == false)))
  6123. {
  6124. this.SendPropertyChanging();
  6125. if ((previousValue != null))
  6126. {
  6127. this._User.Entity = null;
  6128. previousValue.UserPortals.Remove(this);
  6129. }
  6130. this._User.Entity = value;
  6131. if ((value != null))
  6132. {
  6133. value.UserPortals.Add(this);
  6134. this._UserId = value.UserID;
  6135. }
  6136. else
  6137. {
  6138. this._UserId = default(int);
  6139. }
  6140. this.SendPropertyChanged("User");
  6141. }
  6142. }
  6143. }
  6144. public event PropertyChangingEventHandler PropertyChanging;
  6145. public event PropertyChangedEventHandler PropertyChanged;
  6146. protected virtual void SendPropertyChanging()
  6147. {
  6148. if ((this.PropertyChanging != null))
  6149. {
  6150. this.PropertyChanging(this, emptyChangingEventArgs);
  6151. }
  6152. }
  6153. protected virtual void SendPropertyChanged(String propertyName)
  6154. {
  6155. if ((this.PropertyChanged != null))
  6156. {
  6157. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  6158. }
  6159. }
  6160. }
  6161. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Images")]
  6162. public partial class AP_Image
  6163. {
  6164. private int _ImageId;
  6165. private System.Data.Linq.Binary _Content;
  6166. public AP_Image()
  6167. {
  6168. }
  6169. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageId", AutoSync=AutoSync.Always, DbType="Int NOT NULL IDENTITY", IsDbGenerated=true)]
  6170. public int ImageId
  6171. {
  6172. get
  6173. {
  6174. return this._ImageId;
  6175. }
  6176. set
  6177. {
  6178. if ((this._ImageId != value))
  6179. {
  6180. this._ImageId = value;
  6181. }
  6182. }
  6183. }
  6184. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Content", DbType="Image NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
  6185. public System.Data.Linq.Binary Content
  6186. {
  6187. get
  6188. {
  6189. return this._Content;
  6190. }
  6191. set
  6192. {
  6193. if ((this._Content != value))
  6194. {
  6195. this._Content = value;
  6196. }
  6197. }
  6198. }
  6199. }
  6200. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_StaffPropertyDefinition")]
  6201. public partial class AP_StaffBroker_StaffPropertyDefinition : INotifyPropertyChanging, INotifyPropertyChanged
  6202. {
  6203. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  6204. private int _StaffPropertyDefinitionId;
  6205. private string _PropertyName;
  6206. private System.Nullable<int> _PortalId;
  6207. private System.Nullable<short> _ViewOrder;
  6208. private System.Nullable<bool> _Display;
  6209. private string _PropertyHelp;
  6210. private System.Nullable<byte> _Type;
  6211. private string _FixedFieldName;
  6212. private EntitySet<AP_StaffBroker_StaffProfile> _AP_StaffBroker_StaffProfiles;
  6213. #region Extensibility Method Definitions
  6214. partial void OnLoaded();
  6215. partial void OnValidate(System.Data.Linq.ChangeAction action);
  6216. partial void OnCreated();
  6217. partial void OnStaffPropertyDefinitionIdChanging(int value);
  6218. partial void OnStaffPropertyDefinitionIdChanged();
  6219. partial void OnPropertyNameChanging(string value);
  6220. partial void OnPropertyNameChanged();
  6221. partial void OnPortalIdChanging(System.Nullable<int> value);
  6222. partial void OnPortalIdChanged();
  6223. partial void OnViewOrderChanging(System.Nullable<short> value);
  6224. partial void OnViewOrderChanged();
  6225. partial void OnDisplayChanging(System.Nullable<bool> value);
  6226. partial void OnDisplayChanged();
  6227. partial void OnPropertyHelpChanging(string value);
  6228. partial void OnPropertyHelpChanged();
  6229. partial void OnTypeChanging(System.Nullable<byte> value);
  6230. partial void OnTypeChanged();
  6231. partial void OnFixedFieldNameChanging(string value);
  6232. partial void OnFixedFieldNameChanged();
  6233. #endregion
  6234. public AP_StaffBroker_StaffPropertyDefinition()
  6235. {
  6236. 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));
  6237. OnCreated();
  6238. }
  6239. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StaffPropertyDefinitionId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  6240. public int StaffPropertyDefinitionId
  6241. {
  6242. get
  6243. {
  6244. return this._StaffPropertyDefinitionId;
  6245. }
  6246. set
  6247. {
  6248. if ((this._StaffPropertyDefinitionId != value))
  6249. {
  6250. this.OnStaffPropertyDefinitionIdChanging(value);
  6251. this.SendPropertyChanging();
  6252. this._StaffPropertyDefinitionId = value;
  6253. this.SendPropertyChanged("StaffPropertyDefinitionId");
  6254. this.OnStaffPropertyDefinitionIdChanged();
  6255. }
  6256. }
  6257. }
  6258. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyName", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  6259. public string PropertyName
  6260. {
  6261. get
  6262. {
  6263. return this._PropertyName;
  6264. }
  6265. set
  6266. {
  6267. if ((this._PropertyName != value))
  6268. {
  6269. this.OnPropertyNameChanging(value);
  6270. this.SendPropertyChanging();
  6271. this._PropertyName = value;
  6272. this.SendPropertyChanged("PropertyName");
  6273. this.OnPropertyNameChanged();
  6274. }
  6275. }
  6276. }
  6277. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
  6278. public System.Nullable<int> PortalId
  6279. {
  6280. get
  6281. {
  6282. return this._PortalId;
  6283. }
  6284. set
  6285. {
  6286. if ((this._PortalId != value))
  6287. {
  6288. this.OnPortalIdChanging(value);
  6289. this.SendPropertyChanging();
  6290. this._PortalId = value;
  6291. this.SendPropertyChanged("PortalId");
  6292. this.OnPortalIdChanged();
  6293. }
  6294. }
  6295. }
  6296. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViewOrder", DbType="SmallInt")]
  6297. public System.Nullable<short> ViewOrder
  6298. {
  6299. get
  6300. {
  6301. return this._ViewOrder;
  6302. }
  6303. set
  6304. {
  6305. if ((this._ViewOrder != value))
  6306. {
  6307. this.OnViewOrderChanging(value);
  6308. this.SendPropertyChanging();
  6309. this._ViewOrder = value;
  6310. this.SendPropertyChanged("ViewOrder");
  6311. this.OnViewOrderChanged();
  6312. }
  6313. }
  6314. }
  6315. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Display", DbType="Bit")]
  6316. public System.Nullable<bool> Display
  6317. {
  6318. get
  6319. {
  6320. return this._Display;
  6321. }
  6322. set
  6323. {
  6324. if ((this._Display != value))
  6325. {
  6326. this.OnDisplayChanging(value);
  6327. this.SendPropertyChanging();
  6328. this._Display = value;
  6329. this.SendPropertyChanged("Display");
  6330. this.OnDisplayChanged();
  6331. }
  6332. }
  6333. }
  6334. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyHelp", DbType="VarChar(MAX)")]
  6335. public string PropertyHelp
  6336. {
  6337. get
  6338. {
  6339. return this._PropertyHelp;
  6340. }
  6341. set
  6342. {
  6343. if ((this._PropertyHelp != value))
  6344. {
  6345. this.OnPropertyHelpChanging(value);
  6346. this.SendPropertyChanging();
  6347. this._PropertyHelp = value;
  6348. this.SendPropertyChanged("PropertyHelp");
  6349. this.OnPropertyHelpChanged();
  6350. }
  6351. }
  6352. }
  6353. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="TinyInt")]
  6354. public System.Nullable<byte> Type
  6355. {
  6356. get
  6357. {
  6358. return this._Type;
  6359. }
  6360. set
  6361. {
  6362. if ((this._Type != value))
  6363. {
  6364. this.OnTypeChanging(value);
  6365. this.SendPropertyChanging();
  6366. this._Type = value;
  6367. this.SendPropertyChanged("Type");
  6368. this.OnTypeChanged();
  6369. }
  6370. }
  6371. }
  6372. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FixedFieldName", DbType="NVarChar(100)")]
  6373. public string FixedFieldName
  6374. {
  6375. get
  6376. {
  6377. return this._FixedFieldName;
  6378. }
  6379. set
  6380. {
  6381. if ((this._FixedFieldName != value))
  6382. {
  6383. this.OnFixedFieldNameChanging(value);
  6384. this.SendPropertyChanging();
  6385. this._FixedFieldName = value;
  6386. this.SendPropertyChanged("FixedFieldName");
  6387. this.OnFixedFieldNameChanged();
  6388. }
  6389. }
  6390. }
  6391. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_StaffBroker_StaffPropertyDefinition_AP_StaffBroker_StaffProfile", Storage="_AP_StaffBroker_StaffProfiles", ThisKey="StaffPropertyDefinitionId", OtherKey="StaffPropertyDefinitionId")]
  6392. public EntitySet<AP_StaffBroker_StaffProfile> AP_StaffBroker_StaffProfiles
  6393. {
  6394. get
  6395. {
  6396. return this._AP_StaffBroker_StaffProfiles;
  6397. }
  6398. set
  6399. {
  6400. this._AP_StaffBroker_StaffProfiles.Assign(value);
  6401. }
  6402. }
  6403. public event PropertyChangingEventHandler PropertyChanging;
  6404. public event PropertyChangedEventHandler PropertyChanged;
  6405. protected virtual void SendPropertyChanging()
  6406. {
  6407. if ((this.PropertyChanging != null))
  6408. {
  6409. this.PropertyChanging(this, emptyChangingEventArgs);
  6410. }
  6411. }
  6412. protected virtual void SendPropertyChanged(String propertyName)
  6413. {
  6414. if ((this.PropertyChanged != null))
  6415. {
  6416. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  6417. }
  6418. }
  6419. private void attach_AP_StaffBroker_StaffProfiles(AP_StaffBroker_StaffProfile entity)
  6420. {
  6421. this.SendPropertyChanging();
  6422. entity.AP_StaffBroker_StaffPropertyDefinition = this;
  6423. }
  6424. private void detach_AP_StaffBroker_StaffProfiles(AP_StaffBroker_StaffProfile entity)
  6425. {
  6426. this.SendPropertyChanging();
  6427. entity.AP_StaffBroker_StaffPropertyDefinition = null;
  6428. }
  6429. }
  6430. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Menu_Link")]
  6431. public partial class AP_Menu_Link : INotifyPropertyChanging, INotifyPropertyChanged
  6432. {
  6433. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  6434. private long _LinkId;
  6435. private short _LinkType;
  6436. private string _DisplayName;
  6437. private string _ToolTip;
  6438. private string _Target;
  6439. private string _Ref;
  6440. private int _PortalId;
  6441. private int _TabModuleId;
  6442. private short _ViewOrder;
  6443. #region Extensibility Method Definitions
  6444. partial void OnLoaded();
  6445. partial void OnValidate(System.Data.Linq.ChangeAction action);
  6446. partial void OnCreated();
  6447. partial void OnLinkIdChanging(long value);
  6448. partial void OnLinkIdChanged();
  6449. partial void OnLinkTypeChanging(short value);
  6450. partial void OnLinkTypeChanged();
  6451. partial void OnDisplayNameChanging(string value);
  6452. partial void OnDisplayNameChanged();
  6453. partial void OnToolTipChanging(string value);
  6454. partial void OnToolTipChanged();
  6455. partial void OnTargetChanging(string value);
  6456. partial void OnTargetChanged();
  6457. partial void OnRefChanging(string value);
  6458. partial void OnRefChanged();
  6459. partial void OnPortalIdChanging(int value);
  6460. partial void OnPortalIdChanged();
  6461. partial void OnTabModuleIdChanging(int value);
  6462. partial void OnTabModuleIdChanged();
  6463. partial void OnViewOrderChanging(short value);
  6464. partial void OnViewOrderChanged();
  6465. #endregion
  6466. public AP_Menu_Link()
  6467. {
  6468. OnCreated();
  6469. }
  6470. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LinkId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  6471. public long LinkId
  6472. {
  6473. get
  6474. {
  6475. return this._LinkId;
  6476. }
  6477. set
  6478. {
  6479. if ((this._LinkId != value))
  6480. {
  6481. this.OnLinkIdChanging(value);
  6482. this.SendPropertyChanging();
  6483. this._LinkId = value;
  6484. this.SendPropertyChanged("LinkId");
  6485. this.OnLinkIdChanged();
  6486. }
  6487. }
  6488. }
  6489. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LinkType", DbType="SmallInt NOT NULL")]
  6490. public short LinkType
  6491. {
  6492. get
  6493. {
  6494. return this._LinkType;
  6495. }
  6496. set
  6497. {
  6498. if ((this._LinkType != value))
  6499. {
  6500. this.OnLinkTypeChanging(value);
  6501. this.SendPropertyChanging();
  6502. this._LinkType = value;
  6503. this.SendPropertyChanged("LinkType");
  6504. this.OnLinkTypeChanged();
  6505. }
  6506. }
  6507. }
  6508. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  6509. public string DisplayName
  6510. {
  6511. get
  6512. {
  6513. return this._DisplayName;
  6514. }
  6515. set
  6516. {
  6517. if ((this._DisplayName != value))
  6518. {
  6519. this.OnDisplayNameChanging(value);
  6520. this.SendPropertyChanging();
  6521. this._DisplayName = value;
  6522. this.SendPropertyChanged("DisplayName");
  6523. this.OnDisplayNameChanged();
  6524. }
  6525. }
  6526. }
  6527. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ToolTip", DbType="NVarChar(MAX)")]
  6528. public string ToolTip
  6529. {
  6530. get
  6531. {
  6532. return this._ToolTip;
  6533. }
  6534. set
  6535. {
  6536. if ((this._ToolTip != value))
  6537. {
  6538. this.OnToolTipChanging(value);
  6539. this.SendPropertyChanging();
  6540. this._ToolTip = value;
  6541. this.SendPropertyChanged("ToolTip");
  6542. this.OnToolTipChanged();
  6543. }
  6544. }
  6545. }
  6546. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Target", DbType="VarChar(10) NOT NULL", CanBeNull=false)]
  6547. public string Target
  6548. {
  6549. get
  6550. {
  6551. return this._Target;
  6552. }
  6553. set
  6554. {
  6555. if ((this._Target != value))
  6556. {
  6557. this.OnTargetChanging(value);
  6558. this.SendPropertyChanging();
  6559. this._Target = value;
  6560. this.SendPropertyChanged("Target");
  6561. this.OnTargetChanged();
  6562. }
  6563. }
  6564. }
  6565. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Ref", DbType="NVarChar(256)")]
  6566. public string Ref
  6567. {
  6568. get
  6569. {
  6570. return this._Ref;
  6571. }
  6572. set
  6573. {
  6574. if ((this._Ref != value))
  6575. {
  6576. this.OnRefChanging(value);
  6577. this.SendPropertyChanging();
  6578. this._Ref = value;
  6579. this.SendPropertyChanged("Ref");
  6580. this.OnRefChanged();
  6581. }
  6582. }
  6583. }
  6584. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  6585. public int PortalId
  6586. {
  6587. get
  6588. {
  6589. return this._PortalId;
  6590. }
  6591. set
  6592. {
  6593. if ((this._PortalId != value))
  6594. {
  6595. this.OnPortalIdChanging(value);
  6596. this.SendPropertyChanging();
  6597. this._PortalId = value;
  6598. this.SendPropertyChanged("PortalId");
  6599. this.OnPortalIdChanged();
  6600. }
  6601. }
  6602. }
  6603. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TabModuleId", DbType="Int NOT NULL")]
  6604. public int TabModuleId
  6605. {
  6606. get
  6607. {
  6608. return this._TabModuleId;
  6609. }
  6610. set
  6611. {
  6612. if ((this._TabModuleId != value))
  6613. {
  6614. this.OnTabModuleIdChanging(value);
  6615. this.SendPropertyChanging();
  6616. this._TabModuleId = value;
  6617. this.SendPropertyChanged("TabModuleId");
  6618. this.OnTabModuleIdChanged();
  6619. }
  6620. }
  6621. }
  6622. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViewOrder", DbType="SmallInt NOT NULL")]
  6623. public short ViewOrder
  6624. {
  6625. get
  6626. {
  6627. return this._ViewOrder;
  6628. }
  6629. set
  6630. {
  6631. if ((this._ViewOrder != value))
  6632. {
  6633. this.OnViewOrderChanging(value);
  6634. this.SendPropertyChanging();
  6635. this._ViewOrder = value;
  6636. this.SendPropertyChanged("ViewOrder");
  6637. this.OnViewOrderChanged();
  6638. }
  6639. }
  6640. }
  6641. public event PropertyChangingEventHandler PropertyChanging;
  6642. public event PropertyChangedEventHandler PropertyChanged;
  6643. protected virtual void SendPropertyChanging()
  6644. {
  6645. if ((this.PropertyChanging != null))
  6646. {
  6647. this.PropertyChanging(this, emptyChangingEventArgs);
  6648. }
  6649. }
  6650. protected virtual void SendPropertyChanged(String propertyName)
  6651. {
  6652. if ((this.PropertyChanged != null))
  6653. {
  6654. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  6655. }
  6656. }
  6657. }
  6658. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Staff_SuggestedPayments")]
  6659. public partial class AP_Staff_SuggestedPayment : INotifyPropertyChanging, INotifyPropertyChanged
  6660. {
  6661. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  6662. private long _SuggestedPaymentId;
  6663. private string _CostCenter;
  6664. private System.Nullable<decimal> _ExpPayable;
  6665. private System.Nullable<decimal> _ExpTaxable;
  6666. private System.Nullable<decimal> _PrevSalary;
  6667. private System.Nullable<int> _PortalId;
  6668. private System.Nullable<decimal> _AccountBalance;
  6669. private System.Nullable<decimal> _AdvanceBalance;
  6670. #region Extensibility Method Definitions
  6671. partial void OnLoaded();
  6672. partial void OnValidate(System.Data.Linq.ChangeAction action);
  6673. partial void OnCreated();
  6674. partial void OnSuggestedPaymentIdChanging(long value);
  6675. partial void OnSuggestedPaymentIdChanged();
  6676. partial void OnCostCenterChanging(string value);
  6677. partial void OnCostCenterChanged();
  6678. partial void OnExpPayableChanging(System.Nullable<decimal> value);
  6679. partial void OnExpPayableChanged();
  6680. partial void OnExpTaxableChanging(System.Nullable<decimal> value);
  6681. partial void OnExpTaxableChanged();
  6682. partial void OnPrevSalaryChanging(System.Nullable<decimal> value);
  6683. partial void OnPrevSalaryChanged();
  6684. partial void OnPortalIdChanging(System.Nullable<int> value);
  6685. partial void OnPortalIdChanged();
  6686. partial void OnAccountBalanceChanging(System.Nullable<decimal> value);
  6687. partial void OnAccountBalanceChanged();
  6688. partial void OnAdvanceBalanceChanging(System.Nullable<decimal> value);
  6689. partial void OnAdvanceBalanceChanged();
  6690. #endregion
  6691. public AP_Staff_SuggestedPayment()
  6692. {
  6693. OnCreated();
  6694. }
  6695. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuggestedPaymentId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  6696. public long SuggestedPaymentId
  6697. {
  6698. get
  6699. {
  6700. return this._SuggestedPaymentId;
  6701. }
  6702. set
  6703. {
  6704. if ((this._SuggestedPaymentId != value))
  6705. {
  6706. this.OnSuggestedPaymentIdChanging(value);
  6707. this.SendPropertyChanging();
  6708. this._SuggestedPaymentId = value;
  6709. this.SendPropertyChanged("SuggestedPaymentId");
  6710. this.OnSuggestedPaymentIdChanged();
  6711. }
  6712. }
  6713. }
  6714. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCenter", DbType="VarChar(20)")]
  6715. public string CostCenter
  6716. {
  6717. get
  6718. {
  6719. return this._CostCenter;
  6720. }
  6721. set
  6722. {
  6723. if ((this._CostCenter != value))
  6724. {
  6725. this.OnCostCenterChanging(value);
  6726. this.SendPropertyChanging();
  6727. this._CostCenter = value;
  6728. this.SendPropertyChanged("CostCenter");
  6729. this.OnCostCenterChanged();
  6730. }
  6731. }
  6732. }
  6733. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExpPayable", DbType="Money")]
  6734. public System.Nullable<decimal> ExpPayable
  6735. {
  6736. get
  6737. {
  6738. return this._ExpPayable;
  6739. }
  6740. set
  6741. {
  6742. if ((this._ExpPayable != value))
  6743. {
  6744. this.OnExpPayableChanging(value);
  6745. this.SendPropertyChanging();
  6746. this._ExpPayable = value;
  6747. this.SendPropertyChanged("ExpPayable");
  6748. this.OnExpPayableChanged();
  6749. }
  6750. }
  6751. }
  6752. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExpTaxable", DbType="Money")]
  6753. public System.Nullable<decimal> ExpTaxable
  6754. {
  6755. get
  6756. {
  6757. return this._ExpTaxable;
  6758. }
  6759. set
  6760. {
  6761. if ((this._ExpTaxable != value))
  6762. {
  6763. this.OnExpTaxableChanging(value);
  6764. this.SendPropertyChanging();
  6765. this._ExpTaxable = value;
  6766. this.SendPropertyChanged("ExpTaxable");
  6767. this.OnExpTaxableChanged();
  6768. }
  6769. }
  6770. }
  6771. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PrevSalary", DbType="Money")]
  6772. public System.Nullable<decimal> PrevSalary
  6773. {
  6774. get
  6775. {
  6776. return this._PrevSalary;
  6777. }
  6778. set
  6779. {
  6780. if ((this._PrevSalary != value))
  6781. {
  6782. this.OnPrevSalaryChanging(value);
  6783. this.SendPropertyChanging();
  6784. this._PrevSalary = value;
  6785. this.SendPropertyChanged("PrevSalary");
  6786. this.OnPrevSalaryChanged();
  6787. }
  6788. }
  6789. }
  6790. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
  6791. public System.Nullable<int> PortalId
  6792. {
  6793. get
  6794. {
  6795. return this._PortalId;
  6796. }
  6797. set
  6798. {
  6799. if ((this._PortalId != value))
  6800. {
  6801. this.OnPortalIdChanging(value);
  6802. this.SendPropertyChanging();
  6803. this._PortalId = value;
  6804. this.SendPropertyChanged("PortalId");
  6805. this.OnPortalIdChanged();
  6806. }
  6807. }
  6808. }
  6809. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountBalance", DbType="Money")]
  6810. public System.Nullable<decimal> AccountBalance
  6811. {
  6812. get
  6813. {
  6814. return this._AccountBalance;
  6815. }
  6816. set
  6817. {
  6818. if ((this._AccountBalance != value))
  6819. {
  6820. this.OnAccountBalanceChanging(value);
  6821. this.SendPropertyChanging();
  6822. this._AccountBalance = value;
  6823. this.SendPropertyChanged("AccountBalance");
  6824. this.OnAccountBalanceChanged();
  6825. }
  6826. }
  6827. }
  6828. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdvanceBalance", DbType="Money")]
  6829. public System.Nullable<decimal> AdvanceBalance
  6830. {
  6831. get
  6832. {
  6833. return this._AdvanceBalance;
  6834. }
  6835. set
  6836. {
  6837. if ((this._AdvanceBalance != value))
  6838. {
  6839. this.OnAdvanceBalanceChanging(value);
  6840. this.SendPropertyChanging();
  6841. this._AdvanceBalance = value;
  6842. this.SendPropertyChanged("AdvanceBalance");
  6843. this.OnAdvanceBalanceChanged();
  6844. }
  6845. }
  6846. }
  6847. public event PropertyChangingEventHandler PropertyChanging;
  6848. public event PropertyChangedEventHandler PropertyChanged;
  6849. protected virtual void SendPropertyChanging()
  6850. {
  6851. if ((this.PropertyChanging != null))
  6852. {
  6853. this.PropertyChanging(this, emptyChangingEventArgs);
  6854. }
  6855. }
  6856. protected virtual void SendPropertyChanged(String propertyName)
  6857. {
  6858. if ((this.PropertyChanged != null))
  6859. {
  6860. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  6861. }
  6862. }
  6863. }
  6864. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_Departments")]
  6865. public partial class AP_StaffBroker_Department : INotifyPropertyChanging, INotifyPropertyChanged
  6866. {
  6867. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  6868. private int _CostCenterId;
  6869. private string _Name;
  6870. private string _CostCentre;
  6871. private System.Nullable<int> _CostCentreManager;
  6872. private System.Nullable<int> _CostCentreDelegate;
  6873. private bool _CanRmb;
  6874. private bool _CanCharge;
  6875. private bool _CanGiveTo;
  6876. private string _GivingText;
  6877. private string _GivingShortcut;
  6878. private System.Nullable<int> _PortalId;
  6879. private string _PayType;
  6880. private bool _IsProject;
  6881. private System.Nullable<int> _PhotoId;
  6882. private string _Spare1;
  6883. private string _Spare2;
  6884. private string _Spare3;
  6885. #region Extensibility Method Definitions
  6886. partial void OnLoaded();
  6887. partial void OnValidate(System.Data.Linq.ChangeAction action);
  6888. partial void OnCreated();
  6889. partial void OnCostCenterIdChanging(int value);
  6890. partial void OnCostCenterIdChanged();
  6891. partial void OnNameChanging(string value);
  6892. partial void OnNameChanged();
  6893. partial void OnCostCentreChanging(string value);
  6894. partial void OnCostCentreChanged();
  6895. partial void OnCostCentreManagerChanging(System.Nullable<int> value);
  6896. partial void OnCostCentreManagerChanged();
  6897. partial void OnCostCentreDelegateChanging(System.Nullable<int> value);
  6898. partial void OnCostCentreDelegateChanged();
  6899. partial void OnCanRmbChanging(bool value);
  6900. partial void OnCanRmbChanged();
  6901. partial void OnCanChargeChanging(bool value);
  6902. partial void OnCanChargeChanged();
  6903. partial void OnCanGiveToChanging(bool value);
  6904. partial void OnCanGiveToChanged();
  6905. partial void OnGivingTextChanging(string value);
  6906. partial void OnGivingTextChanged();
  6907. partial void OnGivingShortcutChanging(string value);
  6908. partial void OnGivingShortcutChanged();
  6909. partial void OnPortalIdChanging(System.Nullable<int> value);
  6910. partial void OnPortalIdChanged();
  6911. partial void OnPayTypeChanging(string value);
  6912. partial void OnPayTypeChanged();
  6913. partial void OnIsProjectChanging(bool value);
  6914. partial void OnIsProjectChanged();
  6915. partial void OnPhotoIdChanging(System.Nullable<int> value);
  6916. partial void OnPhotoIdChanged();
  6917. partial void OnSpare1Changing(string value);
  6918. partial void OnSpare1Changed();
  6919. partial void OnSpare2Changing(string value);
  6920. partial void OnSpare2Changed();
  6921. partial void OnSpare3Changing(string value);
  6922. partial void OnSpare3Changed();
  6923. #endregion
  6924. public AP_StaffBroker_Department()
  6925. {
  6926. OnCreated();
  6927. }
  6928. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCenterId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  6929. public int CostCenterId
  6930. {
  6931. get
  6932. {
  6933. return this._CostCenterId;
  6934. }
  6935. set
  6936. {
  6937. if ((this._CostCenterId != value))
  6938. {
  6939. this.OnCostCenterIdChanging(value);
  6940. this.SendPropertyChanging();
  6941. this._CostCenterId = value;
  6942. this.SendPropertyChanged("CostCenterId");
  6943. this.OnCostCenterIdChanged();
  6944. }
  6945. }
  6946. }
  6947. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  6948. public string Name
  6949. {
  6950. get
  6951. {
  6952. return this._Name;
  6953. }
  6954. set
  6955. {
  6956. if ((this._Name != value))
  6957. {
  6958. this.OnNameChanging(value);
  6959. this.SendPropertyChanging();
  6960. this._Name = value;
  6961. this.SendPropertyChanged("Name");
  6962. this.OnNameChanged();
  6963. }
  6964. }
  6965. }
  6966. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentre", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
  6967. public string CostCentre
  6968. {
  6969. get
  6970. {
  6971. return this._CostCentre;
  6972. }
  6973. set
  6974. {
  6975. if ((this._CostCentre != value))
  6976. {
  6977. this.OnCostCentreChanging(value);
  6978. this.SendPropertyChanging();
  6979. this._CostCentre = value;
  6980. this.SendPropertyChanged("CostCentre");
  6981. this.OnCostCentreChanged();
  6982. }
  6983. }
  6984. }
  6985. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreManager", DbType="Int")]
  6986. public System.Nullable<int> CostCentreManager
  6987. {
  6988. get
  6989. {
  6990. return this._CostCentreManager;
  6991. }
  6992. set
  6993. {
  6994. if ((this._CostCentreManager != value))
  6995. {
  6996. this.OnCostCentreManagerChanging(value);
  6997. this.SendPropertyChanging();
  6998. this._CostCentreManager = value;
  6999. this.SendPropertyChanged("CostCentreManager");
  7000. this.OnCostCentreManagerChanged();
  7001. }
  7002. }
  7003. }
  7004. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreDelegate", DbType="Int")]
  7005. public System.Nullable<int> CostCentreDelegate
  7006. {
  7007. get
  7008. {
  7009. return this._CostCentreDelegate;
  7010. }
  7011. set
  7012. {
  7013. if ((this._CostCentreDelegate != value))
  7014. {
  7015. this.OnCostCentreDelegateChanging(value);
  7016. this.SendPropertyChanging();
  7017. this._CostCentreDelegate = value;
  7018. this.SendPropertyChanged("CostCentreDelegate");
  7019. this.OnCostCentreDelegateChanged();
  7020. }
  7021. }
  7022. }
  7023. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanRmb", DbType="Bit NOT NULL")]
  7024. public bool CanRmb
  7025. {
  7026. get
  7027. {
  7028. return this._CanRmb;
  7029. }
  7030. set
  7031. {
  7032. if ((this._CanRmb != value))
  7033. {
  7034. this.OnCanRmbChanging(value);
  7035. this.SendPropertyChanging();
  7036. this._CanRmb = value;
  7037. this.SendPropertyChanged("CanRmb");
  7038. this.OnCanRmbChanged();
  7039. }
  7040. }
  7041. }
  7042. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanCharge", DbType="Bit NOT NULL")]
  7043. public bool CanCharge
  7044. {
  7045. get
  7046. {
  7047. return this._CanCharge;
  7048. }
  7049. set
  7050. {
  7051. if ((this._CanCharge != value))
  7052. {
  7053. this.OnCanChargeChanging(value);
  7054. this.SendPropertyChanging();
  7055. this._CanCharge = value;
  7056. this.SendPropertyChanged("CanCharge");
  7057. this.OnCanChargeChanged();
  7058. }
  7059. }
  7060. }
  7061. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanGiveTo", DbType="Bit NOT NULL")]
  7062. public bool CanGiveTo
  7063. {
  7064. get
  7065. {
  7066. return this._CanGiveTo;
  7067. }
  7068. set
  7069. {
  7070. if ((this._CanGiveTo != value))
  7071. {
  7072. this.OnCanGiveToChanging(value);
  7073. this.SendPropertyChanging();
  7074. this._CanGiveTo = value;
  7075. this.SendPropertyChanged("CanGiveTo");
  7076. this.OnCanGiveToChanged();
  7077. }
  7078. }
  7079. }
  7080. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GivingText", DbType="NVarChar(MAX)")]
  7081. public string GivingText
  7082. {
  7083. get
  7084. {
  7085. return this._GivingText;
  7086. }
  7087. set
  7088. {
  7089. if ((this._GivingText != value))
  7090. {
  7091. this.OnGivingTextChanging(value);
  7092. this.SendPropertyChanging();
  7093. this._GivingText = value;
  7094. this.SendPropertyChanged("GivingText");
  7095. this.OnGivingTextChanged();
  7096. }
  7097. }
  7098. }
  7099. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GivingShortcut", DbType="NVarChar(50)")]
  7100. public string GivingShortcut
  7101. {
  7102. get
  7103. {
  7104. return this._GivingShortcut;
  7105. }
  7106. set
  7107. {
  7108. if ((this._GivingShortcut != value))
  7109. {
  7110. this.OnGivingShortcutChanging(value);
  7111. this.SendPropertyChanging();
  7112. this._GivingShortcut = value;
  7113. this.SendPropertyChanged("GivingShortcut");
  7114. this.OnGivingShortcutChanged();
  7115. }
  7116. }
  7117. }
  7118. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
  7119. public System.Nullable<int> PortalId
  7120. {
  7121. get
  7122. {
  7123. return this._PortalId;
  7124. }
  7125. set
  7126. {
  7127. if ((this._PortalId != value))
  7128. {
  7129. this.OnPortalIdChanging(value);
  7130. this.SendPropertyChanging();
  7131. this._PortalId = value;
  7132. this.SendPropertyChanged("PortalId");
  7133. this.OnPortalIdChanged();
  7134. }
  7135. }
  7136. }
  7137. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PayType", DbType="NVarChar(MAX)")]
  7138. public string PayType
  7139. {
  7140. get
  7141. {
  7142. return this._PayType;
  7143. }
  7144. set
  7145. {
  7146. if ((this._PayType != value))
  7147. {
  7148. this.OnPayTypeChanging(value);
  7149. this.SendPropertyChanging();
  7150. this._PayType = value;
  7151. this.SendPropertyChanged("PayType");
  7152. this.OnPayTypeChanged();
  7153. }
  7154. }
  7155. }
  7156. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsProject", DbType="Bit NOT NULL")]
  7157. public bool IsProject
  7158. {
  7159. get
  7160. {
  7161. return this._IsProject;
  7162. }
  7163. set
  7164. {
  7165. if ((this._IsProject != value))
  7166. {
  7167. this.OnIsProjectChanging(value);
  7168. this.SendPropertyChanging();
  7169. this._IsProject = value;
  7170. this.SendPropertyChanged("IsProject");
  7171. this.OnIsProjectChanged();
  7172. }
  7173. }
  7174. }
  7175. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PhotoId", DbType="Int")]
  7176. public System.Nullable<int> PhotoId
  7177. {
  7178. get
  7179. {
  7180. return this._PhotoId;
  7181. }
  7182. set
  7183. {
  7184. if ((this._PhotoId != value))
  7185. {
  7186. this.OnPhotoIdChanging(value);
  7187. this.SendPropertyChanging();
  7188. this._PhotoId = value;
  7189. this.SendPropertyChanged("PhotoId");
  7190. this.OnPhotoIdChanged();
  7191. }
  7192. }
  7193. }
  7194. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare1", DbType="NVarChar(50)")]
  7195. public string Spare1
  7196. {
  7197. get
  7198. {
  7199. return this._Spare1;
  7200. }
  7201. set
  7202. {
  7203. if ((this._Spare1 != value))
  7204. {
  7205. this.OnSpare1Changing(value);
  7206. this.SendPropertyChanging();
  7207. this._Spare1 = value;
  7208. this.SendPropertyChanged("Spare1");
  7209. this.OnSpare1Changed();
  7210. }
  7211. }
  7212. }
  7213. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare2", DbType="NVarChar(MAX)")]
  7214. public string Spare2
  7215. {
  7216. get
  7217. {
  7218. return this._Spare2;
  7219. }
  7220. set
  7221. {
  7222. if ((this._Spare2 != value))
  7223. {
  7224. this.OnSpare2Changing(value);
  7225. this.SendPropertyChanging();
  7226. this._Spare2 = value;
  7227. this.SendPropertyChanged("Spare2");
  7228. this.OnSpare2Changed();
  7229. }
  7230. }
  7231. }
  7232. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare3", DbType="NVarChar(MAX)")]
  7233. public string Spare3
  7234. {
  7235. get
  7236. {
  7237. return this._Spare3;
  7238. }
  7239. set
  7240. {
  7241. if ((this._Spare3 != value))
  7242. {
  7243. this.OnSpare3Changing(value);
  7244. this.SendPropertyChanging();
  7245. this._Spare3 = value;
  7246. this.SendPropertyChanged("Spare3");
  7247. this.OnSpare3Changed();
  7248. }
  7249. }
  7250. }
  7251. public event PropertyChangingEventHandler PropertyChanging;
  7252. public event PropertyChangedEventHandler PropertyChanged;
  7253. protected virtual void SendPropertyChanging()
  7254. {
  7255. if ((this.PropertyChanging != null))
  7256. {
  7257. this.PropertyChanging(this, emptyChangingEventArgs);
  7258. }
  7259. }
  7260. protected virtual void SendPropertyChanged(String propertyName)
  7261. {
  7262. if ((this.PropertyChanged != null))
  7263. {
  7264. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  7265. }
  7266. }
  7267. }
  7268. public partial class GetSearchResultsResult
  7269. {
  7270. private int _SearchItemID;
  7271. private System.Nullable<int> _PortalID;
  7272. private int _TabID;
  7273. private int _ModuleID;
  7274. private string _Title;
  7275. private string _Description;
  7276. private System.Nullable<int> _Author;
  7277. private System.DateTime _PubDate;
  7278. private string _SearchKey;
  7279. private string _Guid;
  7280. private System.Nullable<int> _HitCount;
  7281. private System.Nullable<int> _ImageFileId;
  7282. private string _AuthorName;
  7283. public GetSearchResultsResult()
  7284. {
  7285. }
  7286. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SearchItemID", DbType="Int NOT NULL")]
  7287. public int SearchItemID
  7288. {
  7289. get
  7290. {
  7291. return this._SearchItemID;
  7292. }
  7293. set
  7294. {
  7295. if ((this._SearchItemID != value))
  7296. {
  7297. this._SearchItemID = value;
  7298. }
  7299. }
  7300. }
  7301. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalID", DbType="Int")]
  7302. public System.Nullable<int> PortalID
  7303. {
  7304. get
  7305. {
  7306. return this._PortalID;
  7307. }
  7308. set
  7309. {
  7310. if ((this._PortalID != value))
  7311. {
  7312. this._PortalID = value;
  7313. }
  7314. }
  7315. }
  7316. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TabID", DbType="Int NOT NULL")]
  7317. public int TabID
  7318. {
  7319. get
  7320. {
  7321. return this._TabID;
  7322. }
  7323. set
  7324. {
  7325. if ((this._TabID != value))
  7326. {
  7327. this._TabID = value;
  7328. }
  7329. }
  7330. }
  7331. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModuleID", DbType="Int NOT NULL")]
  7332. public int ModuleID
  7333. {
  7334. get
  7335. {
  7336. return this._ModuleID;
  7337. }
  7338. set
  7339. {
  7340. if ((this._ModuleID != value))
  7341. {
  7342. this._ModuleID = value;
  7343. }
  7344. }
  7345. }
  7346. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(200) NOT NULL", CanBeNull=false)]
  7347. public string Title
  7348. {
  7349. get
  7350. {
  7351. return this._Title;
  7352. }
  7353. set
  7354. {
  7355. if ((this._Title != value))
  7356. {
  7357. this._Title = value;
  7358. }
  7359. }
  7360. }
  7361. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(2000) NOT NULL", CanBeNull=false)]
  7362. public string Description
  7363. {
  7364. get
  7365. {
  7366. return this._Description;
  7367. }
  7368. set
  7369. {
  7370. if ((this._Description != value))
  7371. {
  7372. this._Description = value;
  7373. }
  7374. }
  7375. }
  7376. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Author", DbType="Int")]
  7377. public System.Nullable<int> Author
  7378. {
  7379. get
  7380. {
  7381. return this._Author;
  7382. }
  7383. set
  7384. {
  7385. if ((this._Author != value))
  7386. {
  7387. this._Author = value;
  7388. }
  7389. }
  7390. }
  7391. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PubDate", DbType="DateTime NOT NULL")]
  7392. public System.DateTime PubDate
  7393. {
  7394. get
  7395. {
  7396. return this._PubDate;
  7397. }
  7398. set
  7399. {
  7400. if ((this._PubDate != value))
  7401. {
  7402. this._PubDate = value;
  7403. }
  7404. }
  7405. }
  7406. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SearchKey", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  7407. public string SearchKey
  7408. {
  7409. get
  7410. {
  7411. return this._SearchKey;
  7412. }
  7413. set
  7414. {
  7415. if ((this._SearchKey != value))
  7416. {
  7417. this._SearchKey = value;
  7418. }
  7419. }
  7420. }
  7421. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Guid", DbType="VarChar(200)")]
  7422. public string Guid
  7423. {
  7424. get
  7425. {
  7426. return this._Guid;
  7427. }
  7428. set
  7429. {
  7430. if ((this._Guid != value))
  7431. {
  7432. this._Guid = value;
  7433. }
  7434. }
  7435. }
  7436. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HitCount", DbType="Int")]
  7437. public System.Nullable<int> HitCount
  7438. {
  7439. get
  7440. {
  7441. return this._HitCount;
  7442. }
  7443. set
  7444. {
  7445. if ((this._HitCount != value))
  7446. {
  7447. this._HitCount = value;
  7448. }
  7449. }
  7450. }
  7451. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageFileId", DbType="Int")]
  7452. public System.Nullable<int> ImageFileId
  7453. {
  7454. get
  7455. {
  7456. return this._ImageFileId;
  7457. }
  7458. set
  7459. {
  7460. if ((this._ImageFileId != value))
  7461. {
  7462. this._ImageFileId = value;
  7463. }
  7464. }
  7465. }
  7466. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuthorName", DbType="NVarChar(128)")]
  7467. public string AuthorName
  7468. {
  7469. get
  7470. {
  7471. return this._AuthorName;
  7472. }
  7473. set
  7474. {
  7475. if ((this._AuthorName != value))
  7476. {
  7477. this._AuthorName = value;
  7478. }
  7479. }
  7480. }
  7481. }
  7482. public partial class GetSearchResultsByWordResult
  7483. {
  7484. private int _SearchItemID;
  7485. private string _Word;
  7486. private int _Occurrences;
  7487. private System.Nullable<int> _Relevance;
  7488. private int _ModuleID;
  7489. private System.Nullable<int> _TabID;
  7490. private string _Title;
  7491. private string _Description;
  7492. private System.Nullable<int> _Author;
  7493. private System.DateTime _PubDate;
  7494. private string _SearchKey;
  7495. private string _Guid;
  7496. private System.Nullable<int> _ImageFileId;
  7497. private string _AuthorName;
  7498. private System.Nullable<int> _PortalId;
  7499. public GetSearchResultsByWordResult()
  7500. {
  7501. }
  7502. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SearchItemID", DbType="Int NOT NULL")]
  7503. public int SearchItemID
  7504. {
  7505. get
  7506. {
  7507. return this._SearchItemID;
  7508. }
  7509. set
  7510. {
  7511. if ((this._SearchItemID != value))
  7512. {
  7513. this._SearchItemID = value;
  7514. }
  7515. }
  7516. }
  7517. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Word", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  7518. public string Word
  7519. {
  7520. get
  7521. {
  7522. return this._Word;
  7523. }
  7524. set
  7525. {
  7526. if ((this._Word != value))
  7527. {
  7528. this._Word = value;
  7529. }
  7530. }
  7531. }
  7532. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Occurrences", DbType="Int NOT NULL")]
  7533. public int Occurrences
  7534. {
  7535. get
  7536. {
  7537. return this._Occurrences;
  7538. }
  7539. set
  7540. {
  7541. if ((this._Occurrences != value))
  7542. {
  7543. this._Occurrences = value;
  7544. }
  7545. }
  7546. }
  7547. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="[Relevance]", Storage="_Relevance", DbType="Int")]
  7548. public System.Nullable<int> Relevance
  7549. {
  7550. get
  7551. {
  7552. return this._Relevance;
  7553. }
  7554. set
  7555. {
  7556. if ((this._Relevance != value))
  7557. {
  7558. this._Relevance = value;
  7559. }
  7560. }
  7561. }
  7562. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModuleID", DbType="Int NOT NULL")]
  7563. public int ModuleID
  7564. {
  7565. get
  7566. {
  7567. return this._ModuleID;
  7568. }
  7569. set
  7570. {
  7571. if ((this._ModuleID != value))
  7572. {
  7573. this._ModuleID = value;
  7574. }
  7575. }
  7576. }
  7577. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TabID", DbType="Int")]
  7578. public System.Nullable<int> TabID
  7579. {
  7580. get
  7581. {
  7582. return this._TabID;
  7583. }
  7584. set
  7585. {
  7586. if ((this._TabID != value))
  7587. {
  7588. this._TabID = value;
  7589. }
  7590. }
  7591. }
  7592. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(200) NOT NULL", CanBeNull=false)]
  7593. public string Title
  7594. {
  7595. get
  7596. {
  7597. return this._Title;
  7598. }
  7599. set
  7600. {
  7601. if ((this._Title != value))
  7602. {
  7603. this._Title = value;
  7604. }
  7605. }
  7606. }
  7607. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(2000) NOT NULL", CanBeNull=false)]
  7608. public string Description
  7609. {
  7610. get
  7611. {
  7612. return this._Description;
  7613. }
  7614. set
  7615. {
  7616. if ((this._Description != value))
  7617. {
  7618. this._Description = value;
  7619. }
  7620. }
  7621. }
  7622. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Author", DbType="Int")]
  7623. public System.Nullable<int> Author
  7624. {
  7625. get
  7626. {
  7627. return this._Author;
  7628. }
  7629. set
  7630. {
  7631. if ((this._Author != value))
  7632. {
  7633. this._Author = value;
  7634. }
  7635. }
  7636. }
  7637. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PubDate", DbType="DateTime NOT NULL")]
  7638. public System.DateTime PubDate
  7639. {
  7640. get
  7641. {
  7642. return this._PubDate;
  7643. }
  7644. set
  7645. {
  7646. if ((this._PubDate != value))
  7647. {
  7648. this._PubDate = value;
  7649. }
  7650. }
  7651. }
  7652. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SearchKey", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  7653. public string SearchKey
  7654. {
  7655. get
  7656. {
  7657. return this._SearchKey;
  7658. }
  7659. set
  7660. {
  7661. if ((this._SearchKey != value))
  7662. {
  7663. this._SearchKey = value;
  7664. }
  7665. }
  7666. }
  7667. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Guid", DbType="VarChar(200)")]
  7668. public string Guid
  7669. {
  7670. get
  7671. {
  7672. return this._Guid;
  7673. }
  7674. set
  7675. {
  7676. if ((this._Guid != value))
  7677. {
  7678. this._Guid = value;
  7679. }
  7680. }
  7681. }
  7682. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageFileId", DbType="Int")]
  7683. public System.Nullable<int> ImageFileId
  7684. {
  7685. get
  7686. {
  7687. return this._ImageFileId;
  7688. }
  7689. set
  7690. {
  7691. if ((this._ImageFileId != value))
  7692. {
  7693. this._ImageFileId = value;
  7694. }
  7695. }
  7696. }
  7697. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuthorName", DbType="NVarChar(101)")]
  7698. public string AuthorName
  7699. {
  7700. get
  7701. {
  7702. return this._AuthorName;
  7703. }
  7704. set
  7705. {
  7706. if ((this._AuthorName != value))
  7707. {
  7708. this._AuthorName = value;
  7709. }
  7710. }
  7711. }
  7712. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
  7713. public System.Nullable<int> PortalId
  7714. {
  7715. get
  7716. {
  7717. return this._PortalId;
  7718. }
  7719. set
  7720. {
  7721. if ((this._PortalId != value))
  7722. {
  7723. this._PortalId = value;
  7724. }
  7725. }
  7726. }
  7727. }
  7728. }
  7729. #pragma warning restore 1591