Explorar o código

Fixed exporting with CustomProperties

Kenric Nugteren %!s(int64=2) %!d(string=hai) anos
pai
achega
13aecebe48
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      inabox.wpf/Excel/ExcelExporter.cs

+ 1 - 1
inabox.wpf/Excel/ExcelExporter.cs

@@ -19,7 +19,7 @@ namespace InABox.WPF
             for (var iCol = 0; iCol < data.Columns.Count; iCol++)
             {
                 var field = data.Columns[iCol].ColumnName;
-                var editor = T != null ? CoreUtils.GetProperty(T, field).GetEditor() : null;
+                var editor = T != null ? DatabaseSchema.Property(T, field)?.Editor : null;
                 sheet.Range[1, iCol + 1].Text = field;
 
                 for (var iRow = 0; iRow < data.Rows.Count; iRow++)