Beispiel #1
0
        public SqlQuery RightJoin(IAlias alias, ICriteria onCriteria)
        {
            if (alias == null)
            {
                throw new ArgumentNullException("alias");
            }

            if (string.IsNullOrEmpty(alias.Table))
            {
                throw new ArgumentNullException("alias.table");
            }

            var join = new RightJoin(alias.Table, alias.Name, onCriteria);

            Join(join);

            var haveJoins = alias as IHaveJoins;

            if (haveJoins != null)
            {
                AliasWithJoins[alias.Name] = haveJoins;
            }

            return(this);
        }
Beispiel #2
0
        public SqlQuery RightJoin(IAlias alias, ICriteria onCriteria)
        {
            if (alias == null)
            {
                throw new ArgumentNullException("alias");
            }

            if (string.IsNullOrEmpty(alias.Table))
            {
                throw new ArgumentNullException("alias.table");
            }

            var join = new RightJoin(alias.Table, alias.Name, onCriteria);

            Join(join);

            return(this);
        }
Beispiel #3
0
        public SqlQuery RightJoin(IAlias alias, ICriteria onCriteria)
        {
            if (alias == null)
                throw new ArgumentNullException("alias");

            if (string.IsNullOrEmpty(alias.Table))
                throw new ArgumentNullException("alias.table");

            var join = new RightJoin(alias.Table, alias.Name, onCriteria);

            Join(join);

            var haveJoins = alias as IHaveJoins;
            if (haveJoins != null)
                AliasWithJoins[alias.Name] = haveJoins;

            return this;
        }
Beispiel #4
0
        public SqlQuery RightJoin(string toTable, IAlias alias, ICriteria onCriteria)
        {
            if (alias == null)
                throw new ArgumentNullException("alias");

            if (string.IsNullOrEmpty(toTable))
                throw new ArgumentNullException("alias.table");

            var join = new RightJoin(toTable, alias.Name, onCriteria);

            Join(join);

            return this;
        }