Пример #1
0
        public string?WhereSignature()
        {
            var includeColumns = IncludeColumns.HasItems() ? IncludeColumns.ToString(c => c.Name, "_") : null;

            if (string.IsNullOrEmpty(Where) && includeColumns == null)
            {
                return(null);
            }

            return("__" + StringHashEncoder.Codify(Where + includeColumns));
        }
Пример #2
0
        protected string ColumnSignature()
        {
            string columns        = Columns.ToString(c => c.Name, "_");
            var    includeColumns = IncludeColumns.HasItems() ? IncludeColumns.ToString(c => c.Name, "_") : null;

            if (string.IsNullOrEmpty(Where) && includeColumns == null)
            {
                return(columns);
            }

            return(columns + "__" + StringHashEncoder.Codify(Where + includeColumns));
        }