Exemple #1
0
        public SelectFollowingBuilder <T> Select <T>(TableHint?hints, Expression <Func <SelectDeclaration <T>, SelectDeclaration <T> > > expression)
        {
            SelectDeclaration <T> declaration = new SelectDeclaration <T>();

            declaration = expression.Compile().Invoke(declaration);
            return(Select <T>(hints, declaration));
        }
Exemple #2
0
        public SelectFollowingBuilder <T> Select <T>(TableHint?hints, SelectDeclaration <T> declaration)
        {
            SelectClause <T> clause = new SelectClause <T>(declaration.GetSelectItems(), hints);

            clause.TopCount = declaration.TopCount;
            clause.Distinct = declaration.DistinctSelect;
            _clauses.Add(clause);

            return(new SelectFollowingBuilder <T>(_clauses));
        }
Exemple #3
0
 public SelectFollowingBuilder <T> Select <T>(SelectDeclaration <T> declaration)
 {
     return(Select <T>(null, declaration));
 }