Beispiel #1
0
        private static void MakeDomain()
        {
            var ConfigTable = new TableToClass();
            var BuildClass = new Domain();
            var GroupTables = ConfigTable.GetTableMapper();

            WriteToConsole(" ");
            WriteToConsole("Gerando Domain Models...");

            foreach (var Table in GroupTables)
            {
                WriteToConsole("-> " + BuildClass.BuildModels(Table));
                if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }

                WriteToConsole("-> " + BuildClass.BuildModelsSpecialized(Table.Value.ClassName));
                if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }

                WriteToConsole("-> " + BuildClass.BuildModelsValidations(Table));
                if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }
            }

            WriteToConsole("-> " + BuildClass.BuildUnitOfWork(GroupTables));
            if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }

        }
Beispiel #2
0
        private static void MakeMappers()
        {
            var ConfigTable = new TableToClass();
            var BuildClass = new Data();
            var GroupTables = ConfigTable.GetTableMapper();

            WriteToConsole(" ");
            WriteToConsole("Gerando Mappers...");

            foreach (var Table in GroupTables)
            {
                WriteToConsole("-> " + BuildClass.BuildMapper(Table));
                if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }
            }
        }
Beispiel #3
0
        private static void MakeUnitOfWork()
        {
            var ConfigTable = new TableToClass();
            var BuildClass = new Data();
            var GroupTables = ConfigTable.GetTableMapper();

            WriteToConsole(" ");
            WriteToConsole("Gerando UnitOfWork...");

            WriteToConsole("-> " + BuildClass.BuildUnitOfWork(GroupTables));
            if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }
        }
Beispiel #4
0
        private static void MakeController()
        {
            var ConfigTable = new TableToClass();
            var BuildClass = new Presentation();
            var GroupTables = ConfigTable.GetTableMapper();

            WriteToConsole(" ");
            WriteToConsole("Gerando Controllers...");

            WriteToConsole("-> " + BuildClass.BuildBase());
            if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }

            foreach (var Table in GroupTables)
            {
                WriteToConsole("-> " + BuildClass.BuildController(Table.Value.ClassName));
                if (VERIFY_TIME) { TimeSleep(MILLISECONDS); }
            }
        }