/// <summary> /// 返回数据连接列表 /// </summary> /// <param name="context"></param> /// <returns></returns> public JArray GetConnectList(HttpContext context) { YZRequest request = new YZRequest(context); SourceTypeEnum sourceType = request.GetEnum <SourceTypeEnum>("sourceType"); JArray array = new JArray(); ConnectInfoCollection rv = ConnectInfoManager.GetConnectList(sourceType); return(JArray.FromObject(rv)); }
/// <summary> /// 返回数据连接集合 /// </summary> /// <param name="context"></param> /// <returns></returns> public JArray GetConnectList(HttpContext context) { JArray array = new JArray(); YZRequest request = new YZRequest(context); ConnectInfoCollection list = ConnectInfoManager.GetConnectList(); array = JArray.FromObject(list); return(array); }