/// <summary> /// Deprecated Method for adding a new object to the WorkItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToWorkItems(WorkItem workItem) { base.AddObject("WorkItems", workItem); }
/// <summary> /// Create a new WorkItem object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="changedDate">Initial value of the ChangedDate property.</param> /// <param name="changedBy">Initial value of the ChangedBy property.</param> public static WorkItem CreateWorkItem(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.String title, global::System.String type, global::System.DateTime createdDate, global::System.String createdBy, global::System.DateTime changedDate, global::System.String changedBy) { WorkItem workItem = new WorkItem(); workItem.Id = id; workItem.RowVersion = rowVersion; workItem.Title = title; workItem.Type = type; workItem.CreatedDate = createdDate; workItem.CreatedBy = createdBy; workItem.ChangedDate = changedDate; workItem.ChangedBy = changedBy; return workItem; }