예제 #1
0
        public static void Build()
        {
            var database = Current;

            //if (U.IsDebug)
            //{
            //	//database.TraceListener = new DBLogger();
            //	database.Trace = true;
            //	database.Tracer = (q) => U.Log4("SQL=" + q);
            //}

            DB.CreateTable <UserOptions>();



            UserOptions.Init();
            //UserOptions.SetBusinessInfo(new Guid("1F19A836-DDC9-459B-B96F-10A5D7BA4446"), "ABC");
            //DBCach.Init();
            //database.Execute("update UserOptions set NetworkRestriction = 1 where NetworkRestriction is null"); //"Default" property in model class don't work normal

            //var aaa = DB.Table<StockItem>().Count();


            //DBZDebugData.Run(database);

            Globalization.DbInit();
        }