Esempio n. 1
0
		public void SetFrom(From fromClause)
		{
			if (fromClause == null)
				throw new ArgumentNullException("fromClause");

			from = fromClause;
		}
Esempio n. 2
0
		public DetachedDynQuery(From from)
		{
			if (from == null)
				throw new ArgumentNullException("from");

			this.from = from;
		}
Esempio n. 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;
		}
Esempio n. 4
0
		public DetachedDynQuery(Select select)
		{
			if (select == null)
				throw new ArgumentNullException("select");

			this.select = select;
			from = select.From();
		}
Esempio n. 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;
		}
Esempio n. 6
0
 internal void SetOwner(From fromClause)
 {
     owner = fromClause;
 }
Esempio n. 7
0
 public GroupBy(From owner)
 {
     this.owner = owner;
 }