public TableInfo(IAccelr8Locator locator) { ColumnNames = new Dictionary<int, string>(); Joins = new JoinInfo[0]; if (_locator == null) _locator = locator; }
public TableInfo(IAccelr8Locator locator) { ColumnNames = new Dictionary <int, string>(); Joins = new JoinInfo[0]; if (_locator == null) { _locator = locator; } }
public virtual IEntityReader WithManyToOneJoin (JoinInfo join) { for (var i = 0; i < join.JoinQuery.Length; i++) { join.JoinQuery[i].ParentTableAlias = TableAlias; } var j = new Join() { Load = join.Load, SplitOnColumnName = "SplitMe", JoinAlias = join.Alias, JoinColumnNames = join.Reader().ColumnNames.Select(d => d.Value).ToArray(), JoinTable = join.TableName, Outer = join.Outer, JoinOnQueries = join.JoinQuery }; _joins.Add(j); return(this); }