Esempio n. 1
0
 public MongoAdapterInserter(MongoAdapter adapter)
 {
     if (adapter == null)
     {
         throw new ArgumentNullException("adapter");
     }
     _adapter = adapter;
 }
 public MongoAdapterUpdater(MongoAdapter adapter, IExpressionFormatter expressionFormatter)
 {
     if (adapter == null)
     {
         throw new ArgumentNullException("adapter");
     }
     _adapter             = adapter;
     _expressionFormatter = expressionFormatter;
 }
Esempio n. 3
0
        public ExpressionFormatter(MongoAdapter adapter)
        {
            _adapter = adapter;

            _supportedFunctions = new Dictionary <string, Func <SimpleReference, SimpleFunction, IMongoQuery> >(StringComparer.InvariantCultureIgnoreCase)
            {
                { "like", HandleLike },
                { "startswith", HandleStartsWith },
                { "contains", HandleContains },
                { "endswith", HandleEndsWith }
            };
        }
        public ExpressionFormatter(MongoAdapter adapter)
        {
            _adapter = adapter;

            _supportedFunctions = new Dictionary<string, Func<SimpleReference, SimpleFunction, QueryComplete>>(StringComparer.InvariantCultureIgnoreCase)
            {
                { "like", HandleLike },
                { "startswith", HandleStartsWith },
                { "contains", HandleContains },
                { "endswith", HandleEndsWith }
            };
        }
 public MongoAdapterUpdater(MongoAdapter adapter, IExpressionFormatter expressionFormatter)
 {
     if (adapter == null) throw new ArgumentNullException("adapter");
     _adapter = adapter;
     _expressionFormatter = expressionFormatter;
 }
 public MongoAdapterFinder(MongoAdapter mongoAdapter, IExpressionFormatter expressionFormatter)
 {
     _mongoAdapter = mongoAdapter;
     _expressionFormatter = expressionFormatter;
 }
Esempio n. 7
0
 public MongoAdapterFinder(MongoAdapter mongoAdapter, IExpressionFormatter expressionFormatter)
 {
     _mongoAdapter        = mongoAdapter;
     _expressionFormatter = expressionFormatter;
 }
 public MongoAdapterInserter(MongoAdapter adapter)
 {
     if (adapter == null) throw new ArgumentNullException("adapter");
     _adapter = adapter;
 }