public WF_DEF_Workflow GetWorkflow() { var workflow = new WF_DEF_Workflow(); workflow.ID = this.WorkFlowId.Value; workflow.Fresh(this.Accessor); return(workflow); }
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)); }