PageRenderTime 43ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/TimeSheetReporting/TimeSheetReporting.Web/Model/Model.Designer.cs

#
C# | 491 lines | 371 code | 3 blank | 117 comment | 14 complexity | eeb6ed0489c9e8d3ff7e7c71502c5b5d MD5 | raw file
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:2.0.50727.4036
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. [assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
  11. [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("TimeSheetDatabaseModel", "FK_Effort_Member", "Member", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(TimeSheetReporting.Web.Model.Member), "Effort", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(TimeSheetReporting.Web.Model.Effort))]
  12. [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("TimeSheetDatabaseModel", "FK_Effort_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(TimeSheetReporting.Web.Model.Project), "Effort", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(TimeSheetReporting.Web.Model.Effort))]
  13. // Original file name:
  14. // Generation date: 13-4-2010 12:19:44
  15. namespace TimeSheetReporting.Web.Model
  16. {
  17. /// <summary>
  18. /// There are no comments for TimeSheetDatabaseEntities in the schema.
  19. /// </summary>
  20. public partial class TimeSheetDatabaseEntities : global::System.Data.Objects.ObjectContext
  21. {
  22. /// <summary>
  23. /// Initializes a new TimeSheetDatabaseEntities object using the connection string found in the 'TimeSheetDatabaseEntities' section of the application configuration file.
  24. /// </summary>
  25. public TimeSheetDatabaseEntities() :
  26. base("name=TimeSheetDatabaseEntities", "TimeSheetDatabaseEntities")
  27. {
  28. this.OnContextCreated();
  29. }
  30. /// <summary>
  31. /// Initialize a new TimeSheetDatabaseEntities object.
  32. /// </summary>
  33. public TimeSheetDatabaseEntities(string connectionString) :
  34. base(connectionString, "TimeSheetDatabaseEntities")
  35. {
  36. this.OnContextCreated();
  37. }
  38. /// <summary>
  39. /// Initialize a new TimeSheetDatabaseEntities object.
  40. /// </summary>
  41. public TimeSheetDatabaseEntities(global::System.Data.EntityClient.EntityConnection connection) :
  42. base(connection, "TimeSheetDatabaseEntities")
  43. {
  44. this.OnContextCreated();
  45. }
  46. partial void OnContextCreated();
  47. /// <summary>
  48. /// There are no comments for Effort in the schema.
  49. /// </summary>
  50. public global::System.Data.Objects.ObjectQuery<Effort> Effort
  51. {
  52. get
  53. {
  54. if ((this._Effort == null))
  55. {
  56. this._Effort = base.CreateQuery<Effort>("[Effort]");
  57. }
  58. return this._Effort;
  59. }
  60. }
  61. private global::System.Data.Objects.ObjectQuery<Effort> _Effort;
  62. /// <summary>
  63. /// There are no comments for Member in the schema.
  64. /// </summary>
  65. public global::System.Data.Objects.ObjectQuery<Member> Member
  66. {
  67. get
  68. {
  69. if ((this._Member == null))
  70. {
  71. this._Member = base.CreateQuery<Member>("[Member]");
  72. }
  73. return this._Member;
  74. }
  75. }
  76. private global::System.Data.Objects.ObjectQuery<Member> _Member;
  77. /// <summary>
  78. /// There are no comments for Project in the schema.
  79. /// </summary>
  80. public global::System.Data.Objects.ObjectQuery<Project> Project
  81. {
  82. get
  83. {
  84. if ((this._Project == null))
  85. {
  86. this._Project = base.CreateQuery<Project>("[Project]");
  87. }
  88. return this._Project;
  89. }
  90. }
  91. private global::System.Data.Objects.ObjectQuery<Project> _Project;
  92. /// <summary>
  93. /// There are no comments for Effort in the schema.
  94. /// </summary>
  95. public void AddToEffort(Effort effort)
  96. {
  97. base.AddObject("Effort", effort);
  98. }
  99. /// <summary>
  100. /// There are no comments for Member in the schema.
  101. /// </summary>
  102. public void AddToMember(Member member)
  103. {
  104. base.AddObject("Member", member);
  105. }
  106. /// <summary>
  107. /// There are no comments for Project in the schema.
  108. /// </summary>
  109. public void AddToProject(Project project)
  110. {
  111. base.AddObject("Project", project);
  112. }
  113. }
  114. /// <summary>
  115. /// There are no comments for TimeSheetDatabaseModel.Effort in the schema.
  116. /// </summary>
  117. /// <KeyProperties>
  118. /// Id
  119. /// </KeyProperties>
  120. [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TimeSheetDatabaseModel", Name="Effort")]
  121. [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
  122. [global::System.Serializable()]
  123. public partial class Effort : global::System.Data.Objects.DataClasses.EntityObject
  124. {
  125. /// <summary>
  126. /// Create a new Effort object.
  127. /// </summary>
  128. /// <param name="id">Initial value of Id.</param>
  129. /// <param name="date">Initial value of Date.</param>
  130. /// <param name="hours">Initial value of Hours.</param>
  131. public static Effort CreateEffort(int id, global::System.DateTime date, double hours)
  132. {
  133. Effort effort = new Effort();
  134. effort.Id = id;
  135. effort.Date = date;
  136. effort.Hours = hours;
  137. return effort;
  138. }
  139. /// <summary>
  140. /// There are no comments for Property Id in the schema.
  141. /// </summary>
  142. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  143. [global::System.Runtime.Serialization.DataMemberAttribute()]
  144. public int Id
  145. {
  146. get
  147. {
  148. return this._Id;
  149. }
  150. set
  151. {
  152. this.OnIdChanging(value);
  153. this.ReportPropertyChanging("Id");
  154. this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
  155. this.ReportPropertyChanged("Id");
  156. this.OnIdChanged();
  157. }
  158. }
  159. private int _Id;
  160. partial void OnIdChanging(int value);
  161. partial void OnIdChanged();
  162. /// <summary>
  163. /// There are no comments for Property Date in the schema.
  164. /// </summary>
  165. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
  166. [global::System.Runtime.Serialization.DataMemberAttribute()]
  167. public global::System.DateTime Date
  168. {
  169. get
  170. {
  171. return this._Date;
  172. }
  173. set
  174. {
  175. this.OnDateChanging(value);
  176. this.ReportPropertyChanging("Date");
  177. this._Date = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
  178. this.ReportPropertyChanged("Date");
  179. this.OnDateChanged();
  180. }
  181. }
  182. private global::System.DateTime _Date;
  183. partial void OnDateChanging(global::System.DateTime value);
  184. partial void OnDateChanged();
  185. /// <summary>
  186. /// There are no comments for Property Hours in the schema.
  187. /// </summary>
  188. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
  189. [global::System.Runtime.Serialization.DataMemberAttribute()]
  190. public double Hours
  191. {
  192. get
  193. {
  194. return this._Hours;
  195. }
  196. set
  197. {
  198. this.OnHoursChanging(value);
  199. this.ReportPropertyChanging("Hours");
  200. this._Hours = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
  201. this.ReportPropertyChanged("Hours");
  202. this.OnHoursChanged();
  203. }
  204. }
  205. private double _Hours;
  206. partial void OnHoursChanging(double value);
  207. partial void OnHoursChanged();
  208. /// <summary>
  209. /// There are no comments for Property Description in the schema.
  210. /// </summary>
  211. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
  212. [global::System.Runtime.Serialization.DataMemberAttribute()]
  213. public string Description
  214. {
  215. get
  216. {
  217. return this._Description;
  218. }
  219. set
  220. {
  221. this.OnDescriptionChanging(value);
  222. this.ReportPropertyChanging("Description");
  223. this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
  224. this.ReportPropertyChanged("Description");
  225. this.OnDescriptionChanged();
  226. }
  227. }
  228. private string _Description;
  229. partial void OnDescriptionChanging(string value);
  230. partial void OnDescriptionChanged();
  231. /// <summary>
  232. /// There are no comments for Member in the schema.
  233. /// </summary>
  234. [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Member", "Member")]
  235. [global::System.Xml.Serialization.XmlIgnoreAttribute()]
  236. [global::System.Xml.Serialization.SoapIgnoreAttribute()]
  237. [global::System.Runtime.Serialization.DataMemberAttribute()]
  238. public Member Member
  239. {
  240. get
  241. {
  242. return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member").Value;
  243. }
  244. set
  245. {
  246. ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member").Value = value;
  247. }
  248. }
  249. /// <summary>
  250. /// There are no comments for Member in the schema.
  251. /// </summary>
  252. [global::System.ComponentModel.BrowsableAttribute(false)]
  253. [global::System.Runtime.Serialization.DataMemberAttribute()]
  254. public global::System.Data.Objects.DataClasses.EntityReference<Member> MemberReference
  255. {
  256. get
  257. {
  258. return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member");
  259. }
  260. set
  261. {
  262. if ((value != null))
  263. {
  264. ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member", value);
  265. }
  266. }
  267. }
  268. /// <summary>
  269. /// There are no comments for Project in the schema.
  270. /// </summary>
  271. [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Project", "Project")]
  272. [global::System.Xml.Serialization.XmlIgnoreAttribute()]
  273. [global::System.Xml.Serialization.SoapIgnoreAttribute()]
  274. [global::System.Runtime.Serialization.DataMemberAttribute()]
  275. public Project Project
  276. {
  277. get
  278. {
  279. return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project").Value;
  280. }
  281. set
  282. {
  283. ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project").Value = value;
  284. }
  285. }
  286. /// <summary>
  287. /// There are no comments for Project in the schema.
  288. /// </summary>
  289. [global::System.ComponentModel.BrowsableAttribute(false)]
  290. [global::System.Runtime.Serialization.DataMemberAttribute()]
  291. public global::System.Data.Objects.DataClasses.EntityReference<Project> ProjectReference
  292. {
  293. get
  294. {
  295. return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project");
  296. }
  297. set
  298. {
  299. if ((value != null))
  300. {
  301. ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project", value);
  302. }
  303. }
  304. }
  305. }
  306. /// <summary>
  307. /// There are no comments for TimeSheetDatabaseModel.Member in the schema.
  308. /// </summary>
  309. /// <KeyProperties>
  310. /// Id
  311. /// </KeyProperties>
  312. [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TimeSheetDatabaseModel", Name="Member")]
  313. [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
  314. [global::System.Serializable()]
  315. public partial class Member : global::System.Data.Objects.DataClasses.EntityObject
  316. {
  317. /// <summary>
  318. /// Create a new Member object.
  319. /// </summary>
  320. /// <param name="id">Initial value of Id.</param>
  321. /// <param name="name">Initial value of Name.</param>
  322. public static Member CreateMember(int id, string name)
  323. {
  324. Member member = new Member();
  325. member.Id = id;
  326. member.Name = name;
  327. return member;
  328. }
  329. /// <summary>
  330. /// There are no comments for Property Id in the schema.
  331. /// </summary>
  332. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  333. [global::System.Runtime.Serialization.DataMemberAttribute()]
  334. public int Id
  335. {
  336. get
  337. {
  338. return this._Id;
  339. }
  340. set
  341. {
  342. this.OnIdChanging(value);
  343. this.ReportPropertyChanging("Id");
  344. this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
  345. this.ReportPropertyChanged("Id");
  346. this.OnIdChanged();
  347. }
  348. }
  349. private int _Id;
  350. partial void OnIdChanging(int value);
  351. partial void OnIdChanged();
  352. /// <summary>
  353. /// There are no comments for Property Name in the schema.
  354. /// </summary>
  355. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
  356. [global::System.Runtime.Serialization.DataMemberAttribute()]
  357. public string Name
  358. {
  359. get
  360. {
  361. return this._Name;
  362. }
  363. set
  364. {
  365. this.OnNameChanging(value);
  366. this.ReportPropertyChanging("Name");
  367. this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
  368. this.ReportPropertyChanged("Name");
  369. this.OnNameChanged();
  370. }
  371. }
  372. private string _Name;
  373. partial void OnNameChanging(string value);
  374. partial void OnNameChanged();
  375. /// <summary>
  376. /// There are no comments for Effort in the schema.
  377. /// </summary>
  378. [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Member", "Effort")]
  379. [global::System.Xml.Serialization.XmlIgnoreAttribute()]
  380. [global::System.Xml.Serialization.SoapIgnoreAttribute()]
  381. [global::System.Runtime.Serialization.DataMemberAttribute()]
  382. public global::System.Data.Objects.DataClasses.EntityCollection<Effort> Effort
  383. {
  384. get
  385. {
  386. return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Member", "Effort");
  387. }
  388. set
  389. {
  390. if ((value != null))
  391. {
  392. ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Member", "Effort", value);
  393. }
  394. }
  395. }
  396. }
  397. /// <summary>
  398. /// There are no comments for TimeSheetDatabaseModel.Project in the schema.
  399. /// </summary>
  400. /// <KeyProperties>
  401. /// Id
  402. /// </KeyProperties>
  403. [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TimeSheetDatabaseModel", Name="Project")]
  404. [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
  405. [global::System.Serializable()]
  406. public partial class Project : global::System.Data.Objects.DataClasses.EntityObject
  407. {
  408. /// <summary>
  409. /// Create a new Project object.
  410. /// </summary>
  411. /// <param name="id">Initial value of Id.</param>
  412. /// <param name="name">Initial value of Name.</param>
  413. public static Project CreateProject(int id, string name)
  414. {
  415. Project project = new Project();
  416. project.Id = id;
  417. project.Name = name;
  418. return project;
  419. }
  420. /// <summary>
  421. /// There are no comments for Property Id in the schema.
  422. /// </summary>
  423. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  424. [global::System.Runtime.Serialization.DataMemberAttribute()]
  425. public int Id
  426. {
  427. get
  428. {
  429. return this._Id;
  430. }
  431. set
  432. {
  433. this.OnIdChanging(value);
  434. this.ReportPropertyChanging("Id");
  435. this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
  436. this.ReportPropertyChanged("Id");
  437. this.OnIdChanged();
  438. }
  439. }
  440. private int _Id;
  441. partial void OnIdChanging(int value);
  442. partial void OnIdChanged();
  443. /// <summary>
  444. /// There are no comments for Property Name in the schema.
  445. /// </summary>
  446. [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
  447. [global::System.Runtime.Serialization.DataMemberAttribute()]
  448. public string Name
  449. {
  450. get
  451. {
  452. return this._Name;
  453. }
  454. set
  455. {
  456. this.OnNameChanging(value);
  457. this.ReportPropertyChanging("Name");
  458. this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
  459. this.ReportPropertyChanged("Name");
  460. this.OnNameChanged();
  461. }
  462. }
  463. private string _Name;
  464. partial void OnNameChanging(string value);
  465. partial void OnNameChanged();
  466. /// <summary>
  467. /// There are no comments for Effort in the schema.
  468. /// </summary>
  469. [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Project", "Effort")]
  470. [global::System.Xml.Serialization.XmlIgnoreAttribute()]
  471. [global::System.Xml.Serialization.SoapIgnoreAttribute()]
  472. [global::System.Runtime.Serialization.DataMemberAttribute()]
  473. public global::System.Data.Objects.DataClasses.EntityCollection<Effort> Effort
  474. {
  475. get
  476. {
  477. return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Project", "Effort");
  478. }
  479. set
  480. {
  481. if ((value != null))
  482. {
  483. ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Project", "Effort", value);
  484. }
  485. }
  486. }
  487. }
  488. }