Ejemplo n.º 1
0
        public static IQueryElement?Find(this IQueryElement?element, QueryElementType type)
        {
            if (element == null)
            {
                return(null);
            }

            return(new QueryFindVisitor <QueryElementType>(type, static (type, e) => e.ElementType == type).Find(element));
Ejemplo n.º 2
0
        static IEnumerable <ISqlTableSource> GetJoinTables(SqlTableSource source, QueryElementType elementType)
        {
            if (source.Source.ElementType == elementType)
            {
                yield return(source.Source);
            }

            foreach (var join in source.Joins)
            {
                foreach (var table in GetJoinTables(join.Table, elementType))
                {
                    yield return(table);
                }
            }
        }
Ejemplo n.º 3
0
 public void OnBeginQueryElement(int elementID, int?elementIndentation, string elementName, QueryElementType elementType)
 {
 }
Ejemplo n.º 4
0
 public override void OnBeginQueryElement(int elementID, int?elementIndentation, string elementName, QueryElementType elementType) => InvokeCBreezeParser.OnBeginQueryElement?.Invoke(elementID, elementIndentation, elementName, elementType);