public IEnumerable <T> Query(string databaseName, string collectionName, FilterCondition query)
        {
            if (!this.ConnectionGuard())
            {
                return(null);
            }

            var collection = this.GetDefaultCollection(databaseName, collectionName);

            if (collection == null)
            {
                return(null);
            }

            var foundObjects = this.DatabaseDriver.Get <T>(collection, query);

            return(foundObjects);
        }
 public IEnumerable <T> Query(FilterCondition query)
 {
     return(this.Query(this.DatabaseName, this.CollectionName, query));
 }