public ProjectData(Project project) : this() { if (project == null) { return; } this.ProjectId = project.ProjectId; this.Name = project.Name; this.Description = project.Description; this.IsActive = project.IsActive; this.CreatedBy = new UserData(project.CreatedByUser); this.CreatedDate = project.CreatedDate; }
/// <summary> /// Deprecated Method for adding a new object to the Projects EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProjects(Project project) { base.AddObject("Projects", project); }
/// <summary> /// Create a new Project object. /// </summary> /// <param name="projectId">Initial value of the ProjectId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> /// <param name="isArchived">Initial value of the IsArchived property.</param> /// <param name="notes">Initial value of the Notes property.</param> /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> public static Project CreateProject(global::System.Int32 projectId, global::System.String name, global::System.String description, global::System.Boolean isActive, global::System.Boolean isArchived, global::System.String notes, global::System.Int32 modifiedBy, global::System.DateTime modifiedDate, global::System.Int32 createdBy, global::System.DateTime createdDate) { Project project = new Project(); project.ProjectId = projectId; project.Name = name; project.Description = description; project.IsActive = isActive; project.IsArchived = isArchived; project.Notes = notes; project.ModifiedBy = modifiedBy; project.ModifiedDate = modifiedDate; project.CreatedBy = createdBy; project.CreatedDate = createdDate; return project; }