Пример #1
0
        public static List<ExplorerItem> GetSchema(VfpConnection connection, IConnectionInfo connectionInfo)
        {
            if (connection == null) {
                throw new ArgumentNullException("connection");
            }

            if (connectionInfo == null) {
                throw new ArgumentNullException("connectionInfo");
            }

            var reader = new SchemaReader(connection, connectionInfo);
            var database = reader.GetDatabase();

            return database.GetExplorerSchema();
        }
Пример #2
0
        public static List <ExplorerItem> GetSchema(VfpConnection connection, IConnectionInfo connectionInfo)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            if (connectionInfo == null)
            {
                throw new ArgumentNullException("connectionInfo");
            }

            var reader   = new SchemaReader(connection, connectionInfo);
            var database = reader.GetDatabase();

            return(database.GetExplorerSchema());
        }