/// <summary>
 /// Create a new Project object.
 /// </summary>
 /// <param name="projectID">Initial value of the ProjectID property.</param>
 /// <param name="projectName">Initial value of the ProjectName property.</param>
 /// <param name="projectName2">Initial value of the ProjectName2 property.</param>
 /// <param name="projectTypeName">Initial value of the ProjectTypeName property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="modifiedOn">Initial value of the ModifiedOn property.</param>
 /// <param name="stamp">Initial value of the Stamp property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 public static Project CreateProject(global::System.Int32 projectID, global::System.String projectName, global::System.String projectName2, global::System.String projectTypeName, global::System.DateTime createdOn, global::System.DateTime modifiedOn, global::System.Byte[] stamp, global::System.Boolean active, global::System.Int32 createdBy, global::System.Int32 modifiedBy)
 {
     Project project = new Project();
     project.ProjectID = projectID;
     project.ProjectName = projectName;
     project.ProjectName2 = projectName2;
     project.ProjectTypeName = projectTypeName;
     project.CreatedOn = createdOn;
     project.ModifiedOn = modifiedOn;
     project.Stamp = stamp;
     project.Active = active;
     project.CreatedBy = createdBy;
     project.ModifiedBy = modifiedBy;
     return project;
 }
        public static Project NewProject()
        {
            Project newObject = new Project();

            BsoArchiveEntities.Current.AddToProjects(newObject);
            BsoArchiveEntities.SetDefaultValue(newObject);
            return newObject;
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the Projects EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProjects(Project project)
 {
     base.AddObject("Projects", project);
 }
        /// <summary>
        /// Takes work item values and assigns them to work attributes.
        /// </summary>
        /// <param name="projectID"></param>
        /// <param name="project"></param>
        /// <param name="projectName"></param>
        /// <param name="projectName2"></param>
        /// <param name="projectTypeName"></param>
        /// <returns></returns>
        private static Project SetWorkData(int projectID, Project project, string projectName, string projectName2, string projectTypeName)
        {
            project.ProjectID = projectID;
            project.ProjectName = projectName;
            project.ProjectName2 = projectName2;
            project.ProjectTypeName = projectTypeName;

            return project;
        }