public SelectQuery(IDbContext dbContext, Expression <Predicate <TModel> > where = null) : base(dbContext) { _dbContext = dbContext; _projectionColumns.AddRange(ModelUtility.GetColumnNames <TModel>()); _tableName = SqlGenerationUtility.GetTableName <TModel>(); if (where != null) { var visitor = new SqlExpressionVisitor <TModel>(); _wherePredicates.Add(visitor.VisitExpression(where)); } }