Ejemplo n.º 1
0
 public TheNewCollectionToUse()
 {
 #if ORMS_OLD
     TheList = new List <T>();
 #else
     TheList = new ACollection <T>();
 #endif
 }
Ejemplo n.º 2
0
        public string[] DeriveKeys()
        {
            var keys = new List <string> {
                ACollection.First().Id.ToString(),
                ACollection.Last().Id.ToString()
            };

            return(keys.ToArray());
        }
Ejemplo n.º 3
0
        public async Task Setup()
        {
            await Connection.CreateDatabase(TestDatabaseGeneral);

            _db = Connection.GetDatabase(TestDatabaseGeneral);

            await _db.CreateCollection(TestDocumentCollectionName)
            .Type(ACollectionType.Document)
            .Create();

            _collection = _db.GetCollection <object>(TestDocumentCollectionName);
        }
Ejemplo n.º 4
0
 public TheNewCollectionToUse(ACollection <T> theList)
 {
     TheList = theList;
 }