示例#1
0
		private static void Main(string[] args)
		{
		    using (var test = new RavenDb_2239())
		    {
                using (var store = new DocumentStore { Url = "http://localhost:8080",DefaultDatabase = "TestDB"}) //requestedStorage: "esent"))
                {
                    store.Initialize();
                    store.DatabaseCommands.GlobalAdmin.EnsureDatabaseExists("TestDB");

                    Console.WriteLine("Press any key to begin test");
                    Console.ReadLine();
                    test.SetupData(store);
                }
		    }
		}
示例#2
0
        private static void Main(string[] args)
        {
            using (var test = new RavenDb_2239())
            {
                using (var store = new DocumentStore {
                    Url = "http://localhost:8080", DefaultDatabase = "TestDB"
                })                                                                                                //requestedStorage: "esent"))
                {
                    store.Initialize();
                    store.DatabaseCommands.GlobalAdmin.EnsureDatabaseExists("TestDB");

                    Console.WriteLine("Press any key to begin test");
                    Console.ReadLine();
                    test.SetupData(store);
                }
            }
        }