Beispiel #1
0
 public void Execute()
 {
     foreach (var t in schema.Tables)
     {
         table        = t;
         classBuilder = new ClassBuilder();
         var implementationText = Write();
         CodeWriterUtils.WriteClassFile(codeWriterSettings.OutputDirectory, CodeWriterUtils.GetRepositoryInterfaceName(table), implementationText);
     }
 }
        public void Execute()
        {
            foreach (var type in schema.DataTypes)
            {
                classBuilder = new ClassBuilder();
                if (!(type is EnumeratedDataType))
                {
                    continue;
                }

                var implementationText = Write(type as EnumeratedDataType);
                if (string.IsNullOrEmpty(implementationText))
                {
                    continue;
                }

                CodeWriterUtils.WriteClassFile(codeWriterSettings.OutputDirectory, type.NetDataType, implementationText);
            }
        }
        public void Execute()
        {
            var implementationText = Write();

            CodeWriterUtils.WriteClassFile(codeWriterSettings.OutputDirectory, className, implementationText);
        }