Пример #1
0
        /// <summary>
        /// Returns the member whose table and column name are given, or null if not such member
        /// can be found.
        /// </summary>
        /// <param name="table">The table name of the member to find, or null to refer to the
        /// default one in this context.</param>
        /// <param name="column">The column name.</param>
        /// <returns>The member found, or null.</returns>
        public ISchemaEntry FindEntry(string table, string column)
        {
            if (IsDisposed)
            {
                throw new ObjectDisposedException(this.ToString());
            }
            table  = Core.SchemaEntry.ValidateTable(table);
            column = Core.SchemaEntry.ValidateColumn(column);

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

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

            return(_Members.FindEntry(table, column));
        }