Esempio n. 1
0
        static void Main(string[] args)
        {
            //PrintTitle("WuHu - nothing to do here...");

            PrintTitle("WuHu Server - Create Database");

            IDatabase database = DalFactory.CreateDatabase();

            Assert.IsNotNull(database);
            Console.WriteLine("create database...");
            CreateDatabase(database);
            Console.WriteLine("done.");
            Console.WriteLine("clear database...");
            DatabaseReset.Clear(database);
            Console.WriteLine("done.");
            Console.WriteLine("insert data to database.");
            DatabaseReset.Insert(database);
            Console.WriteLine("done.");
            Console.WriteLine("press {Enter} to quit this program...");
            Console.Read();
        }
Esempio n. 2
0
 public void InitDB()
 {
     DatabaseReset.Clear(database);
     DatabaseReset.Insert(database);
 }