Esempio n. 1
0
 public virtual SelectStatementBuilder GetSelectStatementBuilder(FromClause from, Condition iwc, OrderBy oc, Range lc, bool isDistinct, bool noLazy, Type returnType, string colName)
 {
     var sb = new SelectStatementBuilder(from ?? this.Context.Info.From, oc, lc)
                        {
                            IsDistinct = isDistinct,
                            NoLazy = noLazy
                        };
     sb.Where.Conditions = iwc;
     if (!colName.IsNullOrEmpty())
     {
         sb.Keys.Add(new KeyValuePair<string, string>(colName, null));
         return sb;
     }
     if (returnType.Name.StartsWith("<"))
     {
         this.SetSelectColumnsForDynamicLinqObject(sb, returnType);
         return sb;
     }
     this.Context.Handler.SetValuesForSelect(sb, noLazy);
     return sb;
 }
 public override SelectStatementBuilder GetSelectStatementBuilder(FromClause from, Condition iwc, OrderBy oc, Range lc, bool isDistinct, bool noLazy, Type returnType, string colName)
 {
     return base.GetSelectStatementBuilder(from, iwc && _colExp, oc, lc, isDistinct, noLazy, returnType, colName);
 }
Esempio n. 3
0
 public SqlStatement GetSelectStatement(FromClause from, Condition iwc, OrderBy oc, Range lc, bool isDistinct, bool noLazy, Type returnType)
 {
     return this.GetSelectStatementBuilder(from, iwc, oc, lc, isDistinct, noLazy, returnType, null).ToSqlStatement(this.Context);
 }