void InitFromBase(SqlTable baseTable) { if (_alias == null) { _alias = baseTable._alias; } if (_database == null) { _database = baseTable._database; } if (_owner == null) { _owner = baseTable._owner; } if (_physicalName == null) { _physicalName = baseTable._physicalName; } foreach (var field in baseTable.Fields.Values) { if (!Fields.ContainsKey(field.Name)) { Fields.Add(new SqlField(field)); } } foreach (var join in baseTable.Joins) { if (Joins.Find(j => j.TableName == join.TableName) == null) { Joins.Add(join); } } }