PageRenderTime 56ms CodeModel.GetById 34ms app.highlight 17ms RepoModel.GetById 1ms app.codeStats 1ms

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