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); }
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; }
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); }