/TimeSheetReporting/TimeSheetReporting.Web/Model/Model.Designer.cs
C# | 491 lines | 371 code | 3 blank | 117 comment | 14 complexity | eeb6ed0489c9e8d3ff7e7c71502c5b5d MD5 | raw file
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:2.0.50727.4036
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
-
- [assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
- [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))]
- [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))]
-
- // Original file name:
- // Generation date: 13-4-2010 12:19:44
- namespace TimeSheetReporting.Web.Model
- {
-
- /// <summary>
- /// There are no comments for TimeSheetDatabaseEntities in the schema.
- /// </summary>
- public partial class TimeSheetDatabaseEntities : global::System.Data.Objects.ObjectContext
- {
- /// <summary>
- /// Initializes a new TimeSheetDatabaseEntities object using the connection string found in the 'TimeSheetDatabaseEntities' section of the application configuration file.
- /// </summary>
- public TimeSheetDatabaseEntities() :
- base("name=TimeSheetDatabaseEntities", "TimeSheetDatabaseEntities")
- {
- this.OnContextCreated();
- }
- /// <summary>
- /// Initialize a new TimeSheetDatabaseEntities object.
- /// </summary>
- public TimeSheetDatabaseEntities(string connectionString) :
- base(connectionString, "TimeSheetDatabaseEntities")
- {
- this.OnContextCreated();
- }
- /// <summary>
- /// Initialize a new TimeSheetDatabaseEntities object.
- /// </summary>
- public TimeSheetDatabaseEntities(global::System.Data.EntityClient.EntityConnection connection) :
- base(connection, "TimeSheetDatabaseEntities")
- {
- this.OnContextCreated();
- }
- partial void OnContextCreated();
- /// <summary>
- /// There are no comments for Effort in the schema.
- /// </summary>
- public global::System.Data.Objects.ObjectQuery<Effort> Effort
- {
- get
- {
- if ((this._Effort == null))
- {
- this._Effort = base.CreateQuery<Effort>("[Effort]");
- }
- return this._Effort;
- }
- }
- private global::System.Data.Objects.ObjectQuery<Effort> _Effort;
- /// <summary>
- /// There are no comments for Member in the schema.
- /// </summary>
- public global::System.Data.Objects.ObjectQuery<Member> Member
- {
- get
- {
- if ((this._Member == null))
- {
- this._Member = base.CreateQuery<Member>("[Member]");
- }
- return this._Member;
- }
- }
- private global::System.Data.Objects.ObjectQuery<Member> _Member;
- /// <summary>
- /// There are no comments for Project in the schema.
- /// </summary>
- public global::System.Data.Objects.ObjectQuery<Project> Project
- {
- get
- {
- if ((this._Project == null))
- {
- this._Project = base.CreateQuery<Project>("[Project]");
- }
- return this._Project;
- }
- }
- private global::System.Data.Objects.ObjectQuery<Project> _Project;
- /// <summary>
- /// There are no comments for Effort in the schema.
- /// </summary>
- public void AddToEffort(Effort effort)
- {
- base.AddObject("Effort", effort);
- }
- /// <summary>
- /// There are no comments for Member in the schema.
- /// </summary>
- public void AddToMember(Member member)
- {
- base.AddObject("Member", member);
- }
- /// <summary>
- /// There are no comments for Project in the schema.
- /// </summary>
- public void AddToProject(Project project)
- {
- base.AddObject("Project", project);
- }
- }
- /// <summary>
- /// There are no comments for TimeSheetDatabaseModel.Effort in the schema.
- /// </summary>
- /// <KeyProperties>
- /// Id
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TimeSheetDatabaseModel", Name="Effort")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class Effort : global::System.Data.Objects.DataClasses.EntityObject
- {
- /// <summary>
- /// Create a new Effort object.
- /// </summary>
- /// <param name="id">Initial value of Id.</param>
- /// <param name="date">Initial value of Date.</param>
- /// <param name="hours">Initial value of Hours.</param>
- public static Effort CreateEffort(int id, global::System.DateTime date, double hours)
- {
- Effort effort = new Effort();
- effort.Id = id;
- effort.Date = date;
- effort.Hours = hours;
- return effort;
- }
- /// <summary>
- /// There are no comments for Property Id in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- this.OnIdChanging(value);
- this.ReportPropertyChanging("Id");
- this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- private int _Id;
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- /// <summary>
- /// There are no comments for Property Date in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.DateTime Date
- {
- get
- {
- return this._Date;
- }
- set
- {
- this.OnDateChanging(value);
- this.ReportPropertyChanging("Date");
- this._Date = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("Date");
- this.OnDateChanged();
- }
- }
- private global::System.DateTime _Date;
- partial void OnDateChanging(global::System.DateTime value);
- partial void OnDateChanged();
- /// <summary>
- /// There are no comments for Property Hours in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public double Hours
- {
- get
- {
- return this._Hours;
- }
- set
- {
- this.OnHoursChanging(value);
- this.ReportPropertyChanging("Hours");
- this._Hours = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("Hours");
- this.OnHoursChanged();
- }
- }
- private double _Hours;
- partial void OnHoursChanging(double value);
- partial void OnHoursChanged();
- /// <summary>
- /// There are no comments for Property Description in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Description
- {
- get
- {
- return this._Description;
- }
- set
- {
- this.OnDescriptionChanging(value);
- this.ReportPropertyChanging("Description");
- this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("Description");
- this.OnDescriptionChanged();
- }
- }
- private string _Description;
- partial void OnDescriptionChanging(string value);
- partial void OnDescriptionChanged();
- /// <summary>
- /// There are no comments for Member in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Member", "Member")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public Member Member
- {
- get
- {
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member").Value;
- }
- set
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member").Value = value;
- }
- }
- /// <summary>
- /// There are no comments for Member in the schema.
- /// </summary>
- [global::System.ComponentModel.BrowsableAttribute(false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityReference<Member> MemberReference
- {
- get
- {
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member");
- }
- set
- {
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Member>("TimeSheetDatabaseModel.FK_Effort_Member", "Member", value);
- }
- }
- }
- /// <summary>
- /// There are no comments for Project in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Project", "Project")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public Project Project
- {
- get
- {
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project").Value;
- }
- set
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project").Value = value;
- }
- }
- /// <summary>
- /// There are no comments for Project in the schema.
- /// </summary>
- [global::System.ComponentModel.BrowsableAttribute(false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityReference<Project> ProjectReference
- {
- get
- {
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project");
- }
- set
- {
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Project>("TimeSheetDatabaseModel.FK_Effort_Project", "Project", value);
- }
- }
- }
- }
- /// <summary>
- /// There are no comments for TimeSheetDatabaseModel.Member in the schema.
- /// </summary>
- /// <KeyProperties>
- /// Id
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TimeSheetDatabaseModel", Name="Member")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class Member : global::System.Data.Objects.DataClasses.EntityObject
- {
- /// <summary>
- /// Create a new Member object.
- /// </summary>
- /// <param name="id">Initial value of Id.</param>
- /// <param name="name">Initial value of Name.</param>
- public static Member CreateMember(int id, string name)
- {
- Member member = new Member();
- member.Id = id;
- member.Name = name;
- return member;
- }
- /// <summary>
- /// There are no comments for Property Id in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- this.OnIdChanging(value);
- this.ReportPropertyChanging("Id");
- this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- private int _Id;
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- /// <summary>
- /// There are no comments for Property Name in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- this.OnNameChanging(value);
- this.ReportPropertyChanging("Name");
- this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- private string _Name;
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- /// <summary>
- /// There are no comments for Effort in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Member", "Effort")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityCollection<Effort> Effort
- {
- get
- {
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Member", "Effort");
- }
- set
- {
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Member", "Effort", value);
- }
- }
- }
- }
- /// <summary>
- /// There are no comments for TimeSheetDatabaseModel.Project in the schema.
- /// </summary>
- /// <KeyProperties>
- /// Id
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="TimeSheetDatabaseModel", Name="Project")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class Project : global::System.Data.Objects.DataClasses.EntityObject
- {
- /// <summary>
- /// Create a new Project object.
- /// </summary>
- /// <param name="id">Initial value of Id.</param>
- /// <param name="name">Initial value of Name.</param>
- public static Project CreateProject(int id, string name)
- {
- Project project = new Project();
- project.Id = id;
- project.Name = name;
- return project;
- }
- /// <summary>
- /// There are no comments for Property Id in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- this.OnIdChanging(value);
- this.ReportPropertyChanging("Id");
- this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- private int _Id;
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- /// <summary>
- /// There are no comments for Property Name in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- this.OnNameChanging(value);
- this.ReportPropertyChanging("Name");
- this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- private string _Name;
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- /// <summary>
- /// There are no comments for Effort in the schema.
- /// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("TimeSheetDatabaseModel", "FK_Effort_Project", "Effort")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityCollection<Effort> Effort
- {
- get
- {
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Project", "Effort");
- }
- set
- {
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Effort>("TimeSheetDatabaseModel.FK_Effort_Project", "Effort", value);
- }
- }
- }
- }
- }