protected override object InvokeMe(string methodInfo, params object[] args) { var p = GetP(); var du = DODUnitProxy.GetDOD(methodInfo, p); if (args.Length > 0) { du.InstanceID = ComFunc.nvl(args[0]); } else { du.InstanceID = ""; } return(du); }
/// <summary> /// DOD调用,param的第一个默认为instanceid /// </summary> /// <typeparam name="T"></typeparam> /// <param name="propertyname"></param> /// <param name="param"></param> /// <returns></returns> public DOCollection DO <T>(string propertyname, params KeyValuePair <string, object>[] param) where T : DODBaseUnit { var pp = GetP(); pp.PropertyName = propertyname; if (param != null) { foreach (var val in param) { pp.SetValue(val.Key, val.Value); } } pp.ExtentionObj.instanceid = param.Length > 0 ? param[0].Value : ""; var result = DODUnitProxy.CallDOD <T>(pp); return(result); }
protected override object GetMetaValue(string key) { var p = GetP(); return(DODUnitProxy.GetDOD(key, p)); }