示例#1
0
        public WF_DEF_Workflow GetWorkflow()
        {
            var workflow = new WF_DEF_Workflow();

            workflow.ID = this.WorkFlowId.Value;

            workflow.Fresh(this.Accessor);
            return(workflow);
        }
示例#2
0
        protected override T FetchData <T>(Guid id)
        {
            object data = null;

            if (typeof(T).Equals(typeof(IDWorkflow)))
            {
                var workflow = new WF_DEF_Workflow();
                workflow.ID = id;
                workflow.Fresh(this.accessor);
                data = workflow;
            }

            return(data != null ? (T)data : default(T));
        }