Преглед на файлове

Fix property link bug in LookupFactory

Kenric Nugteren преди 1 година
родител
ревизия
e7b17327d4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      InABox.Core/ILookupDefinition.cs

+ 1 - 1
InABox.Core/ILookupDefinition.cs

@@ -130,7 +130,7 @@ namespace InABox.Core
                     return property.Parent;
                 }
             }
-            return DatabaseSchema.Property(T, $"{column}.{nameof(IEntityLink.ID)}");
+            return DatabaseSchema.Property(T, $"{column}.{nameof(IEntityLink.ID)}")?.Parent;
         }
 
         private static ILookupDefinitionGenerator? GetLookupGenerator(IProperty? property)