Пример #1
0
        public static void TruncateTables()
        {
            int count = ModelUtils.ModelCount;

            for (int i = 0; i < count; i++)
            {
                Model m = ModelUtils.Get(i);
                m.TruncateTable();
            }
        }
Пример #2
0
        public static void CreateTables(bool force = false)
        {
            int count = ModelUtils.ModelCount;

            for (int i = 0; i < count; i++)
            {
                Model m = ModelUtils.Get(i);
                m.CreateTable(force);
            }
        }
Пример #3
0
        public static bool TryTruncateTables()
        {
            int count = ModelUtils.ModelCount;

            for (int i = 0; i < count; i++)
            {
                Model m = ModelUtils.Get(i);
                if (!m.TryTruncateTable())
                {
                    return(false);
                }
            }
            return(true);
        }
Пример #4
0
        public static bool TryCreateTables(bool force = false)
        {
            int count = ModelUtils.ModelCount;

            for (int i = 0; i < count; i++)
            {
                Model m = ModelUtils.Get(i);
                if (!m.TryCreateTable(force))
                {
                    return(false);
                }
            }
            return(true);
        }