Пример #1
0
 public override string ToString()
 {
     if (SqlCondition.HasValue())
     {
         return(SqlCondition);
     }
     return($"({Left}-{Operator}-{Right})");
 }
Пример #2
0
        /// <summary>
        /// Returns a string that represents this instance.
        /// </summary>
        public override string ToString()
        {
            if (SqlCondition.HasValue())
            {
                return(SqlCondition);
            }

            var valueText = Value == null ? NULL_ESCAPE : GetSerializedValue().Replace(":", COLON_ESCAPE);

            return(string.Join(":", PropertyName, FilterFunction, valueText));
        }