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

			this.select = select;
			from = select.From();
		}