Example #1
0
        private void ProcessException(Type type)
        {
            if (outputDebug)
            {
                log.Debug("Exception: {0}", type.Name);

                foreach (var field in type.GetFields())
                    log.Debug("  Field: {0}", field.Name);
            }

            var gen = new Generator(type.Assembly);
            gen.GenerateDataObject(type);

            WriteGeneratorToFile(type, gen);
        }
Example #2
0
        private string ProcessDataObject(Type type)
        {
            if (outputDebug)
            {
                log.Debug("DataObject: {0}", type.Name);

                foreach (var field in type.GetFields())
                    log.Debug("  Field: {0}", field.Name);
            }

            var gen = new Generator(type.Assembly);
            var dataObjectFullName = gen.GenerateDataObject(type);

            WriteGeneratorToFile(type, gen);

            return dataObjectFullName;
        }