Esempio n. 1
0
        public Select Where(string partialClause)
        {
            if (from == null)
            {
                throw new NotSupportedException("Can't set the 'where' clause without 'from' clause.");
            }

            from.SetWhere(new Where(partialClause));
            return(this);
        }
Esempio n. 2
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. 3
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);
        }