Esempio n. 1
0
        public static void GenerateDaos(IDomainMap domMap)
        {
            if (Directory.Exists(MySqlConstants.BASE_PATH))
            {
                Directory.Delete(MySqlConstants.BASE_PATH, true);
            }
            Directory.CreateDirectory(MySqlConstants.BASE_PATH);


            DataAccessInterfaceGenerator.GenerateAll(MySqlConstants.BASE_PATH, domMap);
            EntityGenerator.GenerateAll(MySqlConstants.BASE_PATH, domMap);

            MySqlDataAccessObjectGenerator gen = new MySqlDataAccessObjectGenerator();

            gen.GenerateAll(MySqlConstants.BASE_PATH + "MySqlDAO\\", domMap);
        }