예제 #1
0
        public static void Main(string[] args)
        {
            int count = 10;

            try
            {
                count = Int32.Parse(args[0]);
            }
            catch (Exception ignore) { }
            Console.WriteLine("writing " + count + " person Objects");

            try
            {
                client.Truncate(null, "test", FlatDataSet, DateTime.MinValue);
            }
            catch (Exception ignore) { }
            try
            {
                client.Truncate(null, "test", "flatDataSet", DateTime.MinValue);
            }
            catch (Exception ignore) { }
            try
            {
                client.Truncate(null, "test", ProtoBufSet, DateTime.MinValue);
            }
            catch (Exception ignore) { }
            List <Person> pList = new List <Person>();

            for (int i = 0; i < count; i++)
            {
                pList.Add(Person.GetP());
            }
            storeFlatData(pList);
            storeProtobuf(pList);
        }