Ejemplo n.º 1
0
        internal static IModels Add(this IModels modelSet, DbFromClause dbFromClause)
        {
            var resolver = new SourceModelResolver(modelSet);

            dbFromClause.Accept(resolver);
            return(resolver.SourceModelSet.Seal());
        }
Ejemplo n.º 2
0
        internal static IModelAliasManager Create(DbFromClause fromClause)
        {
            var manager = new Visitor();

            fromClause.Accept(manager);
            return(manager._aliases);
        }
Ejemplo n.º 3
0
        private void GenerateFromStatement(DbFromClause from)
        {
            bool isDbTable = from.GetType() == typeof(DbTableClause);

            if (isDbTable)
            {
                SqlBuilder.Append(" ");
            }
            else
            {
                SqlBuilder.AppendLine().IndentLevel++;
            }

            from.Accept(this);

            if (!isDbTable)
            {
                SqlBuilder.IndentLevel--;
            }
        }