Added support for custom repositories
This commit is contained in:
13
src/HopFrame.Core/Config/RepositoryGroupConfig.cs
Normal file
13
src/HopFrame.Core/Config/RepositoryGroupConfig.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Reflection;
|
||||
|
||||
namespace HopFrame.Core.Config;
|
||||
|
||||
public class RepositoryGroupConfig(Type repoType, PropertyInfo keyProperty, HopFrameConfig config) : ITableGroupConfig {
|
||||
public Type ContextType { get; } = repoType;
|
||||
|
||||
public List<TableConfig> Tables { get; } = new();
|
||||
|
||||
public HopFrameConfig ParentConfig { get; } = config;
|
||||
|
||||
public PropertyInfo KeyProperty { get; } = keyProperty;
|
||||
}
|
||||
Reference in New Issue
Block a user