private bool CreateQueryString(ColumnListItem _item, ref string _msg) { _msg = ""; try { string _mainSql = ""; using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient()) { _msc.TestStatisticsExpress(this.currentTable.TableName, _item.Column, this.currentFun, ref _mainSql, ref resultDataType); } this.queryString = string.Format("{0} where {1}", _mainSql, this.currentTable.TableDefine.RelationString); return(true); } catch (Exception e) { _msg = e.Message; return(false); } }