private WorkItem(string id, string path, IEnumerable<string> workItemClasses, WorkItemStatus status, WorkItemParent parent, int? ordinal, NameValueCollection properties, DateTime? lastUpdated, DateTime? lastMoved) { Id = id; Path = path; Classes = workItemClasses; Status = status; Parent = parent; Timestamp = lastUpdated; LastMoved = lastMoved; _ordinal = ordinal; _properties = properties; }
private WorkItem(string id, string path, IEnumerable <string> workItemClasses, WorkItemStatus status, WorkItemParent parent, int?ordinal, NameValueCollection properties, DateTime?lastUpdated, DateTime?lastMoved) { Id = id; Path = path; Classes = workItemClasses; Status = status; Parent = parent; Timestamp = lastUpdated; LastMoved = lastMoved; _ordinal = ordinal; _properties = properties; }
public IEnumerable<WorkItem> GetChildWorkItems(WorkItemParent parent) { const string query = _selectQueryPart + "where WI_ParentId = @ParentId and WI_ParentType = @ParentType"; using(var connection = new SqlConnection(_connectionString)) { connection.Open(); var cmd = new SqlCommand(query,connection); cmd.Parameters.Add(new SqlParameter("@ParentId", parent.Id)); cmd.Parameters.Add(new SqlParameter("@ParentType", parent.Type)); return GetWorkItems(cmd); } }
public IEnumerable <WorkItem> GetChildWorkItems(WorkItemParent parent) { return(WorkflowRepository.GetChildWorkItems(parent)); }
public IEnumerable<WorkItem> GetChildWorkItems(WorkItemParent parent) { return WorkflowRepository.GetChildWorkItems(parent); }
public IEnumerable<WorkItem> GetChildWorkItems(WorkItemParent parent) { return _workItems.Values.Where(wi => wi.Parent != null && wi.Parent.Id == parent.Id && wi.Parent.Type == parent.Type).ToList(); }
public IEnumerable <WorkItem> GetChildWorkItems(WorkItemParent parent) { return(_workItems.Values.Where(wi => wi.Parent != null && wi.Parent.Id == parent.Id && wi.Parent.Type == parent.Type).ToList()); }
public IEnumerable <WorkItem> GetChildWorkItems(WorkItemParent parent) { return(_workItemRepsitory.GetChildWorkItems(parent)); }
public IEnumerable<WorkItem> GetChildWorkItems(WorkItemParent parent) { return _workItemRepsitory.GetChildWorkItems(parent); }
public WorkItem UpdateParent(string parentId, WorkItemParentType parentType) { var parent = new WorkItemParent(parentId, parentType); return(new WorkItem(Id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved)); }
public WorkItem CreateChildItem(string id, WorkItemParentType parentType) { var parent = new WorkItemParent(Id, parentType); return(new WorkItem(id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved)); }
public WorkItem UpdateParent(string parentId, WorkItemParentType parentType) { var parent = new WorkItemParent(parentId, parentType); return new WorkItem(Id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved); }
public WorkItem CreateChildItem(string id, WorkItemParentType parentType) { var parent = new WorkItemParent(Id, parentType); return new WorkItem(id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved); }