예제 #1
0
        public MongodbSourceHandler(ILogger <MongodbSourceHandler> logger, IOutputMapping mapping,
                                    IMongodbService service)
        {
            _logger = logger;

            _mapping = mapping;

            _service = service;
        }
예제 #2
0
        public List <JObject> QueryTextWithMapping(string queriedField, string queriedText, int pageLimit, int pageSkip,
                                                   List <PropertyOutput> maps, IOutputMapping outputMapping)
        {
            var bsonList = QueryText(queriedField, queriedText, pageLimit, pageSkip);

            var jObjects = new List <JObject>();

            bsonList.ForEach(x => jObjects.Add(outputMapping.ConvertFromBson(x, maps)));

            return(jObjects);
        }