Exemplo n.º 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();
        }
Exemplo n.º 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());
        }