From 959b56c4bb161c3d0f00e4755945735f07773141 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 10 Dec 2025 13:52:49 +0100 Subject: [PATCH] Add ColumnNames property to EntityBaseOptions Added a new ColumnNames property that exposes the column names from the ColumnMappings dictionary as an IEnumerable in the EntityBaseOptions record. This provides convenient access to mapped column names alongside existing property name access. --- src/ReC.Infrastructure/Options/Shared/EntityBaseOptions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ReC.Infrastructure/Options/Shared/EntityBaseOptions.cs b/src/ReC.Infrastructure/Options/Shared/EntityBaseOptions.cs index e7c94c6..fa9d890 100644 --- a/src/ReC.Infrastructure/Options/Shared/EntityBaseOptions.cs +++ b/src/ReC.Infrastructure/Options/Shared/EntityBaseOptions.cs @@ -8,6 +8,8 @@ public record EntityBaseOptions() public IEnumerable PropertyNames => ColumnMappings.Select(col => col.Key); + public IEnumerable ColumnNames => ColumnMappings.Select(col => col.Value); + public void EnsureProperties(IEnumerable propertyNames) { var missingProperties = propertyNames.Except(PropertyNames).ToList();