예제 #1
0
        /// <summary>
        /// Gets the collection of entries where the given table name is used.
        /// </summary>
        /// <param name="table">The table name of the member to find, or null to refer to the
        /// default one in this context.</param>
        /// <returns>The requested collection of entries.</returns>
        public IEnumerable <ISchemaEntry> FindTable(string table)
        {
            if (IsDisposed)
            {
                throw new ObjectDisposedException(this.ToString());
            }
            table = Core.SchemaEntry.ValidateTable(table);

            var alias = (IElementAlias)(table == null ? null : Aliases.FindAlias(table));

            if (alias != null)
            {
                table = alias.Element;
            }

            return(_Members.FindTable(table));
        }