|
@@ -438,7 +438,7 @@ namespace InABox.Core
|
|
|
return DefaultFormatLookup(values, exclude);
|
|
|
}
|
|
|
|
|
|
- public static string FormatLookup(Type TEntity, CoreRow row, string column)
|
|
|
+ public static string FormatLookup(Type TEntity, Type TLookup, CoreRow row, string column)
|
|
|
{
|
|
|
var generator = GetLookupGenerator(TEntity, column);
|
|
|
if(generator != null)
|
|
@@ -447,7 +447,7 @@ namespace InABox.Core
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- return FormatLookup(TEntity, row.ToDictionary(new[] { "Display" }), Array.Empty<string>());
|
|
|
+ return FormatLookup(TLookup, row.ToDictionary(new[] { "Display" }), Array.Empty<string>());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -504,7 +504,7 @@ namespace InABox.Core
|
|
|
|
|
|
public static string FormatLookup<TEntity, TLookup, TLookupLink>(CoreRow row, Expression<Func<TEntity, TLookupLink>> column)
|
|
|
where TLookupLink : IEntityLink<TLookup>
|
|
|
- => FormatLookup(typeof(TEntity), row, CoreUtils.GetFullPropertyName(column, "."));
|
|
|
+ => FormatLookup(typeof(TEntity), typeof(TLookup), row, CoreUtils.GetFullPropertyName(column, "."));
|
|
|
|
|
|
public static void OnCreateItem<TEntity, TLookup, TLookupLink>(Expression<Func<TEntity, TLookupLink>> column, TEntity[] items, TLookup item)
|
|
|
where TLookupLink : IEntityLink<TLookup>
|