void WriteClassTableProperty(IReportSpecificationSetupClassUsingTable <IReportsSpecificationSetup> classTableProperty)
        {
            if (classTableProperty.Rows.Any())
            {
                writer.StartClassTable(
                    classTableProperty.PropertyName,
                    ClassName(classTableProperty.Rows.First().Properties)
                    );

                writer.ClassTablePropertyNamesHeaderRow(
                    classTableProperty
                    .Rows
                    .First()
                    .Properties
                    .ValueProperties
                    .Select(p => p.PropertyName)
                    );

                foreach (var row in classTableProperty.Rows)
                {
                    writer.ClassTablePropertyRow(row.Properties.ValueProperties);
                }

                writer.EndClassTable();
            }
        }
Exemple #2
0
 public void AddClassTableProperty(IReportSpecificationSetupClassUsingTable <IReportsSpecificationSetup> classTableProperty) =>
 properties.Add(classTableProperty);