Add DbModelOptions record for entity configuration
Introduced DbModelOptions in ReC.Infrastructure.Options to encapsulate collections of EntityOptions and VirtualEntityOptions, providing a structured way to configure entities and virtual entities. Both properties are initialized to empty collections by default.
This commit is contained in:
10
src/ReC.Infrastructure/Options/DbModelOptions.cs
Normal file
10
src/ReC.Infrastructure/Options/DbModelOptions.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
using ReC.Infrastructure.Options.Shared;
|
||||||
|
|
||||||
|
namespace ReC.Infrastructure.Options;
|
||||||
|
|
||||||
|
public record DbModelOptions
|
||||||
|
{
|
||||||
|
public IEnumerable<EntityOptions> Entities { get; init; } = [];
|
||||||
|
|
||||||
|
public IEnumerable<VirtualEntityOptions> VirtualEntities { get; init; } = [];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user