public object Convert(IConversionRequest request)
 {
     var session = request.Get<MongoSession>().Session;
        var collection = session.GetCollection(_type, _type.Name.ToLowerInvariant());
        var query = Query.EQ("_id", request.Text);
        return collection.FindOneAs(_type, query);
 }
Example #2
0
        public object Convert(IConversionRequest request)
        {
            var session    = request.Get <MongoSession>().Session;
            var collection = session.GetCollection(_type, _type.Name.ToLowerInvariant());
            var query      = Query.EQ("_id", request.Text);

            return(collection.FindOneAs(_type, query));
        }
 public override object Convert(IConversionRequest request)
 {
     return request.Get<WidgetFinderService>().Build(request.Text);
 }
Example #4
0
 public override object Convert(IConversionRequest request)
 {
     return(request.Get <WidgetFinderService>().Build(request.Text));
 }