internal static IModels Add(this IModels modelSet, DbFromClause dbFromClause) { var resolver = new SourceModelResolver(modelSet); dbFromClause.Accept(resolver); return(resolver.SourceModelSet.Seal()); }
internal static IModelAliasManager Create(DbFromClause fromClause) { var manager = new Visitor(); fromClause.Accept(manager); return(manager._aliases); }
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--; } }