Exemple #1
0
		public void SetFrom(From fromClause)
		{
			if (fromClause == null)
				throw new ArgumentNullException("fromClause");

			from = fromClause;
		}
Exemple #2
0
		public DetachedDynQuery(From from)
		{
			if (from == null)
				throw new ArgumentNullException("from");

			this.from = from;
		}
Exemple #3
0
		public Select From(string partialClause)
		{
			if (from != null)
				throw new NotSupportedException(string.Format("Can't override the 'from' clause; original 'from':{0}", from.Expression));
			from = new From(partialClause);
			return this;
		}
Exemple #4
0
		public DetachedDynQuery(Select select)
		{
			if (select == null)
				throw new ArgumentNullException("select");

			this.select = select;
			from = select.From();
		}
Exemple #5
0
		public From FromWhereClause()
		{
			var result = new From(partialClause);
			foreach (var s in joins)
			{
				result.Join(s);
			}
			if (where != null)
				result.SetWhere(where.Clone());
			return result;
		}
Exemple #6
0
 internal void SetOwner(From fromClause)
 {
     owner = fromClause;
 }
Exemple #7
0
 public GroupBy(From owner)
 {
     this.owner = owner;
 }