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.
This commit is contained in:
3
src/ReC.Infrastructure/Options/Shared/EntityOptions.cs
Normal file
3
src/ReC.Infrastructure/Options/Shared/EntityOptions.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace ReC.Infrastructure.Options.Shared;
|
||||
|
||||
public record EntityOptions(TableOptions Table);
|
||||
3
src/ReC.Infrastructure/Options/Shared/TableOptions.cs
Normal file
3
src/ReC.Infrastructure/Options/Shared/TableOptions.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace ReC.Infrastructure.Options.Shared;
|
||||
|
||||
public record TableOptions(string Name, string? Schema = null);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace ReC.Infrastructure.Options.Shared;
|
||||
|
||||
public record VirtualEntityOptions;
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace ReC.Infrastructure.Options;
|
||||
|
||||
public record Table(
|
||||
string Name,
|
||||
string? Schema = null
|
||||
);
|
||||
|
||||
public record VirtualEntityOptions
|
||||
{
|
||||
}
|
||||
|
||||
public record EntityOptions(Table Table);
|
||||
Reference in New Issue
Block a user