public TFNode GetTheBelongNode() { CriteriaOperator criteriaOperator = CriteriaOperator.Parse("s_Type = 'C' And g_OwnTaskChainGuid = ?", g_ID); var node = TheUow.FindObject <TFNode>(criteriaOperator); if (node != null) { return(node); } node = TheUow.GetObjectsInTransaction(TheUow.GetClassInfo <TFNode>(), criteriaOperator, false).Cast <TFNode>().FirstOrDefault(); return(node); }
public List <TFNode> GetListNodesInTransaction() { return(TheUow.GetObjectsInTransaction(TheUow.GetClassInfo <TFNode>(), CriteriaOperator.Parse("g_TaskChainGuid = ?", g_ID), false).Cast <TFNode>().ToList()); }
public TFTaskChain GetTheOwnTaskChainInTransaction() { return(s_Type == "C" ? TheUow.GetObjectsInTransaction(TheUow.GetClassInfo <TFTaskChain>(), CriteriaOperator.Parse("g_ID = ?", g_OwnTaskChainGuid), false).Cast <TFTaskChain>().FirstOrDefault() : null); }