protected override void CreateClass() { TableSchema schema = new TableSchema(tname); Func<IColumn, string> COLUMN = column => "_" + column.ColumnName.ToUpper(); var clss = new Class(cname, OptionalBaseType()) { modifier = Modifier.Public | Modifier.Partial }; builder.AddClass(clss); //Const Field Field field; foreach (var column in schema.Columns) { field = new Field(new TypeInfo { type = typeof(string) }, COLUMN(column), column.ColumnName) { modifier = Modifier.Public | Modifier.Const }; clss.Add(field); } clss.AddCopyCloneEqualsFunc(cname, schema.Columns.Select(column => column.ColumnName)); }