public void GivenComparisionSampleData()
        {
            _collection = ConnectionHelper.Connection <Datapull>("datapull");

            var x = new Datapull {
                Company = "msft", Sedol = "111", FSTicker = "111"
            };

            var y = new Datapull {
                Company = "msft2", Sedol = "1112", FSTicker = "111"
            };

            // _collection.InsertOne(x);
            // _collection.InsertOne(y);
        }
Esempio n. 2
0
        private static void InsertData(IMongoCollection <Datapull> collection)
        {
            var x = new Datapull
            {
                Company  = "Microsoft",
                FSTicker = "25881xx",
                Sedol    = "25881xx",
            };

            var z = new Datapull
            {
                Company  = "BlackBerry",
                FSTicker = "1",
                Sedol    = "sd"
            };


            collection.InsertOne(x);
            collection.InsertOne(z);
        }