Exemplo n.º 1
0
        public void WriteClassHeader(Zeus.IZeusOutput output)
        {
            string hdr = "/*" + Environment.NewLine;

            hdr += "===============================================================" + Environment.NewLine;
            hdr += "            CondorXE Code Generator - ver " + _version + Environment.NewLine;
            hdr += "       Generated using MyGeneration Software - ver 1.3.1.1" + Environment.NewLine;
            hdr += "Created By King Wilder - https://www.github.com/kahanu/CondorXE" + Environment.NewLine;
            hdr += "                   " + DateTime.Now.ToString() + Environment.NewLine;
            hdr += "===============================================================" + Environment.NewLine;
            hdr += "*/";
            output.writeln(hdr);
        }
Exemplo n.º 2
0
        public void RenderForeignKeyBusinessObjectsProperties()
        {
            string tableName = _table.Name;

            foreach (IForeignKey key in _table.ForeignKeys)
            {
                if (script.Tables.Contains(key.ForeignTable.Name))
                {
                    if (key.PrimaryTable.Name == tableName)
                    {
                        output.autoTabLn("public List<" + StringFormatter.CleanUpClassName(key.ForeignTable.Name) + "> " + StringFormatter.CleanUpClassName(key.ForeignTable.Name) + "List { get; set; }");
                    }
                }

                if (script.Tables.Contains(key.PrimaryTable.Name))
                {
                    if (key.PrimaryTable.Name != tableName)
                    {
                        output.autoTabLn("public " + StringFormatter.CleanUpClassName(key.PrimaryTable.Name) + " " + StringFormatter.CleanUpClassName(key.PrimaryTable.Name) + " { get; set; }");
                    }
                }
            }
            output.writeln("");
        }