Explorar o código

Fixed merge button

Kenric Nugteren hai 1 ano
pai
achega
ea0dad3dfc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      inabox.wpf/DynamicGrid/DynamicDataGrid.cs

+ 3 - 0
inabox.wpf/DynamicGrid/DynamicDataGrid.cs

@@ -810,11 +810,14 @@ namespace InABox.DynamicGrid
                     AppDomain.CurrentDomain.GetAssemblies(),
                     x =>
                         x.IsClass
+                        && !x.IsAbstract
                         && !x.IsGenericType
                         && x.IsSubclassOf(typeof(Entity))
                         && !x.Equals(typeof(AuditTrail))
                         && !x.Equals(typeof(TEntity))
                         && x.GetCustomAttribute<AutoEntity>() == null
+                        && x.HasInterface<IRemotable>()
+                        && x.HasInterface<IPersistent>()
                 ).ToArray();
 
                 foreach (var type in types)