Refactor entity options to use shared base class
Introduce EntityBaseOptions with Columns property. Update EntityOptions and VirtualEntityOptions to inherit from EntityBaseOptions for improved code reuse and consistency.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace ReC.Infrastructure.Options.Shared;
|
||||
|
||||
public record EntityBaseOptions()
|
||||
{
|
||||
public Dictionary<string, string> Columns { get; init; } = [];
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace ReC.Infrastructure.Options.Shared;
|
||||
|
||||
public record EntityOptions(TableOptions Table);
|
||||
public record EntityOptions(TableOptions Table) : EntityBaseOptions;
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace ReC.Infrastructure.Options.Shared;
|
||||
|
||||
public record VirtualEntityOptions;
|
||||
public record VirtualEntityOptions : EntityBaseOptions;
|
||||
Reference in New Issue
Block a user