Browse Source

Fix property link bug in LookupFactory

Kenric Nugteren 1 year ago
parent
commit
e7b17327d4
1 changed files with 1 additions and 1 deletions
  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)