コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
 public IEnumerable <WorkItem> GetChildWorkItems(WorkItemParent parent)
 {
     return(WorkflowRepository.GetChildWorkItems(parent));
 }
コード例 #5
0
 public IEnumerable<WorkItem> GetChildWorkItems(WorkItemParent parent)
 {
     return WorkflowRepository.GetChildWorkItems(parent);
 }
コード例 #6
0
 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();
 }
コード例 #7
0
 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());
 }
コード例 #8
0
 public IEnumerable <WorkItem> GetChildWorkItems(WorkItemParent parent)
 {
     return(_workItemRepsitory.GetChildWorkItems(parent));
 }
コード例 #9
0
 public IEnumerable<WorkItem> GetChildWorkItems(WorkItemParent parent)
 {
     return _workItemRepsitory.GetChildWorkItems(parent);
 }
コード例 #10
0
        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));
        }
コード例 #11
0
        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));
        }
コード例 #12
0
 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);
 }
コード例 #13
0
 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);
 }