Пример #1
0
        public SqlQuery InnerJoin(IAlias alias, ICriteria onCriteria)
        {
            if (alias == null)
            {
                throw new ArgumentNullException("alias");
            }

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

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

            Join(join);

            var haveJoins = alias as IHaveJoins;

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

            return(this);
        }
Пример #2
0
        public SqlQuery InnerJoin(IAlias alias, ICriteria onCriteria)
        {
            if (alias == null)
                throw new ArgumentNullException("alias");

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

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

            Join(join);

            return this;
        }
Пример #3
0
        public SqlQuery InnerJoin(IAlias alias, ICriteria onCriteria)
        {
            if (alias == null)
            {
                throw new ArgumentNullException("alias");
            }

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

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

            Join(join);

            return(this);
        }