string ExecuteReader(IDbCommand command, IQuery query, string preferred_json_collection) { IDataReader reader = command.ExecuteReader(); IJsonCollection json_collection = json_collection_factory_ .CreateJsonCollection(preferred_json_collection, reader); return(Serialize(json_collection, json_collection.Count)); }