Kenric Nugteren 1 anno fa
parent
commit
f74b17a30b

+ 1 - 1
InABox.Core/DatabaseSchema/DatabaseSchema.cs

@@ -251,7 +251,7 @@ namespace InABox.Core
             try
             {
                 var props = _properties.GetValueOrDefault(entityName);
-                var hasprops = props?.ToArray().Any(x => x.Value is StandardProperty) == true;
+                var hasprops = props?.Any(x => x.Value is StandardProperty) == true;
                 if (type.IsSubclassOf(typeof(BaseObject)) && !hasprops)
                     RegisterProperties(type);
             }

+ 6 - 2
inabox.wpf/DynamicGrid/BaseDynamicGrid.cs

@@ -169,6 +169,11 @@ namespace InABox.DynamicGrid
             {
                 Columns.Add(column.Property);
             }
+
+            public void Add(string column)
+            {
+                Columns.Add(column);
+            }
         }
 
         public HiddenColumnsList HiddenColumns { get; }
@@ -215,8 +220,7 @@ namespace InABox.DynamicGrid
 
         public void AddHiddenColumn(string column)
         {
-            var expression = CoreUtils.CreateLambdaExpression<T>(column);
-            HiddenColumns.Add(expression);
+            HiddenColumns.Add(column);
         }
 
         public abstract int DesiredWidth();

+ 5 - 1
inabox.wpf/MasterDetailPanel/IMasterDetailSettings.cs

@@ -3,9 +3,13 @@ using InABox.DynamicGrid;
 
 namespace InABox.Wpf;
 
-public interface IMasterDetailSettings
+public interface ISplitPanelSettings
 {
     public DynamicSplitPanelView ViewType { get; set; }
     public double AnchorWidth { get; set; }
+}
+
+public interface IMasterDetailSettings : ISplitPanelSettings
+{
     public Guid MasterID { get; set; }
 }