diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml
index d897a72..99f649d 100644
--- a/.idea/.idea.HopFrame/.idea/workspace.xml
+++ b/.idea/.idea.HopFrame/.idea/workspace.xml
@@ -11,12 +11,14 @@
-
+
+
-
+
+
@@ -58,6 +60,12 @@
}
}
+
+
+
+
+
+
@@ -70,6 +78,7 @@
+
@@ -78,6 +87,7 @@
+
{}
{
@@ -213,7 +223,7 @@
-
+
@@ -447,7 +457,15 @@
1738063028173
-
+
+
+ 1738079122848
+
+
+
+ 1738079122848
+
+
@@ -498,7 +516,6 @@
-
@@ -523,6 +540,7 @@
-
+
+
\ No newline at end of file
diff --git a/src/HopFrame.Core/Services/ITableManager.cs b/src/HopFrame.Core/Services/ITableManager.cs
index 93ba93d..4610ce0 100644
--- a/src/HopFrame.Core/Services/ITableManager.cs
+++ b/src/HopFrame.Core/Services/ITableManager.cs
@@ -12,5 +12,5 @@ public interface ITableManager {
public Task AddItem(object item);
public Task RevertChanges(object item);
- public Task DisplayProperty(object? item, PropertyConfig prop, object? value = null);
+ public Task DisplayProperty(object? item, PropertyConfig prop, object? value = null, object? enumerableValue = null);
}
\ No newline at end of file
diff --git a/src/HopFrame.Core/Services/Implementations/TableManager.cs b/src/HopFrame.Core/Services/Implementations/TableManager.cs
index 0067271..c6dfb37 100644
--- a/src/HopFrame.Core/Services/Implementations/TableManager.cs
+++ b/src/HopFrame.Core/Services/Implementations/TableManager.cs
@@ -74,7 +74,7 @@ internal sealed class TableManager(DbContext context, TableConfig config
return false;
}
- public async Task DisplayProperty(object? item, PropertyConfig prop, object? value = null) {
+ public async Task DisplayProperty(object? item, PropertyConfig prop, object? value = null, object? enumerableValue = null) {
if (item is null) return string.Empty;
if (prop.IsListingProperty)
@@ -89,12 +89,12 @@ internal sealed class TableManager(DbContext context, TableConfig config
}
if (prop.IsEnumerable) {
- if (value is not null) {
+ if (enumerableValue is not null) {
if (prop.EnumerableFormatter is not null) {
- return await prop.EnumerableFormatter.Invoke(value, provider);
+ return await prop.EnumerableFormatter.Invoke(enumerableValue, provider);
}
- return value.ToString() ?? string.Empty;
+ return enumerableValue.ToString() ?? string.Empty;
}
return (propValue as IEnumerable)!.OfType