PageRenderTime 55ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/App_Code/Account/MinistryView.designer.cs

https://github.com/mailekah/AgapeConnect1
C# | 425 lines | 366 code | 50 blank | 9 comment | 33 complexity | cf0a5df472aeebed6794857cb18f8cc0 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.18033
  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 MinistryView
  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 MinistryViewDataContext : 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 InsertMinistryView_UserCountryProfile(MinistryView_UserCountryProfile instance);
  29. partial void UpdateMinistryView_UserCountryProfile(MinistryView_UserCountryProfile instance);
  30. partial void DeleteMinistryView_UserCountryProfile(MinistryView_UserCountryProfile instance);
  31. partial void InsertMinistryView_AdditionalCountry(MinistryView_AdditionalCountry instance);
  32. partial void UpdateMinistryView_AdditionalCountry(MinistryView_AdditionalCountry instance);
  33. partial void DeleteMinistryView_AdditionalCountry(MinistryView_AdditionalCountry instance);
  34. #endregion
  35. public MinistryViewDataContext() :
  36. base(global::System.Configuration.ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString, mappingSource)
  37. {
  38. OnCreated();
  39. }
  40. public MinistryViewDataContext(string connection) :
  41. base(connection, mappingSource)
  42. {
  43. OnCreated();
  44. }
  45. public MinistryViewDataContext(System.Data.IDbConnection connection) :
  46. base(connection, mappingSource)
  47. {
  48. OnCreated();
  49. }
  50. public MinistryViewDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  51. base(connection, mappingSource)
  52. {
  53. OnCreated();
  54. }
  55. public MinistryViewDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  56. base(connection, mappingSource)
  57. {
  58. OnCreated();
  59. }
  60. public System.Data.Linq.Table<MinistryView_UserCountryProfile> MinistryView_UserCountryProfiles
  61. {
  62. get
  63. {
  64. return this.GetTable<MinistryView_UserCountryProfile>();
  65. }
  66. }
  67. public System.Data.Linq.Table<MinistryView_AdditionalCountry> MinistryView_AdditionalCountries
  68. {
  69. get
  70. {
  71. return this.GetTable<MinistryView_AdditionalCountry>();
  72. }
  73. }
  74. }
  75. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.MinistryView_UserCountryProfile")]
  76. public partial class MinistryView_UserCountryProfile : INotifyPropertyChanging, INotifyPropertyChanged
  77. {
  78. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  79. private int _UserCountryProfileId;
  80. private int _CountryId;
  81. private string _Username;
  82. private string _Password;
  83. private string _GUID;
  84. private EntityRef<MinistryView_AdditionalCountry> _MinistryView_AdditionalCountry;
  85. #region Extensibility Method Definitions
  86. partial void OnLoaded();
  87. partial void OnValidate(System.Data.Linq.ChangeAction action);
  88. partial void OnCreated();
  89. partial void OnUserCountryProfileIdChanging(int value);
  90. partial void OnUserCountryProfileIdChanged();
  91. partial void OnCountryIdChanging(int value);
  92. partial void OnCountryIdChanged();
  93. partial void OnUsernameChanging(string value);
  94. partial void OnUsernameChanged();
  95. partial void OnPasswordChanging(string value);
  96. partial void OnPasswordChanged();
  97. partial void OnGUIDChanging(string value);
  98. partial void OnGUIDChanged();
  99. #endregion
  100. public MinistryView_UserCountryProfile()
  101. {
  102. this._MinistryView_AdditionalCountry = default(EntityRef<MinistryView_AdditionalCountry>);
  103. OnCreated();
  104. }
  105. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserCountryProfileId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  106. public int UserCountryProfileId
  107. {
  108. get
  109. {
  110. return this._UserCountryProfileId;
  111. }
  112. set
  113. {
  114. if ((this._UserCountryProfileId != value))
  115. {
  116. this.OnUserCountryProfileIdChanging(value);
  117. this.SendPropertyChanging();
  118. this._UserCountryProfileId = value;
  119. this.SendPropertyChanged("UserCountryProfileId");
  120. this.OnUserCountryProfileIdChanged();
  121. }
  122. }
  123. }
  124. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CountryId", DbType="Int NOT NULL")]
  125. public int CountryId
  126. {
  127. get
  128. {
  129. return this._CountryId;
  130. }
  131. set
  132. {
  133. if ((this._CountryId != value))
  134. {
  135. if (this._MinistryView_AdditionalCountry.HasLoadedOrAssignedValue)
  136. {
  137. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  138. }
  139. this.OnCountryIdChanging(value);
  140. this.SendPropertyChanging();
  141. this._CountryId = value;
  142. this.SendPropertyChanged("CountryId");
  143. this.OnCountryIdChanged();
  144. }
  145. }
  146. }
  147. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Username", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
  148. public string Username
  149. {
  150. get
  151. {
  152. return this._Username;
  153. }
  154. set
  155. {
  156. if ((this._Username != value))
  157. {
  158. this.OnUsernameChanging(value);
  159. this.SendPropertyChanging();
  160. this._Username = value;
  161. this.SendPropertyChanged("Username");
  162. this.OnUsernameChanged();
  163. }
  164. }
  165. }
  166. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Password", DbType="NVarChar(300) NOT NULL", CanBeNull=false)]
  167. public string Password
  168. {
  169. get
  170. {
  171. return this._Password;
  172. }
  173. set
  174. {
  175. if ((this._Password != value))
  176. {
  177. this.OnPasswordChanging(value);
  178. this.SendPropertyChanging();
  179. this._Password = value;
  180. this.SendPropertyChanged("Password");
  181. this.OnPasswordChanged();
  182. }
  183. }
  184. }
  185. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GUID", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
  186. public string GUID
  187. {
  188. get
  189. {
  190. return this._GUID;
  191. }
  192. set
  193. {
  194. if ((this._GUID != value))
  195. {
  196. this.OnGUIDChanging(value);
  197. this.SendPropertyChanging();
  198. this._GUID = value;
  199. this.SendPropertyChanged("GUID");
  200. this.OnGUIDChanged();
  201. }
  202. }
  203. }
  204. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="MinistryView_AdditionalCountry_MinistryView_UserCountryProfile", Storage="_MinistryView_AdditionalCountry", ThisKey="CountryId", OtherKey="CountryId", IsForeignKey=true)]
  205. public MinistryView_AdditionalCountry MinistryView_AdditionalCountry
  206. {
  207. get
  208. {
  209. return this._MinistryView_AdditionalCountry.Entity;
  210. }
  211. set
  212. {
  213. MinistryView_AdditionalCountry previousValue = this._MinistryView_AdditionalCountry.Entity;
  214. if (((previousValue != value)
  215. || (this._MinistryView_AdditionalCountry.HasLoadedOrAssignedValue == false)))
  216. {
  217. this.SendPropertyChanging();
  218. if ((previousValue != null))
  219. {
  220. this._MinistryView_AdditionalCountry.Entity = null;
  221. previousValue.MinistryView_UserCountryProfiles.Remove(this);
  222. }
  223. this._MinistryView_AdditionalCountry.Entity = value;
  224. if ((value != null))
  225. {
  226. value.MinistryView_UserCountryProfiles.Add(this);
  227. this._CountryId = value.CountryId;
  228. }
  229. else
  230. {
  231. this._CountryId = default(int);
  232. }
  233. this.SendPropertyChanged("MinistryView_AdditionalCountry");
  234. }
  235. }
  236. }
  237. public event PropertyChangingEventHandler PropertyChanging;
  238. public event PropertyChangedEventHandler PropertyChanged;
  239. protected virtual void SendPropertyChanging()
  240. {
  241. if ((this.PropertyChanging != null))
  242. {
  243. this.PropertyChanging(this, emptyChangingEventArgs);
  244. }
  245. }
  246. protected virtual void SendPropertyChanged(String propertyName)
  247. {
  248. if ((this.PropertyChanged != null))
  249. {
  250. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  251. }
  252. }
  253. }
  254. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.MinistryView_AdditionalCountries")]
  255. public partial class MinistryView_AdditionalCountry : INotifyPropertyChanging, INotifyPropertyChanged
  256. {
  257. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  258. private int _CountryId;
  259. private string _CountryName;
  260. private string _ServiceURL;
  261. private EntitySet<MinistryView_UserCountryProfile> _MinistryView_UserCountryProfiles;
  262. #region Extensibility Method Definitions
  263. partial void OnLoaded();
  264. partial void OnValidate(System.Data.Linq.ChangeAction action);
  265. partial void OnCreated();
  266. partial void OnCountryIdChanging(int value);
  267. partial void OnCountryIdChanged();
  268. partial void OnCountryNameChanging(string value);
  269. partial void OnCountryNameChanged();
  270. partial void OnServiceURLChanging(string value);
  271. partial void OnServiceURLChanged();
  272. #endregion
  273. public MinistryView_AdditionalCountry()
  274. {
  275. this._MinistryView_UserCountryProfiles = new EntitySet<MinistryView_UserCountryProfile>(new Action<MinistryView_UserCountryProfile>(this.attach_MinistryView_UserCountryProfiles), new Action<MinistryView_UserCountryProfile>(this.detach_MinistryView_UserCountryProfiles));
  276. OnCreated();
  277. }
  278. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CountryId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  279. public int CountryId
  280. {
  281. get
  282. {
  283. return this._CountryId;
  284. }
  285. set
  286. {
  287. if ((this._CountryId != value))
  288. {
  289. this.OnCountryIdChanging(value);
  290. this.SendPropertyChanging();
  291. this._CountryId = value;
  292. this.SendPropertyChanged("CountryId");
  293. this.OnCountryIdChanged();
  294. }
  295. }
  296. }
  297. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CountryName", DbType="NVarChar(100)")]
  298. public string CountryName
  299. {
  300. get
  301. {
  302. return this._CountryName;
  303. }
  304. set
  305. {
  306. if ((this._CountryName != value))
  307. {
  308. this.OnCountryNameChanging(value);
  309. this.SendPropertyChanging();
  310. this._CountryName = value;
  311. this.SendPropertyChanged("CountryName");
  312. this.OnCountryNameChanged();
  313. }
  314. }
  315. }
  316. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ServiceURL", DbType="NVarChar(250)")]
  317. public string ServiceURL
  318. {
  319. get
  320. {
  321. return this._ServiceURL;
  322. }
  323. set
  324. {
  325. if ((this._ServiceURL != value))
  326. {
  327. this.OnServiceURLChanging(value);
  328. this.SendPropertyChanging();
  329. this._ServiceURL = value;
  330. this.SendPropertyChanged("ServiceURL");
  331. this.OnServiceURLChanged();
  332. }
  333. }
  334. }
  335. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="MinistryView_AdditionalCountry_MinistryView_UserCountryProfile", Storage="_MinistryView_UserCountryProfiles", ThisKey="CountryId", OtherKey="CountryId")]
  336. public EntitySet<MinistryView_UserCountryProfile> MinistryView_UserCountryProfiles
  337. {
  338. get
  339. {
  340. return this._MinistryView_UserCountryProfiles;
  341. }
  342. set
  343. {
  344. this._MinistryView_UserCountryProfiles.Assign(value);
  345. }
  346. }
  347. public event PropertyChangingEventHandler PropertyChanging;
  348. public event PropertyChangedEventHandler PropertyChanged;
  349. protected virtual void SendPropertyChanging()
  350. {
  351. if ((this.PropertyChanging != null))
  352. {
  353. this.PropertyChanging(this, emptyChangingEventArgs);
  354. }
  355. }
  356. protected virtual void SendPropertyChanged(String propertyName)
  357. {
  358. if ((this.PropertyChanged != null))
  359. {
  360. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  361. }
  362. }
  363. private void attach_MinistryView_UserCountryProfiles(MinistryView_UserCountryProfile entity)
  364. {
  365. this.SendPropertyChanging();
  366. entity.MinistryView_AdditionalCountry = this;
  367. }
  368. private void detach_MinistryView_UserCountryProfiles(MinistryView_UserCountryProfile entity)
  369. {
  370. this.SendPropertyChanging();
  371. entity.MinistryView_AdditionalCountry = null;
  372. }
  373. }
  374. }
  375. #pragma warning restore 1591