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