Esempio n. 1
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);
 }
Esempio n. 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);
 }
Esempio n. 4
0
 public override object Convert(IConversionRequest request)
 {
     return(request.Get <WidgetFinderService>().Build(request.Text));
 }