private static SqlReader GetChildReader(SqlTable parentTable, List <string> childColumns, SqlEmbeddedTable childTable, List <string> parentValues)
        {
            if (childColumns.Count > parentTable.PrimaryKeys.Count || parentTable.IsEmbedded)
            {
                // This happens in a case when we can not iterate the embedded table only once and have to use multiple queries.
                return(childTable.GetReaderWhere(parentValues));
            }

            return(childTable.GetReader());
        }