Exemple #1
0
        public void TestMethod1()
        {
            // Arrange
            ITable table = null;
            IColumns columns = new CategoryColumns();
            columns.Add(new IdentityColumn(table));
            columns.Add(new DateTimeColumn(table));
            columns.Add(new CategoryNameColumn(table));

            table = new CategoryTable(columns, null);

            RequestContext context = new RequestContext();
            context.Zeus = new TempZeusContext();
            //context.ScriptSettings = new ScriptSettings(null, null, null, null);

            Condor.Core.Property prop = null;
            foreach (IColumn c in table.Columns)
            {
                prop = new BusinessObjectsPropertyRenderDataAnnotationsForDbContext(c, context);
                prop.Render();
            }
        }
        private void RenderProperties(ITable table)
        {
            BusinessObjectsPropertyRenderDataAnnotationsForDbContext property = null;

            foreach (IColumn c in table.Columns)
            {
                property = new BusinessObjectsPropertyRenderDataAnnotationsForDbContext(c, _context, _entity.OmitList);
                property.Render();
            }

            BusinessObjectsPropertiesRenderForeignKeyForDbContext foreignKey = new BusinessObjectsPropertiesRenderForeignKeyForDbContext(table, _context);
            foreignKey.Render();
        }
 private void RenderProperties(ITable table)
 {
     //_context.FileList.Add("      Inside RenderProperties method...");
     Condor.Core.Property prop = null;
     foreach (IColumn c in table.Columns)
     {
         //_context.FileList.Add("      Processing column '" + c.Name + "'");
         prop = new BusinessObjectsPropertyRenderDataAnnotationsForDbContext(c, _context);
         prop.Render();
     }
     BusinessObjectsPropertiesRenderForeignKeyForDbContext foreignKey = new BusinessObjectsPropertiesRenderForeignKeyForDbContext(table, _context);
     foreignKey.Render();
 }