public IDetachedQuery TransformToRowCount() { Select s = new Select("count(*)"); s.SetFrom(from.FromWhereClause()); DetachedQuery result = new DetachedQuery(s.Clause); result.CopyParametersFrom(this); return result; }
public DetachedDynQuery(Select select) { if (select == null) throw new ArgumentNullException("select"); this.select = select; from = select.From(); }