private void RemoveLastCommaAndSpaceIfThereAreAnyColumns(StringBuilder selectBuilder) { if ((ColumnInfos.Count() + References.Count()) > 0) { RemoveLastCharacters(selectBuilder, 2); } }
/// <summary> /// 判定是否有了对应列 /// </summary> /// <param name="columnKey"></param> /// <returns></returns> public bool HaveColumn(string columnKey) => ColumnInfos != null && ColumnInfos.Count(o => o.ColumnKey == columnKey) > 0;