Example #1
0
        static void Main(string[] args)
        {
            using (var flightsContext = new FlightsContext(new CosmosDbConnectionParams()))
            {
                flightsContext.InitializeAsync().Wait();
                var flightsSeeder = new FlightsCollectionSeeder(flightsContext.FlightsDocumentCollectionSelfLink);
                flightsContext.SeedAsync(new ISeeder[] { flightsSeeder }).Wait();

                QueryData(flightsContext).Wait();
            }
        }