public override string ToString()
 {
     return("MListElement({0})\r\n{{\r\nParent={1},\r\nOrder={2},\r\nElement={3}}})".FormatWith(
                RowId.ToString(),
                Parent.ToString(),
                Order?.ToString(),
                Element.ToString()));
 }
Esempio n. 2
0
        public string GetEntityRefAliasName(EntityExpression exp, SqlQueryBase query)
        {
            string path = exp.ToString();
            Dictionary <string, EntityExpression> ds = AutoJoins[query];

            EntityExpression e = null;

            if (!ds.TryGetValue(path, out e))
            {
                ds.Add(path, exp);
                _queryIndex  += 1;
                exp.AliasName = $"j{_queryIndex}";
                e             = exp;
            }
            return(e.AliasName);
        }