From 4206a962ff31342bec7bfab9c11551ceaaae7a9a Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 10 Dec 2025 12:24:39 +0100 Subject: [PATCH] Refactor option records and improve namespace structure Renamed Table to TableOptions and moved it, along with EntityOptions and VirtualEntityOptions, to the ReC.Infrastructure.Options.Shared namespace. Split records into separate files for better modularity and updated EntityOptions to reference TableOptions. This enhances code organization and naming consistency. --- .../Options/Shared/EntityOptions.cs | 3 +++ .../Options/Shared/TableOptions.cs | 3 +++ .../Options/Shared/VirtualEntityOptions.cs | 3 +++ src/ReC.Infrastructure/Options/Table.cs | 12 ------------ 4 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 src/ReC.Infrastructure/Options/Shared/EntityOptions.cs create mode 100644 src/ReC.Infrastructure/Options/Shared/TableOptions.cs create mode 100644 src/ReC.Infrastructure/Options/Shared/VirtualEntityOptions.cs delete mode 100644 src/ReC.Infrastructure/Options/Table.cs diff --git a/src/ReC.Infrastructure/Options/Shared/EntityOptions.cs b/src/ReC.Infrastructure/Options/Shared/EntityOptions.cs new file mode 100644 index 0000000..463fbf6 --- /dev/null +++ b/src/ReC.Infrastructure/Options/Shared/EntityOptions.cs @@ -0,0 +1,3 @@ +namespace ReC.Infrastructure.Options.Shared; + +public record EntityOptions(TableOptions Table); \ No newline at end of file diff --git a/src/ReC.Infrastructure/Options/Shared/TableOptions.cs b/src/ReC.Infrastructure/Options/Shared/TableOptions.cs new file mode 100644 index 0000000..0bba72a --- /dev/null +++ b/src/ReC.Infrastructure/Options/Shared/TableOptions.cs @@ -0,0 +1,3 @@ +namespace ReC.Infrastructure.Options.Shared; + +public record TableOptions(string Name, string? Schema = null); \ No newline at end of file diff --git a/src/ReC.Infrastructure/Options/Shared/VirtualEntityOptions.cs b/src/ReC.Infrastructure/Options/Shared/VirtualEntityOptions.cs new file mode 100644 index 0000000..1d9c316 --- /dev/null +++ b/src/ReC.Infrastructure/Options/Shared/VirtualEntityOptions.cs @@ -0,0 +1,3 @@ +namespace ReC.Infrastructure.Options.Shared; + +public record VirtualEntityOptions; \ No newline at end of file diff --git a/src/ReC.Infrastructure/Options/Table.cs b/src/ReC.Infrastructure/Options/Table.cs deleted file mode 100644 index 3bb7257..0000000 --- a/src/ReC.Infrastructure/Options/Table.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace ReC.Infrastructure.Options; - -public record Table( - string Name, - string? Schema = null -); - -public record VirtualEntityOptions -{ -} - -public record EntityOptions(Table Table); \ No newline at end of file