public static SQLModel.SelectStatementExpression EnsureSelectStatementExpression(object expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            var result = expression as SQLModel.SelectStatementExpression;

            if (result == null)
            {
                var selectStatement = EnsureSelectStatement(expression);
                result = new SQLModel.SelectStatementExpression();
                result.SelectStatement = selectStatement;
            }

            return(result);
        }
		public static SQLModel.SelectStatementExpression EnsureSelectStatementExpression(object expression)
		{
			if (expression == null)
			{
				throw new ArgumentNullException("expression");
			}

			var result = expression as SQLModel.SelectStatementExpression;
			if (result == null)
			{
				var selectStatement = EnsureSelectStatement(expression);
				result = new SQLModel.SelectStatementExpression();
				result.SelectStatement = selectStatement;
			}

			return result;
		}