internal string BuildImpl() { string returnString = BuildImpl(this); returnString += Environment.NewLine; foreach (var joins in _joins) { returnString += joins.BuildImpl(); } if (WhereCondition != null) { returnString += "WHERE " + WhereCondition.BuildImpl(); foreach (var andCondition in AndConditions) { returnString += " AND " + andCondition.BuildImpl(); } foreach (var orCondition in OrConditions) { returnString += " OR " + orCondition.BuildImpl(); } } if (!string.IsNullOrWhiteSpace(ExtraQuery)) { returnString += ExtraQuery; } return(returnString); }
internal string BuildImpl() { string returnString = null; if (WhereCondition != null) { returnString += "WHERE " + WhereCondition.BuildImpl(); foreach (var andCondition in AndConditions) { returnString += " AND " + andCondition.BuildImpl(); } foreach (var orCondition in OrConditions) { returnString += " OR " + orCondition.BuildImpl(); } } return(returnString); }